CVE-2026-118581
Last modified
CVE-2026-118581 is a medium-severity vulnerability rated 6.5/10 on the CVSS scale. 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.
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.
Metrics
Weakness Enumeration
Affected Software
Source: CNA advisory (CVE.org). NVD analysis pending.
| Vendor | Product | Versions |
|---|---|---|
| MongoDB | Java Driver | >= 5.8.0, < 5.14.0 |
References
Timeline
- Published
- Last Modified
- Status
- Received
Frequently Asked Questions
What is CVE-2026-118581?
How severe is CVE-2026-118581?
How do I fix CVE-2026-118581?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2026
- CVE-2026-11852Debusine is an integrated solution to build, distribute and …6.5
- CVE-2026-11853Debusine is an integrated solution to build, distribute and …6.5
- CVE-2026-11855The Simple Membership WordPress plugin before 4.7.5 does not…8.8
- CVE-2026-11856Successfully using libcurl to do a transfer to a specific HT…9.8
- CVE-2026-11857Quanos SCHEMA ST4 on-premises contains a local privilege esc…8.4
- CVE-2026-11858Quanos SCHEMA ST4 on-premises contains a local privilege esc…8.4
- CVE-2026-11859An HTML injection vulnerability in the "fetch links" email s…2
- CVE-2026-1186EAP Legislator is vulnerable to Path Traversal in file extra…8.6
- CVE-2026-11860Quick.CMS deserializes user-controlled data received over pl…7.5
- CVE-2026-118601Alpine iLX-F511 SSH Hard-Coded Credentials Remote Code Execu…6.3
- CVE-2026-118602Alpine iLX-F511 Fiv.System Exposed Dangerous Method Local Pr…7.8
- CVE-2026-118603Alpine iLX-F511 vCard Parsing Stack-based Buffer Overflow Re…8
Are you affected by CVE-2026-118581?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
