Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessLure client to attacker-controlled MongoDB endpoint
-
DeliveryClient issues query without credentials
-
ExploitServer returns malformed namespace field
-
ExecutionDriver reads out-of-bounds heap memory
-
ImpactProcess 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. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – 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
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
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
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
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.
Primary rating from Vendor (mongodb).
CVSS VectorVendor: mongodb
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.
Articles & Coverage 1
Executive ViewAI
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.
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
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
Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.
MongoDB before 2.0.9 and 2.2.x before 2.2.4 does not properly validate requests to the nativeHelper function in SpiderMo
The find prototype in scripting/engine_v8.h in MongoDB 2.4.0 through 2.4.4 allows remote authenticated users to cause a
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
Remote code execution in Chartbrew versions prior to 4.8.1 allows authenticated attackers with high privileges to execut
After user deletion in MongoDB Server the improper invalidation of authorization sessions allows an authenticated user's
The default configuration for MongoDB before 2.3.2 does not validate objects, which allows remote authenticated users to
SimStudio below 0.5.74 has a missing authorization on MongoDB tool endpoints that allows attackers to execute arbitrary
MongoDB Server may access non-initialized region of memory leading to unexpected behaviour when zero arguments are calle
MongoDB Compass may be susceptible to code injection due to insufficient sandbox protection settings with the usage of e
Under certain configurations of --tlsCAFile and tls.CAFile, MongoDB Server may skip peer certificate validation which ma
All versions of bson before 1.1.4 are vulnerable to Deserialization of Untrusted Data. Rated critical severity (CVSS 9.8
Memory corruption in the MongoDB BI Connector ODBC Driver (fixed in v1.4.9) occurs when an oversized catalog, schema, or
EUVD-2026-116135
NVD
CVE.org
GitHub PoC
Exploit-DB