๐Ÿ” CVE Alert

CVE-2026-118581

MEDIUM 6.5

NoSQL injection via mismatched BSON size prefix in raw document splice to the wire protocol

CVSS Score
6.5
EPSS Score
0.0%
EPSS Percentile
0th

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.

CWE CWE-943
Vendor mongodb
Product java driver
Ecosystems
Industries
Technology
Published Oct 28, 2026
Stay Ahead of the Next One

Get instant alerts for mongodb java driver

Be the first to know when new medium vulnerabilities affecting mongodb java driver are published โ€” delivered to Slack, Telegram or Discord.

Get Free Alerts โ†’ Free ยท No credit card ยท 60 sec setup

CVSS v3 Breakdown

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N
Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
Low
Integrity
Low
Availability
None

Affected Versions

MongoDB / Java Driver
5.8.0 < 5.14.0

References

NVD โ†— CVE.org โ†— EPSS Data โ†—
github.com: https://github.com/mongodb/mongo-java-driver/releases/tag/r5.14.0