CVE-2026-118581 NoSQL injection via mismatched BSON size prefix in raw document splice to the wire protocol
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- No known exploitation · automatable: yes · technical impact: partial
- Technology
- DebianRed Hat
Description
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.
Upgrade path
7 packages: 1 fixed, 6 with no fix yet.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| debian/mongo-java-driver(Debian 12) | = 3.6.3-2; = 3.6.3-2.1; = 3.6.3-3; All versions | No fix listed | No fix yet |
| debian/mongo-java-driver(Debian 13) | = 3.6.3-2; = 3.6.3-2.1; = 3.6.3-3; All versions | No fix listed | No fix yet |
| debian/mongo-java-driver(Debian 14) | = 3.6.3-2; = 3.6.3-2.1; = 3.6.3-3; All versions | No fix listed | No fix yet |
| redhat/bson(Red Hat camel_quarkus 3) | All versions | No fix listed | No fix yet |
| redhat/bson(Red Hat debezium 3) | All versions | No fix listed | No fix yet |
| redhat/bson(Red Hat quarkus 3) | All versions | No fix listed | No fix yet |
| MongoDB Java Driver | >= 5.8.0, < 5.14.0 | 5.14.0 | Fixed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| redhat/exploit-intelligence/agent-client-rhel9(Red Hat:exploit_intelligence:0) | All versions | No fix listed |
| redhat/bson(Red Hat:camel_quarkus:3) | All versions | No fix listed |
| redhat/bson(Red Hat:debezium:3) | All versions | No fix listed |
| redhat/bson(Red Hat:quarkus:3) | All versions | No fix listed |
| redhat/bson(Red Hat:jboss_fuse:7) | All versions | No fix listed |
| MongoDB Java Driver | >= 5.8.0, < 5.14.0 | 5.14.0 |
| debian/mongo-java-driver(Debian:12) | All versions | No fix listed |
| debian/mongo-java-driver(Debian:12) | = 3.6.3-2 | No fix listed |
| debian/mongo-java-driver(Debian:12) | = 3.6.3-2.1 | No fix listed |
| debian/mongo-java-driver(Debian:12) | = 3.6.3-3 | No fix listed |
| debian/mongo-java-driver(Debian:13) | All versions | No fix listed |
| debian/mongo-java-driver(Debian:13) | = 3.6.3-2 | No fix listed |
| debian/mongo-java-driver(Debian:13) | = 3.6.3-2.1 | No fix listed |
| debian/mongo-java-driver(Debian:13) | = 3.6.3-3 | No fix listed |
| debian/mongo-java-driver(Debian:14) | All versions | No fix listed |
| debian/mongo-java-driver(Debian:14) | = 3.6.3-2 | No fix listed |
| debian/mongo-java-driver(Debian:14) | = 3.6.3-2.1 | No fix listed |
| debian/mongo-java-driver(Debian:14) | = 3.6.3-3 | No fix listed |
References
- Red Hat CVE page mitigation vendor-advisory
- Red Hat Bugzilla 2563002 issue-tracking
- www.cve.org
- nvd.nist.gov
- github.com
- Debian Security Tracker CVE-2026-118581 vendor-advisory
- ENISA EUVD EUVD-2026-112257 third-party-advisory