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.
Published: 2026-10-22
Score: 6.9 Medium
EPSS: < 1% Very Low
KEV: No
Impact: Unauthorized Database Modification and Disclosure
Action: Patch
AI Analysis

Impact

A data‑validation flaw in the MongoDB C# Driver allows an attacker to craft a raw or lazy BSON document whose declared length does not match the actual bytes. When the driver forwards this data to the database, it writes the bytes verbatim, potentially adding or removing elements from the command the application intends to run. This can lead to unauthorized changes to stored data and leakage of data that should have remained confidential, all performed without the attacker having database credentials. The weakness is a classic length‑consistency error classified as CWE‑130.

Affected Systems

The MongoDB C# Driver is affected. No specific version range is provided, but any release that still includes the vulnerable BSON handling routines will be at risk.

Risk and Exploitability

The CVSS score of 6.9 indicates moderate severity. The attacker requires the ability to supply binary BSON to the application, which is possible when the application accepts arbitrary binary payloads from untrusted sources. No EPSS information is available, and the vulnerability is not listed in the CISA KEV catalog. The exploitation path is straightforward for an unauthenticated actor who can inject crafted BSON, making the risk a moderate but realistic concern for exposed services.

Generated by OpenCVE AI on October 23, 2026 at 03:14 UTC.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade the MongoDB C# Driver to a fixed release (e.g., v3.13.0 or later).
  • Validate the length field of any externally supplied BSON before forwarding it to MongoDB, rejecting data where the declared length and actual size mismatch.
  • If upgrading is not immediately possible, restrict the application to reject raw or lazy BSON from untrusted sources and enforce strict type validation for all incoming binary data.

Generated by OpenCVE AI on October 23, 2026 at 03:14 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Mon, 02 Nov 2026 15:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'poc', 'Technical Impact': 'partial'}, 'version': '2.0.3'}


Fri, 23 Oct 2026 03:45:00 +0000

Type Values Removed Values Added
First Time appeared Mongodb
Mongodb c# Driver
Vendors & Products Mongodb
Mongodb c# Driver

Fri, 23 Oct 2026 00:45:00 +0000

Type Values Removed Values Added
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.
Title NoSQL command injection via mismatched raw BSON length prefix written verbatim to the wire
Weaknesses CWE-130
References
Metrics cvssV3_1

{'score': 6.5, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N'}

cvssV4_0

{'score': 6.9, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N'}


Subscriptions

Mongodb C# Driver
cve-icon MITRE

Status: PUBLISHED

Assigner: mongodb

Published:

Updated: 2026-11-02T14:37:54.708Z

Reserved: 2026-10-21T21:57:42.833Z

Link: CVE-2026-114646

cve-icon Vulnrichment

Updated: 2026-11-02T14:37:41.696Z

cve-icon NVD

Status : Awaiting Analysis

Published: 2026-10-22T19:17:38.300

Modified: 2026-11-02T15:17:14.623

Link: CVE-2026-114646

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-10-23T03:30:15Z

Weaknesses
  • CWE-130

    Improper Handling of Length Parameter Inconsistency