Skip to main content

MongoDB C Driver CVE-2026-93395

| EUVDEUVD-2026-82471 MEDIUM
Integer Underflow (CWE-191)
2026-09-17 mongodb GHSA-jm9m-v7jc-m4j8
6.9
CVSS 4.0 · Vendor: mongodb
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Reach app that parses untrusted BSON
  2. Exploit
    Send BSON with zero-length prefix
  3. Execution
    Length underflows to UINT32_MAX
  4. Impact
    Heap 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).

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.2% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

C Driver 2.0.0 <2.3.1

Affected Packages

euvd c_driver fix: 2.3.1

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

Vendor (mongodb) PRIMARY 6.9 MEDIUM
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
vuln.today AI 5.3 MEDIUM

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.

3.1 AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
4.0 AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N

Primary rating from Vendor (mongodb).

CVSS VectorVendor: mongodb

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
None
Vulnerable system: Confidentiality
None
Vulnerable system: Integrity
None
Vulnerable system: Availability
Low
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

Lifecycle Timeline

1
Patch available
Sep 17, 2026 - 22:04 EUVD

DescriptionCVE.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

EPSS Score
0.2%
Top 85% exploitable
Prevalence
Medium
official MongoDB C driver / libbson, widely used library but niche parsing API
Data Quality
5 sources
Confidence: Medium

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.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.2%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
Yes
Human Impact· derived
Medium
Technical Impact
Partial

Priority Score

34
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +34
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

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.

CVE-2020-12135 MEDIUM POC
5.5 Apr 24

bson before 0.8 incorrectly uses int rather than size_t for many variables, parameters, and return values. Rated medium

CVE-2026-135224 CRITICAL
9.3 Nov 25

TLS certificate-revocation bypass in the MongoDB C Driver allows a revoked certificate to be accepted when the driver pe

CVE-2026-93393 CRITICAL
9.2 Sep 17

Heap-based buffer overflow in the TLS transport layer of the MongoDB C Driver on Windows TLS-backend builds allows the e

CVE-2026-120678 HIGH
8.7 Nov 03

Repeated, unbounded memory growth in the MongoDB C Driver occurs when the library handles specially crafted compressed r

CVE-2026-120955 HIGH
8.7 Nov 03

Process termination is reachable in applications that use the MongoDB C Driver's GridFS file download API: an internal o

CVE-2026-81522 HIGH
8.6 Aug 27

Namespace injection in the MongoDB C++ Driver (all versions prior to r4.5.1) allows low-privileged users of affected mul

CVE-2026-96746 HIGH
8.3 Sep 24

Heap out-of-bounds write in the MongoDB C Driver (libmongoc) allows an unauthenticated attacker who controls DNS resolut

CVE-2026-84964 HIGH
8.2 Sep 03

Double-free memory corruption in the MongoDB C Driver's OpenSSL-based TLS certificate revocation checking path allows a

CVE-2026-135134 HIGH
8.2 Nov 25

Denial of service in the MongoDB C Driver: a crafted server-discovery response can trigger a NULL pointer dereference an

CVE-2024-7553 HIGH
7.8 Aug 07

Incorrect validation of files loaded from a local untrusted directory may allow local privilege escalation if the underl

CVE-2026-120956 HIGH
7.1 Nov 03

The MongoDB C Driver fails to validate the type and format of the namespace field in a query response, so an unauthentic

CVE-2026-81529 HIGH
7.1 Aug 27

Connection-option injection in the MongoDB C# Driver allows a low-privileged application user to introduce or suppress s

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy