Skip to main content

MongoDB C Driver CVE-2026-120956

| EUVDEUVD-2026-116135 HIGH
Reachable Assertion (CWE-617)
2026-11-03 mongodb
7.1
CVSS 4.0 · Vendor: mongodb
View

Attack ChainAIDerived

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

  1. Access
    Lure client to attacker-controlled MongoDB endpoint
  2. Delivery
    Client issues query without credentials
  3. Exploit
    Server returns malformed namespace field
  4. Execution
    Driver reads out-of-bounds heap memory
  5. Impact
    Process crashes and leaks heap in follow-up command

Vulnerability Assessment

Weakness
CWE
ASVS 5.0
V16 - Security Logging and Error Handling Reachable assertion handling
Exploitation Conditions

The embedding application must initiate a connection and run a query against an attacker-controlled, compromised, or impersonated MongoDB endpoint; no credentials are required (PR:N), but the client must actively connect and query it (UI:P passive interaction), and the attacker must be positioned to serve the crafted response (rogue server, attacker-supplied connection target, or man-in-the-middle). The exact trigger beyond 'a malformed/mis-typed namespace field in a query response' is not further detailed in the available sources. Limiting factors: impact is confined to the single process embedding the driver (no scope change, SC/SI/SA:N); clients that only ever connect to trusted, controlled clusters are not realistically exposed. No fixed version is stated in the available data.

Impact

This is a moderate-severity, context-dependent flaw rather than a mass-exploitation emergency. The CVSS 4.0 vector (AV:N/AC:L/AT:N/PR:N/UI:P/VC:L/VI:N/VA:H, score 7.1) shows no authentication is required (PR:N) and low attack complexity, but exploitation is gated by the passive user-interaction requirement (UI:P): the victim client must actually connect to and query an attacker-controlled or compromised MongoDB endpoint. The dominant impact is availability (VA:H - the embedding process terminates) with only a low confidentiality impact (VC:L - a small amount of uninitialized heap is leaked back to the endpoint); there is no integrity impact. The vuln.today decision label is 'this_week', consistent with a serious-but-not-emergency triage. No CISA KEV listing and no EPSS score are present in the input, and the only reference is a MongoDB Jira tracking ticket (CDRIVER-6501), not working exploit code - so there is no public exploit identified at time of analysis. The practical risk is bounded: an attacker must first get the client to talk to a hostile server, which is realistic for apps that accept user-supplied connection strings, perform discovery, or operate on untrusted networks, but not for clients that only ever reach a trusted, authenticated cluster.

Exploit ScenarioDerived

An attacker who controls or impersonates a MongoDB endpoint (for example via an application that accepts a user-supplied connection URI, a rogue/replaced server, or a man-in-the-middle position) returns a malformed namespace field in a query response. When the victim client parses it, the driver reads memory outside an allocated buffer, crashing the embedding process and leaking a small amount of its uninitialized heap back to the attacker in a follow-up command. No credentials are required, but the client must connect to the hostile endpoint; no public exploit identified at time of analysis.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
No patch listed yet

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

Alert me

AnalysisAIv1 – Nov 03, 2026

The MongoDB C Driver fails to validate the type and format of the namespace field in a query response, so an unauthenticated MongoDB endpoint that a client chooses to connect to can return a malformed value, terminate the embedding application process via a reachable assertion (CWE-617), and induce an out-of-bounds read that causes a small amount of the application's own uninitialized heap memory to be echoed back to that endpoint in a follow-up command. Affected are applications that embed the C driver and connect to endpoints they do not fully control - a rogue server, an attacker-supplied connection target, or an on-path attacker impersonating a server; impact is confined to the single process embedding the driver (no scope change, confidentiality low, availability high). No public exploit code has been identified at time of analysis and the issue is not in CISA KEV; the driver is reported as 'this_week' priority rather than an immediate emergency, and no fixed version is stated in the available advisory data.

RemediationAI

