Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessInfluence length value passed to embedding app
-
ExploitSupply undersized value below 5-byte BSON minimum to bson_reserve_buffer
-
ExecutionTrigger unsigned underflow in append/comparison
-
ImpactRead or corrupt adjacent memory / terminate process
Vulnerability Assessment
| Weakness |
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Integer underflow checks
|
| Exploitation Conditions | Exploitation is NOT possible against the library in isolation or default usage. It requires an embedding C/C++ application to (1) pass a length smaller than the five-byte BSON document minimum to bson_reserve_buffer, and (2) subsequently perform an affected append or comparison operation on that buffer. Critically, the attacker must be able to influence the length value the application supplies to the API - so exploitability depends on the application forwarding externally-derived or attacker-controlled sizes into the reservation call. Limiting factors: the local attack vector (AV:L) and the attack-requirement precondition (AT:P) mean this cannot be triggered remotely against a stock configuration; impact is dominated by denial of service (process termination) with only limited memory read/corruption, and no privileges or user interaction are otherwise needed beyond the vulnerable code path existing. |
| Impact | This is a moderate-severity, condition-dependent memory-safety flaw (CWE-191 integer underflow) in the MongoDB C Driver's BSON buffer-reservation API, and the available signals converge on 'real but low-urgency.' The vendor-supplied CVSS 4.0 vector (AV:L/AC:L/AT:P/PR:N/UI:N) scores 5.9 and is internally consistent with the description: AV:L reflects that this is a library memory-corruption bug triggered through the embedding application rather than a directly network-reachable service, and AT:P captures the explicit precondition that the application must pass an undersized length to bson_reserve_buffer and then perform an affected append/comparison operation. Impact skews toward availability (VA:H - application termination) with only low confidentiality/integrity impact (VC:L/VI:L - reading or corrupting adjacent process memory), so this is primarily a crash/DoS and opportunistic memory-disclosure/corruption issue rather than a clean RCE. There is no CISA KEV listing, no public exploit identified, and no EPSS score provided in the input, so there is currently no evidence of exploitation or widespread interest. The key caveat: although PR:N marks this 'unauthenticated,' real exploitability is gated entirely by whether a given embedding application forwards attacker-influenced lengths into the reservation API - a flaw in the library that most correctly-written applications will never expose. Treat this as a dependency-hygiene patch (update libmongoc/libbson) rather than an emergency, while auditing any in-house code that passes externally-derived sizes to bson_reserve_buffer. |
| Exploit ScenarioDerived | An application built on the MongoDB C Driver computes a BSON buffer size from attacker-influenced input and passes a value below the five-byte BSON minimum to bson_reserve_buffer. When the application subsequently performs an append or comparison, the undersized length underflows an unsigned calculation, causing an out-of-bounds read/write that crashes the process or corrupts adjacent memory. No public exploit code has been identified at time of analysis; the vector is local (AV:L) and requires the application to use the API in the vulnerable pattern. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Oct 08, 2026
Out-of-bounds memory access in the MongoDB C Driver can be induced when an embedding C/C++ application passes a length smaller than the five-byte BSON document minimum to bson_reserve_buffer and then performs an affected append or comparison operation, causing unsigned integer underflow and out-of-bounds access that may terminate the process or read or corrupt adjacent memory. Exploitation is not possible against the library in isolation or default usage: the application must forward an undersized, potentially attacker-influenced length into the reservation call and later exercise an affected operation. No public exploit identified at time of analysis; vendor CVSS 4.0 score is 5.9 with AV:L/AT:P/PR:N, and the independent assessment rates it moderate-severity and condition-dependent.
RemediationAI
No vendor-released patch identified at time of analysis; monitor MongoDB Jira CDRIVER-6423 at https://jira.mongodb.org/browse/CDRIVER-6423 for a fix. Until a patched driver is available, the primary compensating control is at the embedding-application layer: validate or clamp any length passed to bson_reserve_buffer so it is at least five bytes, and reject or sanitize externally influenced size values before the call. Also guard subsequent BSON append or comparison operations against undersized recorded lengths, using higher-level BSON construction APIs that enforce the minimum document size where possible. These changes require application code review and a rebuild or redeployment; they trade off some flexibility in low-level BSON buffer management but prevent the unsigned underflow path. If the application cannot enforce the minimum length, restrict the code path to trusted inputs and avoid forwarding attacker-controlled sizes into bson_reserve_buffer.
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 provides the BSON buffer-reservation API bson_reserve_buffer, used to reserve space for constructing BSON documents. The flaw is CWE-191 (integer underflow): the API can record a length smaller than the five-byte minimum size of a BSON document. Later append or comparison operations perform unsigned length calculations that underflow when the recorded length is undersized, resulting in reads or writes outside the document buffer. The affected product family is identified by CPE cpe:2.3:a:mongodb:c_driver:*:*:*:*:*:*:*:*, so the issue applies to the C driver as embedded in applications rather than to a standalone network service. Because the vendor CVSS vector is AV:L/AC:L/AT:P/PR:N/UI:N, the issue is local and has an attack-requirement precondition; the independent CVSS 3.1 assessment is AV:L/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:H and stresses that the attacker must influence the length supplied by the embedding application, with denial of service dominating over limited memory read or corruption. The CVSS vector includes PR:N, so authentication is not required by the vector, but the AT:P precondition and local vector mean the vulnerable code path must exist in the embedding application and cannot be triggered remotely against a stock configuration.
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:L/VI:L/VA:H/SC:N/SI:N/SA:N
AV:L because the underflow is reached only through the embedding application's API use, AC:H reflects the required undersized-length precondition, PR:N/UI:N as no auth or interaction is intrinsic, impact mainly availability.
Primary rating from Vendor (mongodb).
CVSS VectorVendor: mongodb
Lifecycle Timeline
1DescriptionCVE.org
The BSON buffer-reservation API in the MongoDB C Driver can record a length smaller than the five-byte BSON minimum. Later append or comparison operations can underflow unsigned length calculations and read or write outside the document buffer. An actor who can influence the length supplied by an embedding application can cause the application to terminate or read or corrupt adjacent process memory. Reaching this issue requires the application to pass an undersized value to bson_reserve_buffer and then perform an affected operation.
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
Integer overflow occurs when an arithmetic operation produces a result that exceeds the maximum value a given integer type can store.
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-95153
NVD
CVE.org
EPSS
Vulnrichment
VulDB
GitHub PoC
Exploit-DB