Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
ReconIdentify 32-bit-build target accepting JSON
-
DeliveryCraft oversized JSON document
-
ExploitSubmit to exposed parsing endpoint
-
InstallTrigger 32-bit integer wraparound in allocation size
-
C2Buffer freed with stale pointer live
-
ExecuteSubsequent write through dangling pointer
-
ImpactApplication crashes (DoS)
Vulnerability Assessment
| Weakness |
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Integer overflow checks
MITRE ATT&CK
1 technique across 1 tactic: Execution The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation requires the target application to be compiled using a toolchain or configuration where size_t (or the equivalent size type used in the BSON library) is 32 bits - on 64-bit platforms with standard toolchains this condition is typically not met, effectively excluding the vast majority of modern server deployments. The attacker must be able to supply a JSON document of sufficient size to overflow a 32-bit accumulator to the application's BSON JSON parsing path; this limits the attack to applications that accept externally supplied JSON without enforcing a size cap upstream. No authentication is required. The impact is limited to denial of service - no code execution or data exfiltration path is described. |
| Impact | The vendor-assigned CVSS 4.0 score of 5.9 (AV:L/AC:H/AT:P/PR:N) correctly captures the meaningful constraints: high attack complexity, a specific prerequisite (32-bit size build), and no confidentiality or integrity impact. The 32-bit build requirement is the dominant limiting factor - the vast majority of modern server deployments compile with 64-bit size types, where the wraparound cannot occur. For the affected build profile, the attack is a remote DoS: no authentication is required and no user interaction is needed, but successfully triggering the wrap requires crafting a JSON document large enough to overflow a 32-bit accumulator, which demands non-trivial input engineering. No CISA KEV listing, no public proof-of-concept, and no EPSS data were provided. Real-world priority for organizations running 64-bit builds of the MongoDB C Driver is low; organizations using 32-bit-compiled C Driver deployments should treat this with higher urgency given the unauthenticated, availability-disrupting nature of the impact. |
| Exploit ScenarioDerived | An attacker with access to any network-facing application that embeds the MongoDB C Driver's BSON library on a 32-bit-size build sends an HTTP request or other protocol message containing a crafted JSON payload engineered to be large enough to cause the allocation-size calculation to wrap around. The library frees the undersized buffer and then writes into the freed memory, corrupting the heap and causing the host application process to crash, achieving unauthenticated remote denial of service. No public proof-of-concept has been identified at time of analysis. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Sep 03, 2026
Integer wraparound in the MongoDB C Driver BSON library's JSON parser allows an unauthenticated party supplying a sufficiently large JSON document to crash any linked application on 32-bit-size builds. The overflow produces an undersized heap allocation that is freed, while a subsequent copy operation continues writing through the now-dangling pointer - a use-after-free sequence that terminates the host process. No public exploit code or active exploitation has been identified; impact is confined to denial of service, and the attack is constrained to 32-bit size builds of the library.
RemediationAI
Consult the MongoDB Jira ticket https://jira.mongodb.org/browse/CDRIVER-6405 for the specific patched release of the MongoDB C Driver once published; upgrade to that version as the primary fix. No exact patched version number is confirmed from available data - monitor the Jira ticket and the official MongoDB C Driver release page for a tagged release. As an immediate compensating control for 32-bit-build deployments, restrict the maximum size of JSON documents accepted by the application at the application layer (e.g., enforce a request-body size limit in the HTTP server or API gateway) to prevent inputs large enough to trigger the 32-bit wraparound from reaching the BSON parser. Organizations not running 32-bit-compiled builds of the driver are not exposed and no action is required beyond confirming their build configuration.
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, CPE cpe:2.3:a:mongodb:c_driver:*:*:*:*:*:*:*:*) bundles a BSON (Binary JSON) library used to convert between JSON text and BSON wire format. During JSON parsing, the library performs arithmetic to compute allocation sizes; on builds compiled with 32-bit size types (e.g., size_t is 32 bits), a sufficiently large input can cause this arithmetic to wrap around CWE-190 (Integer Overflow or Wraparound), yielding an allocation size smaller than the data to be held. The resulting too-small buffer is freed, but the subsequent memory-copy operation still proceeds through the now-stale pointer, producing a use-after-free write that corrupts heap state and causes the process to crash. The root cause is arithmetic unsafety in size computation rather than a logical parsing error.
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:H/AT:P/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N
Network vector because BSON JSON parsing is typically reached via network-supplied input; AC:H for the mandatory 32-bit build prerequisite; DoS-only impact.
Primary rating from Vendor (mongodb).
CVSS VectorVendor: mongodb
Lifecycle Timeline
1DescriptionCVE.org
An integer wraparound in an allocation size calculation in the BSON library's JSON parsing code can cause a buffer to be released while a following copy operation still writes through the stale pointer. On builds where sizes are 32 bits, an unauthenticated party able to supply a sufficiently large JSON input to an application that links the library may cause that application to terminate unexpectedly, resulting in denial of service.
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.
Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.
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
Same weakness CWE-190 – Integer Overflow or Wraparound
View allSame technique Denial Of Service
View allVendor StatusVendor
SUSE
Severity: Moderate| Product | Status |
|---|---|
| openSUSE Tumbleweed | Fixed |
EUVD-2026-70513
NVD
CVE.org
EPSS
Vulnrichment
VulDB
GitHub PoC
Exploit-DB