Skip to main content

MongoDB C# Driver CVE-2026-81527

| EUVDEUVD-2026-67211 MEDIUM
Improper Neutralization of Special Elements in Data Query Logic (CWE-943)
2026-08-27 mongodb GHSA-qvhj-5652-cjrg
6.9
CVSS 4.0 · Vendor: mongodb
View

Attack ChainAIDerived

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

  1. Access
    Identify exposed application endpoint accepting user input
  2. Delivery
    Supply crafted input containing MongoDB operator/expression syntax
  3. Exploit
    Application passes unsanitized value into LINQ-to-aggregation translation
  4. Execution
    Driver transmits manipulated query to MongoDB
  5. Persist
    Database executes altered query logic
  6. Impact
    Attacker receives unintended records or bypassed filter results

Vulnerability Assessment

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

Exploitation requires that the target application uses the MongoDB C

Driver's LINQ-to-aggregation or query filter translation layer, AND that application-supplied (i.e., user-controlled) values are embedded into the affected LINQ query constructs without independent sanitization. Applications that use the MongoDB query builder API without passing user input through LINQ translation, or that sanitize inputs before query construction, are not vulnerable. Authentication requirements depend entirely on the application: the driver-level flaw itself operates without any credential check (PR:N in CVSS), but the attacker must be able to reach an application endpoint that feeds user input into an affected query. Exploitation is limited to data disclosure and query result manipulation - no code execution is implied. Specific platform or OS prerequisites do not apply; the vulnerability is in the cross-platform .NET library.

Impact

The CVSS 4.0 vector (AV:N/AC:L/AT:N/PR:N/UI:N) signals that exploitation requires no authentication, no special configuration, and no user interaction - a low-friction attack for any application that exposes user input paths into affected LINQ queries. However, the impact metrics (VC:L/VI:L/VA:N) are deliberately modest: the vulnerability enables unintended data disclosure and query result manipulation, not full compromise, remote code execution, or availability loss. EPSS data is not available in the provided intelligence. KEV status is absent, and no public proof-of-concept is referenced. The realistic risk is application-dependent: only codebases that use the driver's LINQ-to-aggregation or query filter translation with user-controlled input are exposed. Applications using parameterized or builder-pattern queries that do not pass raw user values through the affected translation paths are not at risk. The principal concern is data exfiltration via filter bypass, where an attacker could retrieve records outside their intended access scope.

Exploit ScenarioDerived

An attacker submitting a search or filter request to a .NET web application discovers that the application passes user-supplied search terms directly through a LINQ-to-MongoDB aggregation query. By embedding MongoDB query operators or expression syntax within their input, the attacker alters the query's filter logic - for example, causing a membership or ownership filter to be bypassed - and receives records belonging to other users. No public proof-of-concept is identified at time of analysis, but the injection class is well understood and low complexity to exploit once an injection point is identified.

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 LINQ-to-aggregation translation layer allows network-accessible, unauthenticated attackers to manipulate database queries by embedding special elements in application-supplied values. Affected applications using LINQ query constructs that incorporate user-controlled input fail to properly escape those values before transmission to MongoDB, enabling query logic injection. The CVSS 4.0 score of 6.9 (AV:N/AC:L/PR:N/UI:N) reflects broad reachability with limited but real data confidentiality and integrity impact; no public exploit or CISA KEV listing is identified at time of analysis.

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. Update the package reference in .csproj files (e.g., <PackageReference Include="MongoDB.Driver" Version="3.11.1" />) and rebuild affected applications. As a compensating control where immediate upgrade is not feasible, audit all LINQ query constructs that incorporate user-supplied values and apply explicit allow-list input validation before those values enter affected query paths - rejecting inputs containing MongoDB operator characters (e.g., $, ., {, }). Note that input filtering is brittle and should not replace patching; it may break legitimate use cases. Additionally, applying principle-of-least-privilege at the database level (restricting the application's MongoDB user to only required collections and operations) limits the data an attacker can access or manipulate via injected queries.

Affected VersionsENISA

C# Driver 2.14.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 vulnerability resides in the LINQ-to-aggregation query translation layer of the MongoDB C

Driver (CPE: cpe:2.3:a:mongodb:c#_driver:*:*:*:*:*:*:*:*), the official .NET client library for MongoDB. LINQ (Language Integrated Query) expressions in C

are translated at runtime into MongoDB aggregation pipeline stages and query filter documents. CWE-943 (Improper Neutralization of Special Elements in Data Query Logic) identifies the root cause: user-supplied string values embedded in affected LINQ constructs are passed into the translated query without sufficient escaping or sanitization, allowing MongoDB query operators or expression syntax to bleed through from data into the query logic plane. This is the NoSQL analogue of SQL injection, where the document query language, rather than SQL, is the injection target.

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

Network-reachable injection with no auth or interaction required; impact limited to partial data disclosure and query result alteration, scope unchanged.

3.1 AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N
4.0 AV:N/AC:L/AT:N/PR:N/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
None
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 NoSQL/expression injection weakness exists in the LINQ-to-aggregation query translation layer of the MongoDB C

Driver, in both aggregation expression and query filter translation. When application-supplied values are embedded in certain query constructs, special elements contained within those values are not properly escaped before the resulting query is transmitted to the database, so portions of the value may be interpreted by the database as query logic rather than as data. A user able to supply values that an application incorporates into an affected query may thereby cause unintended data to be returned or query results to be altered.

Threat Intelligence Overview

EPSS Score
0.2%
Top 92% exploitable
Prevalence
Medium
official MongoDB .NET client, widely used in enterprise .NET/MongoDB stacks
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
Yes
Human Impact· derived
Medium
Technical Impact
Partial

Priority Score

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

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