Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessReach app that parses untrusted BSON
-
ExploitSend BSON with zero-length prefix
-
ExecutionLength underflows to UINT32_MAX
-
ImpactHeap out-of-bounds read crashes process (DoS)
Vulnerability Assessment
| Weakness |
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Integer underflow checks
|
| Exploitation Conditions | Requires an application that parses attacker-controlled BSON input through libbson's bson_new_from_buffer() API; the malicious input specifically needs a document length field of zero (below the 5-byte BSON minimum) to trigger the underflow. No authentication or user interaction is needed (PR:N/UI:N), and the flaw affects default library behavior. The practical limiter is exposure: only applications that feed untrusted/remote BSON buffers into this specific function are reachable, and impact is confined to a process crash (denial of service) with no data disclosure or code execution. |
| Impact | This is a real but limited-severity denial-of-service issue, not a top-tier priority. The vendor CVSS 4.0 vector (AV:N/AC:L/AT:N/PR:N/UI:N) with impact restricted to VA:L and VC:N/VI:N describes an unauthenticated, low-complexity crash with no confidentiality or integrity loss - consistent with a heap out-of-bounds READ that terminates the process (CWE-191 integer underflow). The 6.9 score is availability-only; there is no code execution despite the 'Buffer Overflow' tag, because an over-read crash is not a controllable write primitive. No EPSS score, no CISA KEV listing, and no public exploit code were provided, so exploitation is speculative rather than observed. The AV:N is technically correct but conditional: exploitation requires that a network-facing application actually pass attacker-supplied BSON through bson_new_from_buffer(), so real-world reach depends on how the embedding application uses the library. Net: a genuine hardening fix worth patching in exposed BSON-parsing services, but low urgency absent exploitation signals. |
| Exploit ScenarioDerived | An attacker sends crafted BSON data with a zero-length document prefix to a service that parses it via libbson's bson_new_from_buffer(). The zero length underflows to UINT32_MAX during the null-terminator index calculation, triggering a heap out-of-bounds read that crashes the process and denies service. No public proof-of-concept was identified at time of analysis, and exploitation requires no authentication (PR:N) or user interaction (UI:N). |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Sep 17, 2026
Denial of service in applications using the MongoDB C Driver's libbson library can be triggered by crafted BSON input with a zero document-length field, which causes an integer underflow (CWE-191) and a heap out-of-bounds read that crashes the process. The CVSS v4.0 vector indicates remote, unauthenticated exploitation (AV:N/PR:N/UI:N), but the vulnerability only affects code paths that pass untrusted BSON to bson_new_from_buffer(), and impact is limited to a process crash with no data disclosure or code execution. No public exploit code or active exploitation (CISA KEV) was identified in the provided intelligence.
RemediationAI
No vendor-released patch version is specified in the provided intelligence; check the MongoDB Jira issue CDRIVER-6343 and the MongoDB C Driver release notes for a fixed version. Until a patch is available, applications that must parse untrusted BSON should pre-validate the 32-bit document length field, rejecting any document with a length less than 5 or greater than the actual buffer size before calling bson_new_from_buffer(); this duplicates parsing logic and may be bypassed if not applied across all code paths. As a secondary control, restrict network access to services that accept BSON from untrusted sources, and run such services under a process supervisor that restarts on crash to limit the duration of a denial of service; these measures reduce exposure but do not fix the underlying integer underflow. If libbson is used only with trusted, internally generated BSON, the risk of exploitation is low and patching can be prioritized accordingly.
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
libbson is a C library for parsing and generating BSON, the binary serialization format used by MongoDB. BSON documents begin with a 32-bit little-endian length field that must be at least 5 (4 bytes for the length plus a terminating null byte). The bson_new_from_buffer() function fails to enforce this lower bound before using the length in an index calculation to check the document's null terminator; when the length is zero, the expression wraps to UINT32_MAX (CWE-191: Integer Underflow), causing the library to read memory far outside the provided buffer. This is a read-only out-of-bounds access that typically results in a segmentation fault and process termination. The CPE entry cpe:2.3:a:mongodb_inc.:c_driver:*:*:*:*:*:*:*:* uses a wildcard version, indicating that no fixed version boundary is specified in the vulnerability record and all releases may be affected until a patch is identified. The underlying root cause is a missing input validation check for the minimum BSON document size.
Know when C Driver 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:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N
Unauthenticated remote crafted input (AV:N/AC:L/PR:N/UI:N) via a widely reachable parsing API; impact is a single-process crash from an OOB read, so A:L and C:N/I:N.
Primary rating from Vendor (mongodb).
CVSS VectorVendor: mongodb
Lifecycle Timeline
1DescriptionCVE.org
A missing lower-bound validation in the bson_new_from_buffer() function of libbson allows an integer underflow when processing BSON data with a zero-length prefix. The function reads a 32-bit document length from the input buffer but does not verify that the value is at least 5 (the minimum valid BSON document size) before using it in an array index calculation. When the length field is zero, the expression used to check the document's null terminator wraps to UINT32_MAX, causing a heap out-of-bounds read that crashes the process. An unauthorized party who can supply crafted BSON input to an application using this API can cause a 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
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.
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.
bson before 0.8 incorrectly uses int rather than size_t for many variables, parameters, and return values. Rated medium
TLS certificate-revocation bypass in the MongoDB C Driver allows a revoked certificate to be accepted when the driver pe
Heap-based buffer overflow in the TLS transport layer of the MongoDB C Driver on Windows TLS-backend builds allows the e
Repeated, unbounded memory growth in the MongoDB C Driver occurs when the library handles specially crafted compressed r
Process termination is reachable in applications that use the MongoDB C Driver's GridFS file download API: an internal o
Namespace injection in the MongoDB C++ Driver (all versions prior to r4.5.1) allows low-privileged users of affected mul
Heap out-of-bounds write in the MongoDB C Driver (libmongoc) allows an unauthenticated attacker who controls DNS resolut
Double-free memory corruption in the MongoDB C Driver's OpenSSL-based TLS certificate revocation checking path allows a
Denial of service in the MongoDB C Driver: a crafted server-discovery response can trigger a NULL pointer dereference an
Incorrect validation of files loaded from a local untrusted directory may allow local privilege escalation if the underl
The MongoDB C Driver fails to validate the type and format of the namespace field in a query response, so an unauthentic
Connection-option injection in the MongoDB C# Driver allows a low-privileged application user to introduce or suppress s
EUVD-2026-82471
GHSA-jm9m-v7jc-m4j8
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB