CVE-2026-118581
MediumCVSS 6.5Summary
The BSON encoding component of the MongoDB Java Driver does not verify that an externally supplied raw document's declared length matches the actual byte range before copying it into a database command. An application processing untrusted bytes can emit a structurally inconsistent message, causing the database to interpret trailing content as additional command fields, potentially altering data read or written.
Risk Assessment
Unauthorized modification of database commands may occur, leading to data integrity breaches or unauthorized access.
Recommendation
Update the MongoDB Java Driver to the version containing the fix. Avoid processing untrusted raw BSON documents in database commands.
Other vulnerabilities in MongoDB Java Driver
See all- CVE-2026-88033High
Improper neutralization of special elements in data query logic in the GridFS component of the MongoDB Java Driver causes a caller-supplied structured file identifier to be interpreted as a query condition rather than a literal identifier. An authenticated user who can influence the identifier may obtain stored file content beyond the intended target, cause all GridFS file chunks in the affected bucket to be removed, or rename a stored file other than the intended target.
- CVE-2026-88032Medium
A use-after-free in the reactive client-side encryption component of the MongoDB Java Driver can cause native resources to be freed while an affected encrypted operation is still using them when the operation is cancelled. A party able to cause such an operation to be cancelled may cause the hosting application process to terminate. Reaching the issue requires an affected reactive encryption configuration that retrieves KMS credentials on demand.
Original NVD description (English source)
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.
Vulnerability data from NVD (NIST) · CISA KEV · EPSS

