Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
ReconAuthenticate as low-privileged application user
-
DeliverySupply crafted connection input with embedded URL delimiters
-
ExploitApplication passes input to MongoDB URL builder
-
InstallBuilder output re-parsed as authoritative connection options
-
C2Injected options override TLS or auth settings
-
ExecuteDriver connects with downgraded security posture
-
ImpactAttacker intercepts credentials or data
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Argument sanitization
|
| Exploitation Conditions | Exploitation requires all three of the following conditions to be present in the target application: (1) user-controlled or externally-sourced text is passed as input to the MongoDB C Driver's connection-URL builder component; (2) the output of that builder is serialized to a string and then re-parsed by the driver to construct a MongoClient - the round-trip from builder to string to parsed configuration; and (3) the attacker has at least low-privileged authenticated access to the application (PR:L per CVSS 4.0). Applications using static connection strings hard-coded at deployment time are not affected. Applications using typed MongoClientSettings or MongoDatabaseSettings objects directly (bypassing string serialization) are not affected. The AC:H rating reflects that this specific construction pattern is non-default and unlikely to appear in well-architected applications. Limiting factors: attacker must be an authenticated application user, the vulnerable code path must exist in the application, and injected options must not be subsequently overridden by explicit typed configuration steps. |
| Impact | The CVSS 4.0 vector (AV:N/AC:H/PR:L/UI:N/VC:H/VI:L/VA:N/SC:H/SI:L/SA:N) scores 7.1, reflecting a meaningful but complexity-gated threat. AV:N confirms the vulnerability is reachable over the network, but AC:H is the critical limiting factor: successful exploitation requires the target application to follow a specific non-default pattern of accepting user input, passing it to the URL builder, and re-parsing the result - all three steps must be present. PR:L means the attacker must already be an authenticated user of the application, ruling out anonymous exploitation. The high confidentiality impact on both the vulnerable system (VC:H) and subsequent systems (SC:H) reflects that injected options could disable TLS, expose credentials, or redirect connections to attacker-controlled infrastructure. No KEV listing exists and no public exploit has been identified, making this a low-immediacy but high-consequence issue for the subset of applications that use the URL builder with untrusted input. Real-world risk is medium for applications with this architectural pattern and low to negligible for applications using static connection strings or typed MongoClientSettings objects. |
| Exploit ScenarioDerived | A .NET web application accepts a user-supplied MongoDB hostname or database name (e.g., from a multi-tenant onboarding form), interpolates it into the driver's connection-URL builder, and constructs a MongoClient from the resulting URL string. A low-privileged authenticated user submits a crafted value such as 'legit-host.com/?tls=false&authMechanism=SCRAM-SHA-1' that appends option overrides via embedded URL delimiters; the driver re-parses these as authoritative settings, disabling TLS and exposing credentials transmitted in subsequent queries. No public POC exists at time of analysis. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Aug 27, 2026
Connection-option injection in the MongoDB C
Driver allows a low-privileged application user to introduce or suppress security-relevant MongoDB connection settings by embedding URL delimiter characters in user-supplied input. When an application passes untrusted text into the driver's connection-URL builder and the resulting string is re-parsed as authoritative client configuration, the injected delimiters are treated as structural URL syntax rather than literal data - allowing options such as TLS mode or authentication parameters to be overridden. No public exploit has been identified at time of analysis; vendor-confirmed patch is available as version 3.11.1 on NuGet.
RemediationAI
Upgrade the MongoDB.Driver NuGet package to version 3.11.1 or later, available at https://www.nuget.org/packages/MongoDB.Driver/3.11.1; this is the vendor-confirmed fix for this vulnerability. For applications that cannot immediately upgrade, the most effective structural mitigation is to replace string-based URL construction with the typed MongoClientSettings or MongoDatabaseSettings API, which bypasses the URL serialization and re-parsing path entirely and eliminates the injection surface by design. As a second compensating control, sanitize or reject user-supplied input before it reaches the URL builder by stripping or percent-encoding URL structural characters ('?', '&', '=', '@', '/') - note this may break legitimate inputs that include those characters and requires careful allowlist design. Do not rely on connection-string sanitization alone without upgrading, as edge cases in delimiter handling may persist across driver versions.
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
CWE-88 (Improper Neutralization of Argument Delimiters) describes the root cause: the MongoDB C
Driver's connection-URL builder serializes untrusted input into a MongoDB connection string without escaping or stripping delimiter characters such as '?', '&', '=', '@', and '/'. When this serialized string is subsequently re-parsed by the driver to construct a MongoClient, the injected delimiter sequences are treated as legitimate option separators - a form of argument injection analogous to HTTP parameter pollution but operating on MongoDB connection-string syntax. The affected product is the MongoDB C
Driver NuGet package (CPE: cpe:2.3:a:mongodb:c#_driver:*:*:*:*:*:*:*:*), which underpins all .NET and C
applications using the official MongoDB driver. The vulnerability exists specifically in the URL builder component and the round-trip path from builder output back into client configuration parsing.
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:H/AT:N/PR:L/UI:N/VC:H/VI:L/VA:N/SC:H/SI:L/SA:N
AC:H reflects the non-default application pattern required; S:C and C:H because injected options can compromise database-tier connection security affecting downstream systems.
Primary rating from Vendor (mongodb).
CVSS VectorVendor: mongodb
Lifecycle Timeline
2DescriptionCVE.org
Improper neutralization of delimiters in connection-URL construction allows connection-option injection in the MongoDB C
Driver. When an application passes untrusted text into the driver's connection-URL builder and round-trips the builder back into a client configuration, the untrusted text is serialized without neutralizing the URL/option delimiters and is then re-parsed as authoritative connection options. A low-privileged user of such an application can thereby introduce or suppress security-relevant connection settings.
Executive ViewAI
The MongoDB C
Driver versions prior to 3.11.1 contain a connection-option injection vulnerability that allows low-privileged application users to override critical security settings including TLS mode and authentication parameters. This enables attackers with limited application access to bypass encryption and authentication controls, creating a direct path to unauthorized database access and potential data exposure. Organizations using affected driver versions must upgrade immediately to prevent compromise of database security controls.
Apply vendor patch.
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
Code injection occurs when an application accepts user input and passes it directly into a language interpreter or evaluator without proper sanitization.
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-67213
NVD
CVE.org
EPSS
Vulnrichment
VulDB
GitHub PoC
Exploit-DB