Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessInfluence attacker-controlled document sizes
-
DeliverySerialize via BSON bulk-writer API
-
ExploitHit exact buffer-boundary cumulative size
-
ExecutionWrite one zero byte past heap allocation
-
ImpactCorrupt adjacent memory or crash process
Vulnerability Assessment
| Weakness |
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Bounds checking, write limits
MITRE ATT&CK
2 techniques across 2 tactics: Execution, Privilege Escalation The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation requires that the embedding application use the BSON bulk-writer API of the MongoDB C Driver (libmongoc) AND that an attacker be able to influence the sizes of the documents it serializes. The off-by-one write triggers only when a document ends at a specific internal buffer boundary - the attacker must drive the cumulative serialized document size to that exact value, a precise and largely non-deterministic precondition (reflected as AT:P in the CVSS 4.0 vector). Limiting factors: applications that do not use the bulk-writer code path are not affected; the attacker cannot reach the flaw directly over the network but only indirectly through application-controlled serialization; and the defect writes only a single zero byte, so the realistic outcome is heap corruption leading to process termination rather than reliable arbitrary code execution. |
| Impact | This is a medium-severity (CVSS 4.0 base 5.9) memory-corruption issue whose real-world risk is limited by several converging signals. The vendor-supplied CVSS 4.0 vector (AV:L/AC:L/AT:P/PR:N/UI:N/VC:N/VI:L/VA:H) indicates a local vector with a specific attack requirement (AT:P) - exploitation depends on the attacker achieving a precise cumulative document size that lands a document exactly on a buffer boundary, which is a non-trivial, non-deterministic precondition. Impact is weighted toward availability (VA:H, process termination) with only low integrity impact (VI:L, one zero byte written past the allocation) and no confidentiality impact (VC:N), so this is far more a denial-of-service/stability bug than an information-disclosure or reliable code-execution bug. No EPSS score, SSVC decision data, KEV listing, or public POC was provided in the input: exploitation status is therefore 'no public exploit identified at time of analysis,' and absence of these signals is consistent with a low-urgency, difficult-to-weaponize issue rather than an active threat. One caveat to verify: the vector is AV:L yet the description frames the trigger as an 'actor who can influence the size of documents serialized by an embedding application,' which in many deployments is a remote data source feeding the application - the local classification reflects that the attacker acts through the hosting application's API rather than directly over the network, so defenders should confirm how attacker-controlled data reaches the bulk-writer in their specific integration. |
| Exploit ScenarioDerived | An application embeds the MongoDB C Driver and uses its BSON bulk-writer API to serialize documents whose sizes are influenced by attacker-supplied input. The attacker crafts input so the cumulative serialized document size ends exactly at the internal buffer boundary, triggering the off-by-one write of a single zero byte past the heap allocation, which corrupts an adjacent heap structure and typically crashes the process (denial of service). No public exploit code was identified at time of analysis, and reliable weaponization beyond a crash is constrained by the single-byte, boundary-precise nature of the write. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Oct 08, 2026
MongoDB C Driver contains an off-by-one heap write in its BSON bulk document writer that can corrupt adjacent memory or crash the process when a serialized document ends at a precise buffer boundary. This medium-severity (CVSS 4.0 base 5.9) issue requires an embedding application to use the BSON bulk-writer API and an attacker to influence document sizes to hit that exact cumulative boundary; the local, unauthenticated attack is difficult to trigger and writes only a single zero byte, so the realistic impact is process termination or limited heap corruption rather than code execution. No public exploit code or active exploitation has been identified at the time of analysis.
RemediationAI
Vendor-released patch: refer to MongoDB JIRA CDRIVER-6418 at https://jira.mongodb.org/browse/CDRIVER-6418 for the fixed version; no exact version is provided in the input data. As a workaround, if the embedding application does not require the BSON bulk-writer API, refactor to avoid it; this eliminates exposure but may require code changes and could degrade serialization performance. If the API is essential, enforce strict input validation to prevent attacker control over document sizes, and consider memory-hardening techniques (e.g., AddressSanitizer in development, hardened allocators in production) to mitigate heap corruption, though these are compensating controls and not a complete fix. Restrict local access to the application to reduce the attack surface, but note the CVSS vector indicates a local attack vector, so this is only a partial measure. Monitor the vendor advisory for updates.
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 MongoDB C Driver (libmongoc) is a client library used to interact with MongoDB from C applications. The vulnerability lies in its BSON (Binary JSON) bulk document writer, a component that serializes multiple BSON documents into a single buffer for efficient network transmission. CWE-787 (Out-of-bounds Write) manifests as an off-by-one error: when a document ends exactly at the boundary of an internal buffer, the writer incorrectly appends a zero byte past the allocated heap region. This can corrupt adjacent heap metadata or other data, potentially leading to a crash or, in limited circumstances, further memory corruption. The CVSS 4.0 vector (AV:L/AC:L/AT:P/PR:N/UI:N/VC:N/VI:L/VA:H/SC:N/SI:N/SA:N) and the independent assessment (CVSS 3.1 AV:L/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:H) both reflect that the attack requires a precise, pre-existing condition (AT:P) and has high attack complexity due to the need to hit a specific buffer boundary. The CPE cpe:2.3:a:mongodb:c_driver:*:*:*:*:*:*:*:* indicates the driver is the affected product, though specific vulnerable versions are not enumerated in the provided 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:L/AC:L/AT:P/PR:N/UI:N/VC:N/VI:L/VA:H/SC:N/SI:N/SA:N
Attacker acts locally through the hosting application (AV:L) and must achieve a precise buffer-boundary document size (AC:H); single out-of-bounds byte gives I:L and no C:N, while process crash yields A:H.
Primary rating from Vendor (mongodb).
CVSS VectorVendor: mongodb
Lifecycle Timeline
1DescriptionCVE.org
An off-by-one error in the BSON bulk document writer in the MongoDB C Driver can write one zero byte immediately past a heap allocation when a document ends at a specific buffer boundary. An actor who can influence the size of documents serialized by an embedding application can corrupt adjacent process memory or terminate the process. Reaching this issue requires the application to use the BSON bulk-writer API and produce a precise cumulative document size.
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
A buffer overflow occurs when a program writes more data to a memory buffer than it was allocated to hold, causing the excess data to spill into adjacent memory regions.
Memory corruption occurs when a program writes data beyond the boundaries of allocated memory regions or accesses memory in unintended ways, violating the integrity of the process's address space.
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-95152
NVD
CVE.org
EPSS
Vulnrichment
VulDB
GitHub PoC
Exploit-DB