Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessAuthenticate with existing DB credentials
-
ExploitSupply name with embedded NUL byte
-
ExecutionDriver/app disagree on effective name
-
ImpactRead unintended field or rename unintended collection
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A06:2025 - Insecure Design
ASVS 5.0
V4 - API and Web Service Interpretation consistency
|
| Exploitation Conditions | Exploitation requires an authenticated actor (PR:L) holding valid database credentials, and the calling application must pass an attacker-influenced field or collection name to the MongoDB C++ Driver's collection API without rejecting embedded NUL bytes; the AT:P metric reflects that the attacker must be able to control such a name. It is limited to applications built on the affected C++ Driver that expose name input to a semi-trusted user, and the impact is scoped to the privileges of the application's existing database credentials (no privilege escalation beyond that context). It does not work against applications that sanitize or do not accept externally-influenced names, nor against other MongoDB language drivers. |
| Impact | This is a medium-severity (CVSS 4.0 base 6.0) interpretation-conflict flaw (CWE-436) in the MongoDB C++ Driver, best characterized as a real-but-bounded data-integrity/disclosure issue rather than a top-tier emergency. The provided CVSS 4.0 vector (AV:N/AC:L/AT:P/PR:L/UI:N/VC:L/VI:H/VA:N) shows the strongest signal is integrity (VI:H - an unintended collection can be renamed), with only limited confidentiality (VC:L - reading an unintended field) and no availability impact. The AT:P (attack-requirements present) metric and PR:L both temper the risk: exploitation is not against arbitrary targets but requires an authenticated actor who can already influence a name the application passes to the collection API, using the application's existing credentials - so this is primarily a privilege/trust-boundary bypass within an already-authenticated context, not a pre-auth remote takeover. No EPSS score, KEV listing, or POC was provided in the input; absence of these is not evidence either way but means there is no public signal of active exploitation or weaponization. Net: treat as a prioritized patch for applications that pass externally-influenced names to the MongoDB C++ Driver, but it does not carry the automatable, widespread-exploitation profile of a critical bug. Note one input inconsistency: the Tags list 'C Driver' and 'Information Disclosure', yet the CPE (c++_driver), description, and JIRA references (CXX-*) all indicate the C++ Driver and the dominant impact is integrity, not disclosure - verify tagging against the vendor record. |
| Exploit ScenarioDerived | An application using the affected MongoDB C++ Driver accepts a field or collection name derived from user-controllable input and passes it to the collection API. An authenticated user supplies a name containing an embedded NUL byte (e.g. 'reports\0secret'), causing the driver and application to disagree on the effective name, so the operation reads from an unintended field or renames an unintended collection using the app's own database credentials. No public exploit code was identified at time of analysis; realistic abuse requires the attacker to influence a name reaching the API (reflected by AT:P and PR:L). |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Oct 08, 2026
Embedded NUL bytes in field and collection names are silently discarded by the MongoDB C++ Driver, causing the driver and the calling application to resolve the same name to different targets. An authenticated actor (CVSS 4.0 vector includes PR:L, i.e. valid database credentials are required) who can influence a name passed to the driver's collection API can make the application read values from an unintended field or rename an unintended collection, operating strictly within the privileges already held by the application's database credentials. Exploitation depends on the calling application forwarding an attacker-influenced name without rejecting embedded NUL bytes; no public exploit code has been identified at time of analysis, and the issue is scoped to applications built on the affected C++ driver rather than to other MongoDB language drivers. Base score is 6.0 (CVSS 4.0), assessed as a bounded data-integrity/disclosure issue rather than a top-tier emergency.
RemediationAI
No vendor-released patch was identified at time of analysis, so remediation currently rests on compensating controls until MongoDB publishes a fixed driver release via the Jira issues CXX-3551 and CXX-3552; monitor those advisories and upgrade the C++ driver as soon as a patched version is published. In the interim, validate and reject any field or collection name containing a NUL byte (0x00) at the application boundary before it reaches the driver - this is safe because BSON element names cannot legitimately contain NUL, so a strict allowlist (for example a regex permitting only expected identifier characters) introduces essentially no false positives, at the cost of an additional validation layer and a small amount of processing overhead. Where feasible, do not allow untrusted or semi-trusted users to choose field or collection names at all, and if names must be user-influenced, map them through an application-controlled dictionary or hash rather than passing raw input to the driver; this eliminates the input vector entirely but reduces flexibility for multi-tenant or dynamic-schema designs. Additionally, restrict the database privileges granted to applications that build on the driver to the narrowest role that still functions, since any exploitation occurs under the application's own credentials, and add monitoring or alerting on unexpected reads and collection renames performed by those applications so that anomalous behavior is detected even if a fix is not yet deployed.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
The root cause is an interpretation conflict (CWE-436): the MongoDB C++ Driver appears to treat caller-supplied field and collection names using C-string semantics, so everything after an embedded NUL byte (0x00) is dropped, while the calling application retains the full length-delimited string (for example a std::string or std::string_view) and believes it referenced a different, longer name. Because BSON keys are length-prefixed and the BSON specification does not permit NUL bytes within element names, a name such as "balance\0attacker_suffix" can be truncated by the driver to "balance" while the application's own bookkeeping, logs, or authorization checks reason about the full untruncated string - the classic confused-deputy/parsing-discrepancy pattern where two components disagree about the meaning of identical input. The impact is bounded by the application's existing database credentials (no privilege escalation beyond that context), requires the attacker to be authenticated (PR:L) and to be able to control the name value (reflected in the assessed AT:P metric), and is specific to the C++ driver implementation rather than to the MongoDB server or other language drivers. Affected product is identified by CPE cpe:2.3:a:mongodb:c++_driver (version wildcard - no explicit affected version range was published in the supplied data).
Know when MongoDB gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:L/VI:H/VA:N/SC:N/SI:N/SA:N
Network DB access with authenticated low privileges (PR:L); AC:H reflects the required NUL-byte name-interpretation condition (AT:P); integrity high from unintended collection rename, confidentiality low from reading an unintended field, no availability impact.
Primary rating from Vendor (mongodb).
CVSS VectorVendor: mongodb
Lifecycle Timeline
1DescriptionCVE.org
The MongoDB C++ Driver discards content after an embedded NUL byte in certain field and collection names accepted by the collection API. This can cause the driver and the calling application to interpret the same name differently. An authenticated actor who can influence a name passed by an affected application can cause the application to read distinct values from an unintended field or rename an unintended collection. These operations use the application's existing database credentials.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.
MongoDB before 2.0.9 and 2.2.x before 2.2.4 does not properly validate requests to the nativeHelper function in SpiderMo
The find prototype in scripting/engine_v8.h in MongoDB 2.4.0 through 2.4.4 allows remote authenticated users to cause a
The MongoDB bson JavaScript module (also known as js-bson) versions 0.5.0 to 1.0.x before 1.0.5 is vulnerable to a Regul
Remote code execution in Chartbrew versions prior to 4.8.1 allows authenticated attackers with high privileges to execut
After user deletion in MongoDB Server the improper invalidation of authorization sessions allows an authenticated user's
The default configuration for MongoDB before 2.3.2 does not validate objects, which allows remote authenticated users to
SimStudio below 0.5.74 has a missing authorization on MongoDB tool endpoints that allows attackers to execute arbitrary
MongoDB Server may access non-initialized region of memory leading to unexpected behaviour when zero arguments are calle
MongoDB Compass may be susceptible to code injection due to insufficient sandbox protection settings with the usage of e
Under certain configurations of --tlsCAFile and tls.CAFile, MongoDB Server may skip peer certificate validation which ma
All versions of bson before 1.1.4 are vulnerable to Deserialization of Untrusted Data. Rated critical severity (CVSS 9.8
Memory corruption in the MongoDB BI Connector ODBC Driver (fixed in v1.4.9) occurs when an oversized catalog, schema, or
EUVD-2026-95155
NVD
CVE.org
EPSS
Vulnrichment
VulDB
GitHub PoC
Exploit-DB