Skip to main content

MongoDB C# Driver EUVDEUVD-2026-67212

| CVE-2026-81528 MEDIUM
Improper Neutralization of Special Elements in Data Query Logic (CWE-943)
2026-08-27 mongodb GHSA-3jfm-hm2c-wrqh
5.3
CVSS 4.0 · Vendor: mongodb
View

Attack ChainAIDerived

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

  1. Access
    Authenticate to application layer
  2. Delivery
    Submit crafted replacement document embedding MongoDB operators
  3. Exploit
    Driver skips element-name validation
  4. Execution
    Payload forwarded unfiltered to MongoDB server
  5. Persist
    Server executes injected operators as update logic
  6. Impact
    Attacker achieves unauthorized read or modification of database documents

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Query language parameterization
Exploitation Conditions

Three concrete conditions must all be met: (1) The application uses MongoDB.Driver (C

NuGet) in a version prior to 3.11.1. (2) The application performs document-replacement operations (ReplaceOne, ReplaceOneAsync, or equivalent) using loosely-typed input - specifically BsonDocument, Dictionary-based types, or dynamic objects - rather than strongly-typed C

model classes; the CVE description explicitly states strongly-typed document mappings are not affected, making this a hard prerequisite. (3) The attacker can supply input that reaches the replacement operation, requiring at minimum application-level authenticated access (consistent with CVSS PR:L). Exploitation is limited by: requirement for PR:L authenticated access rather than unauthenticated network access; the restriction to loosely-typed code paths, which excludes a significant portion of well-typed .NET applications; and impact bounded to the application's own database credentials, constraining the blast radius to permissions already granted to the application's database user.

Impact

The CVSS 4.0 score of 5.3 (Medium) with vector AV:N/AC:L/AT:N/PR:L/UI:N/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N captures real but bounded risk. PR:L is the key limiter: the attacker must possess authenticated access at the application layer sufficient to supply input that reaches a replacement operation. Impact is Low on both confidentiality and integrity on the vulnerable system, with no availability or subsequent-system impact, limiting the blast radius to data-level manipulation within the application's own database permissions. No EPSS score was provided in the source data; neither a KEV listing nor a public proof-of-concept has been identified, reducing operational urgency. The vulnerability is architecture-dependent - it does not affect strongly-typed C

model-based code paths, narrowing the real-world exploitable population to applications that accept loosely-typed replacement documents from user-controlled input. Organizations with MongoDB-backed APIs that pass raw BsonDocument or Dictionary inputs directly into replacement operations should treat this as a medium-priority patch given the ease of exploitation once the attacker has application-level access, while those exclusively using typed mappings can deprioritize accordingly.

Exploit ScenarioDerived

An attacker with authenticated access to an application API endpoint that accepts JSON document input crafts a replacement payload containing MongoDB update operators - for example, substituting a legitimate replacement body with {"$set": {"role": "administrator"}} or {"$unset": {"auditLog": ""}}. Because the C

driver forwards the replacement to MongoDB without neutralizing the '$'-prefixed operator keys, the server executes the injected logic under the application's database credentials, allowing unauthorized modification or disclosure of database contents. No public proof-of-concept has been identified at time of analysis, but the attack pattern is well-understood by practitioners familiar with NoSQL injection techniques.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.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

NoSQL injection in the MongoDB C

Driver's document-replacement code path allows network-accessible, low-privileged attackers to inject MongoDB query-language operators into database operations. The driver omits the element-name and shape validation applied by other write paths, so untrusted loosely-typed input (BsonDocument, Dictionary, dynamic) is forwarded to the MongoDB server unfiltered, enabling attacker-controlled data to be interpreted as update logic under the application's own database credentials. No public exploit or CISA KEV listing has been identified at time of analysis; exploitation is bounded to applications that use loosely-typed replacement patterns rather than strongly-typed C

document mappings.

RemediationAI

Upgrade MongoDB.Driver to version 3.11.1 or later via NuGet (https://www.nuget.org/packages/MongoDB.Driver/3.11.1), which reintroduces element-name and shape validation for the document-replacement code path. Where an immediate upgrade is not feasible, refactor replacement operations to use strongly-typed C

model classes rather than BsonDocument, Dictionary<string, object>, or dynamic types - the vulnerability is explicitly absent from the strongly-typed mapping path, making this a robust interim mitigation with the trade-off of requiring code changes and schema rigidity. As an additional application-layer control, validate replacement documents at the API boundary to reject any input whose keys begin with '$' or match known MongoDB operator patterns before passing them to driver calls; this is not a complete fix (the driver should perform this neutralization itself) but adds defense-in-depth. The NuGet package page (https://www.nuget.org/packages/MongoDB.Driver/3.11.1) is the authoritative patch reference; no separate vendor advisory URL was provided in the source data.

Affected VersionsENISA

C# Driver 2.9.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

The MongoDB C

Driver (NuGet package MongoDB.Driver) exposes document-replacement operations such as ReplaceOne and ReplaceOneAsync. Other write paths in the driver apply element-name and shape validation to neutralize MongoDB query-language special elements (operators prefixed with '$', such as $set, $unset, $inc, $push). The replacement code path omits this validation, meaning a caller-supplied replacement document is serialized and sent to the MongoDB server verbatim. CWE-943 (Improper Neutralization of Special Elements in Data Query Logic) describes this root cause precisely: when user-controlled data containing query-language operators reaches the database engine without neutralization, the engine interprets those operators as query or update logic rather than as literal data values. The CPE cpe:2.3:a:mongodb:c#_driver:*:*:*:*:*:*:*:* indicates all versions prior to the fix are in scope. The CVSS 4.0 vector (AV:N/AC:L/AT:N/PR:L/UI:N) reflects that exploitation is network-reachable, requires no special preconditions beyond low privileges, and needs no user interaction once the attacker can supply input to the vulnerable code path.

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

AC:H reflects that exploitation requires the target application to use loosely-typed replacement patterns; PR:L because application-layer authenticated access is needed to reach the vulnerable code path.

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

Lifecycle Timeline

1
Patch available
Aug 27, 2026 - 22:03 EUVD

DescriptionCVE.org

A MongoDB C

driver document-replacement code path omits the element-name/shape validation that the equivalent write paths apply, so a value supplied as a replacement is forwarded to the server without neutralization of query-language special elements. An application that passes untrusted, loosely-typed input as a replacement value therefore allows that input to be interpreted by the database as update logic rather than as data, executing under the application's own database credentials. Applications using strongly-typed document mappings are not affected.

Threat Intelligence Overview

EPSS Score
0.2%
Top 94% exploitable
Prevalence
Medium
popular driver for .NET MongoDB application development
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 MEDIUM
CISA KEV No
Public POC No
EPSS 0.2%
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
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
No
Human Impact· derived
Medium
Technical Impact
Partial

Priority Score

26
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +26
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.

NoSQL injection exploits databases that don't use traditional SQL syntax-like MongoDB, CouchDB, or Redis-by manipulating queries through unsanitized user input.

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