Skip to main content

MongoDB C# Driver CVE-2026-81529

| EUVDEUVD-2026-67213 HIGH
Improper Neutralization of Argument Delimiters in a Command ('Argument Injection') (CWE-88)
2026-08-27 mongodb
7.1
CVSS 4.0 · Vendor: mongodb
View

Attack ChainAIDerived

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

  1. Recon
    Authenticate as low-privileged application user
  2. Delivery
    Supply crafted connection input with embedded URL delimiters
  3. Exploit
    Application passes input to MongoDB URL builder
  4. Install
    Builder output re-parsed as authoritative connection options
  5. C2
    Injected options override TLS or auth settings
  6. Execute
    Driver connects with downgraded security posture
  7. Impact
    Attacker 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.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.2% exploitation probability (EPSS)

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

Alert me

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

C# Driver 3.5.0 <3.11.1

Affected Packages

euvd c_driver fix: 3.11.1

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

Vendor (mongodb) PRIMARY 7.1 HIGH
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
vuln.today AI 7.1 HIGH

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.

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

Primary rating from Vendor (mongodb).

CVSS VectorVendor: mongodb

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

Lifecycle Timeline

2
Patch available
Aug 27, 2026 - 22:03 EUVD
CVE Published
Aug 27, 2026 - 18:32 cve.org
HIGH 7.1

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

Why It Matters

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.

Business Impact: High
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

EPSS Score
0.2%
Top 93% exploitable
Prevalence
Medium
official MongoDB driver for all .NET/C# applications
Data Quality
6 sources
Confidence: High

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 0.2%
Patch available Yes
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
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
No
Human Impact
High
Technical Impact
Partial

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

Code Injection CRITICAL

Code injection occurs when an application accepts user input and passes it directly into a language interpreter or evaluator without proper sanitization.

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