Skip to main content

MongoDB C Driver EUVDEUVD-2026-95153

| CVE-2026-106437 MEDIUM
Integer Underflow (CWE-191)
2026-10-08 mongodb
5.9
CVSS 4.0 · Vendor: mongodb
View

Attack ChainAIDerived

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

  1. Access
    Influence length value passed to embedding app
  2. Exploit
    Supply undersized value below 5-byte BSON minimum to bson_reserve_buffer
  3. Execution
    Trigger unsigned underflow in append/comparison
  4. Impact
    Read 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.

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

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

Alert me

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

C Driver 1.4.0 <1.30.13
C Driver 2.0.0 <2.5.6

Affected Packages

euvd c_driver fix: 1.30.13, 2.5.6

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

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

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.

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

Primary rating from Vendor (mongodb).

CVSS VectorVendor: mongodb

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

Lifecycle Timeline

1
Patch available
Oct 08, 2026 - 20:03 EUVD

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

EPSS Score
0.1%
Top 99% exploitable
Prevalence
Medium
common MongoDB C library (libmongoc/libbson), but niche vulnerable usage pattern
Data Quality
4 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.1%
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
Defer
Exploitation
None
System Exposure· derived
Small
Automatable
No
Human Impact· derived
Medium
Technical Impact
Partial

Priority Score

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

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.

CVE-2013-1892 MEDIUM POC
6.0 Oct 01

MongoDB before 2.0.9 and 2.2.x before 2.2.4 does not properly validate requests to the nativeHelper function in SpiderMo

CVE-2013-3969 MEDIUM POC
6.5 Oct 01

The find prototype in scripting/engine_v8.h in MongoDB 2.4.0 through 2.4.4 allows remote authenticated users to cause a

CVE-2018-13863 HIGH POC
7.5 Jul 10

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

CVE-2026-25887 HIGH POC
7.2 Mar 06

Remote code execution in Chartbrew versions prior to 4.8.1 allows authenticated attackers with high privileges to execut

CVE-2019-2386 HIGH POC
7.1 Aug 06

After user deletion in MongoDB Server the improper invalidation of authorization sessions allows an authenticated user's

CVE-2012-6619 MEDIUM POC
6.4 Mar 06

The default configuration for MongoDB before 2.3.2 does not validate objects, which allows remote authenticated users to

CVE-2026-3431 CRITICAL
9.8 Mar 02

SimStudio below 0.5.74 has a missing authorization on MongoDB tool endpoints that allows attackers to execute arbitrary

CVE-2024-8654 CRITICAL
9.8 Sep 10

MongoDB Server may access non-initialized region of memory leading to unexpected behaviour when zero arguments are calle

CVE-2024-6376 CRITICAL
9.8 Jul 01

MongoDB Compass may be susceptible to code injection due to insufficient sandbox protection settings with the usage of e

CVE-2024-1351 CRITICAL
9.8 Mar 07

Under certain configurations of --tlsCAFile and tls.CAFile, MongoDB Server may skip peer certificate validation which ma

CVE-2020-7610 CRITICAL
9.8 Mar 30

All versions of bson before 1.1.4 are vulnerable to Deserialization of Untrusted Data. Rated critical severity (CVSS 9.8

CVE-2026-19001 CRITICAL
9.5 Aug 12

Memory corruption in the MongoDB BI Connector ODBC Driver (fixed in v1.4.9) occurs when an oversized catalog, schema, or

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