No vendor-released fix version is stated in the available data; the sole authoritative reference is the MongoDB JIRA ticket CDRIVER-6501 (https://jira.mongodb.org/browse/CDRIVER-6501), which should be watched for the patched libmongoc releases and the per-branch version matrix before planning upgrades. Because the flaw is only reachable when the embedding application connects to and queries an endpoint the attacker influences, the practical compensating controls follow directly from that prerequisite: pin connection targets to known, controlled clusters and reject user- or configuration-supplied hostnames at runtime, so a rogue server cannot be reached at all (trade-off: reduced flexibility for multi-tenant or dynamic-target applications); enforce TLS with full server certificate and hostname verification against a trusted CA so an on-path attacker cannot impersonate an endpoint (trade-off: certificate lifecycle management and the loss of plaintext/local test topologies); and restrict outbound egress from application hosts to the specific MongoDB ports and addresses actually needed (trade-off: more brittle network policy that must be updated as clusters change). None of these remove the parsing defect itself, so they reduce but do not eliminate exposure until a patched driver is available; there is no evidence in the supplied data of a driver-side configuration switch that disables the affected response handling.

Affected VersionsENISA

C Driver 2.0.0 ≤2.5.7
C Driver 1.25.0 ≤1.30.14

Affected Packages

euvd c_driver no fix

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 is the client-side library used by C and C++ applications (and by higher-level drivers/wrappers built on libmongoc) to speak the MongoDB wire protocol. This issue sits in response parsing: the driver does not check the type or format of the namespace field returned by the server in a query response, which is a CWE-617 reachable-assertion condition - a server-controlled value reaches an assertion/abort path and kills the host process. The same unvalidated length/format handling additionally permits a read past the end of an allocated buffer, and the driver subsequently transmits a small amount of the application's uninitialized heap memory back to the endpoint in a follow-up command, giving the flaw both an availability and a limited information-disclosure dimension. The supplied CVSS 4.0 vector (AV:N/AC:L/AT:N/PR:N/UI:P, VC:L/VI:N/VA:H, SC/SI/SA:N) and the independent CVSS 3.1 assessment (AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:N/A:H) agree on the shape of the risk: remote, low-complexity, no credentials required (PR:N), some form of client-side interaction (the embedding application must initiate the connection and run a query), high availability impact but only limited confidentiality impact, and no escape from the embedding process. The exact trigger beyond 'a malformed or mis-typed namespace field in a query response' is not described in the available sources, so no inference should be made about specific parsers or message types involved.

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 7.1 HIGH
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:L/VI:N/VA:H/SC:N/SI:N/SA:N
vuln.today AI 7.1 HIGH

Network-reachable malicious server with no auth (PR:N) but the victim client must connect and query it (UI:R); process crash gives A:H, small uninitialized heap leak gives C:L, no integrity impact.

3.1 AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:N/A:H
4.0 AV:N/AC:L/AT:N/PR:N/UI:P/VC:L/VI:N/VA:H/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
Passive
Vulnerable system: Confidentiality
Low
Vulnerable system: Integrity
None
Vulnerable system: Availability
High
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

DescriptionCVE.org

The MongoDB C Driver does not validate the type or format of a namespace field returned by the server in a query response. A MongoDB endpoint that a client application connects to, without needing any credentials, can return a malformed value in that field. This causes the client application process to terminate, and can also cause the driver to read memory outside an allocated buffer and to send a small amount of the application's own uninitialized heap memory back to the endpoint in a follow-up command. The impact is limited to the process that embeds the driver.

Executive ViewAI

Why It Matters

CVE-2026-120956 is a high-severity vulnerability in the MongoDB C Driver that affects applications connecting to untrusted MongoDB endpoints. A malicious or compromised server can crash the embedding process and leak small amounts of heap memory, impacting availability and confidentiality. Leadership should prioritize this for teams using the C Driver in environments where backend servers are not fully trusted.

Business Impact: High
Compensating Controls

No vendor patch available. Interim mitigations: restrict connections to trusted MongoDB endpoints; validate server identities (e.g., TLS with certificate pinning); network segmentation; monitor for anomalous server responses; and consider using a different MongoDB driver until a patch is released.

Threat Intelligence Overview

Prevalence
Medium
common MongoDB client library, embedded in many apps but not ubiquitous infrastructure
Social Media
1
Sightings
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 HIGH
CISA KEV No
Public POC No
EPSS N/A
Patch available No
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.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· derived
None
System Exposure· derived
Open
Automatable· derived
No
Human Impact
High

Priority Score

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

Attack Technique

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