Skip to main content

MongoDB C Driver CVE-2026-106431

| EUVDEUVD-2026-95152 MEDIUM
Out-of-bounds Write (CWE-787)
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 attacker-controlled document sizes
  2. Delivery
    Serialize via BSON bulk-writer API
  3. Exploit
    Hit exact buffer-boundary cumulative size
  4. Execution
    Write one zero byte past heap allocation
  5. Impact
    Corrupt adjacent memory or crash process

Vulnerability Assessment

Weakness
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Bounds checking, write limits
MITRE ATT&CK

2 techniques across 2 tactics: Execution, Privilege Escalation

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Exploitation requires that the embedding application use the BSON bulk-writer API of the MongoDB C Driver (libmongoc) AND that an attacker be able to influence the sizes of the documents it serializes. The off-by-one write triggers only when a document ends at a specific internal buffer boundary - the attacker must drive the cumulative serialized document size to that exact value, a precise and largely non-deterministic precondition (reflected as AT:P in the CVSS 4.0 vector). Limiting factors: applications that do not use the bulk-writer code path are not affected; the attacker cannot reach the flaw directly over the network but only indirectly through application-controlled serialization; and the defect writes only a single zero byte, so the realistic outcome is heap corruption leading to process termination rather than reliable arbitrary code execution.

Impact

This is a medium-severity (CVSS 4.0 base 5.9) memory-corruption issue whose real-world risk is limited by several converging signals. The vendor-supplied CVSS 4.0 vector (AV:L/AC:L/AT:P/PR:N/UI:N/VC:N/VI:L/VA:H) indicates a local vector with a specific attack requirement (AT:P) - exploitation depends on the attacker achieving a precise cumulative document size that lands a document exactly on a buffer boundary, which is a non-trivial, non-deterministic precondition. Impact is weighted toward availability (VA:H, process termination) with only low integrity impact (VI:L, one zero byte written past the allocation) and no confidentiality impact (VC:N), so this is far more a denial-of-service/stability bug than an information-disclosure or reliable code-execution bug. No EPSS score, SSVC decision data, KEV listing, or public POC was provided in the input: exploitation status is therefore 'no public exploit identified at time of analysis,' and absence of these signals is consistent with a low-urgency, difficult-to-weaponize issue rather than an active threat. One caveat to verify: the vector is AV:L yet the description frames the trigger as an 'actor who can influence the size of documents serialized by an embedding application,' which in many deployments is a remote data source feeding the application - the local classification reflects that the attacker acts through the hosting application's API rather than directly over the network, so defenders should confirm how attacker-controlled data reaches the bulk-writer in their specific integration.

Exploit ScenarioDerived

An application embeds the MongoDB C Driver and uses its BSON bulk-writer API to serialize documents whose sizes are influenced by attacker-supplied input. The attacker crafts input so the cumulative serialized document size ends exactly at the internal buffer boundary, triggering the off-by-one write of a single zero byte past the heap allocation, which corrupts an adjacent heap structure and typically crashes the process (denial of service). No public exploit code was identified at time of analysis, and reliable weaponization beyond a crash is constrained by the single-byte, boundary-precise nature of the write.

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

MongoDB C Driver contains an off-by-one heap write in its BSON bulk document writer that can corrupt adjacent memory or crash the process when a serialized document ends at a precise buffer boundary. This medium-severity (CVSS 4.0 base 5.9) issue requires an embedding application to use the BSON bulk-writer API and an attacker to influence document sizes to hit that exact cumulative boundary; the local, unauthenticated attack is difficult to trigger and writes only a single zero byte, so the realistic impact is process termination or limited heap corruption rather than code execution. No public exploit code or active exploitation has been identified at the time of analysis.

RemediationAI

Vendor-released patch: refer to MongoDB JIRA CDRIVER-6418 at https://jira.mongodb.org/browse/CDRIVER-6418 for the fixed version; no exact version is provided in the input data. As a workaround, if the embedding application does not require the BSON bulk-writer API, refactor to avoid it; this eliminates exposure but may require code changes and could degrade serialization performance. If the API is essential, enforce strict input validation to prevent attacker control over document sizes, and consider memory-hardening techniques (e.g., AddressSanitizer in development, hardened allocators in production) to mitigate heap corruption, though these are compensating controls and not a complete fix. Restrict local access to the application to reduce the attack surface, but note the CVSS vector indicates a local attack vector, so this is only a partial measure. Monitor the vendor advisory for updates.

Affected VersionsENISA

C Driver 2.0.0 <2.5.6
C Driver 0.5.0 <1.30.13

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 (libmongoc) is a client library used to interact with MongoDB from C applications. The vulnerability lies in its BSON (Binary JSON) bulk document writer, a component that serializes multiple BSON documents into a single buffer for efficient network transmission. CWE-787 (Out-of-bounds Write) manifests as an off-by-one error: when a document ends exactly at the boundary of an internal buffer, the writer incorrectly appends a zero byte past the allocated heap region. This can corrupt adjacent heap metadata or other data, potentially leading to a crash or, in limited circumstances, further memory corruption. The CVSS 4.0 vector (AV:L/AC:L/AT:P/PR:N/UI:N/VC:N/VI:L/VA:H/SC:N/SI:N/SA:N) and the independent assessment (CVSS 3.1 AV:L/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:H) both reflect that the attack requires a precise, pre-existing condition (AT:P) and has high attack complexity due to the need to hit a specific buffer boundary. The CPE cpe:2.3:a:mongodb:c_driver:*:*:*:*:*:*:*:* indicates the driver is the affected product, though specific vulnerable versions are not enumerated in the provided data.

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:N/VI:L/VA:H/SC:N/SI:N/SA:N
vuln.today AI 5.7 MEDIUM

Attacker acts locally through the hosting application (AV:L) and must achieve a precise buffer-boundary document size (AC:H); single out-of-bounds byte gives I:L and no C:N, while process crash yields A:H.

3.1 AV:L/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:H
4.0 AV:L/AC:L/AT:P/PR:N/UI:N/VC:N/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
None
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

An off-by-one error in the BSON bulk document writer in the MongoDB C Driver can write one zero byte immediately past a heap allocation when a document ends at a specific buffer boundary. An actor who can influence the size of documents serialized by an embedding application can corrupt adjacent process memory or terminate the process. Reaching this issue requires the application to use the BSON bulk-writer API and produce a precise cumulative document size.

Threat Intelligence Overview

EPSS Score
0.1%
Top 99% exploitable
Prevalence
Medium
widely-used database client library but specific bulk-writer API path required
Data Quality
3 sources
Confidence: Low

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

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.

Memory corruption occurs when a program writes data beyond the boundaries of allocated memory regions or accesses memory in unintended ways, violating the integrity of the process's address space.

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