Skip to main content
← All vulnerabilities
CVE-2026-114646EUVD-2026-108310GHSA-5CHR-PHC4-WCJ2

NoSQL command injection via mismatched raw BSON length prefix written verbatim to the wire

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 3.13.0
None on Exploit-DB, Metasploit or GitHub

Summary

The vulnerability affects the MongoDB C# Driver, specifically its BSON handling code used when applications build raw or lazy BSON documents from external binary input. An unauthenticated attacker who can supply such input could alter database commands to modify or expose stored data, limited to the privileges the application holds on the database.

Summarized by anthropic/claude-haiku-5.5. Verify details against the original sources.

Read the original description

A data-validation flaw exists in the BSON handling and binary serialization path of the MongoDB C# Driver. When an application constructs a raw or lazy BSON document object from externally supplied binary data, the driver does not verify that the size quantity declared inside that data matches the amount of data actually provided, and it copies the data onto the wire unchanged. An unauthenticated party who can supply binary content to such an application can thereby cause additional elements to be inserted into, or existing elements to be removed from, the database command the application issues, without needing any database credentials of their own. This can result in unauthorized modification of stored data and disclosure of data outside the intended scope of the application's request, bounded by the database privileges the application itself holds.

Timeline

  1. CVE published
  2. First seen by cve.now
  3. Record last updated

Affected versions

  • MongoDB C# Driver

    From 2.0.0 · fixed in 3.13.0

References 3

jira.mongodb.org

GitHub · mongodb/mongo-csharp-driver