Source: mongo-java-driver X-Debbugs-CC: [email protected] Severity: important Tags: security
Hi, The following vulnerability was published for mongo-java-driver. CVE-2026-118581[0]: | A BSON encoding component of the MongoDB Java Driver does not verify | that an externally supplied raw document's self-declared length | agrees with the extent of the byte range it is given before that | range is copied into an outgoing database command. An application | that wraps untrusted raw bytes in such a document and uses it as | part of a command can therefore emit a structurally inconsistent | message, causing the database to interpret attacker-supplied | trailing content as additional fields of the surrounding command. No | authentication to the driver or database is required beyond the | ability to influence those bytes through the victim application, and | no user interaction is needed. The result is unintended modification | of the command actually executed, which can alter the data read or | written under the application's credentials. https://jira.mongodb.org/browse/JAVA-6220 Fixed by: https://github.com/mongodb/mongo-java-driver/commit/c52057e274a8d93f66c17d5d38e4fdbd317994c2 (r5.14.0) If you fix the vulnerability please also make sure to include the CVE (Common Vulnerabilities & Exposures) id in your changelog entry. For further information see: [0] https://security-tracker.debian.org/tracker/CVE-2026-118581 https://www.cve.org/CVERecord?id=CVE-2026-118581 Please adjust the affected versions in the BTS as needed.

