Skip to main content

MongoDB C# Driver EUVDEUVD-2026-75640

| CVE-2026-88026 HIGH
Improper Neutralization of Special Elements in Data Query Logic (CWE-943)
2026-09-10 mongodb GHSA-j7j2-rrxf-5xvf
7.1
CVSS 4.0 · Vendor: mongodb
View

Attack ChainAIDerived

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

  1. Access
    Authenticate to target .NET application
  2. Delivery
    Submit crafted input containing regex metacharacters
  3. Exploit
    LINQ provider translates input into unescaped MongoDB regex predicate
  4. Execution
    MongoDB returns records matching the expanded pattern
  5. Impact
    Attacker reads unauthorized documents from collection

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 an authenticated session with at least low privilege (PR:L) in the target application. The application must be built on the MongoDB C

Driver's LINQ provider - applications using the low-level BSON driver API directly or using string-based query construction with manual escaping are not affected. The specific vulnerable code path must incorporate user-controlled input into a LINQ expression that causes the driver to generate a MongoDB regex predicate (e.g., via String.Contains, Regex.IsMatch, or similar pattern-matching constructs in LINQ). Limiting factors: authentication is required and unauthenticated exploitation is not possible per the CVSS 4.0 PR:L metric; the application must expose the regex-generating LINQ code path to user input; and impact is bounded to read-only record disclosure within the queried MongoDB collection.

Impact

The CVSS 4.0 score of 7.1 with vector AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N is an accurate reflection of the risk profile: network-reachable, low complexity, no special attack requirements, requiring only a low-privilege authenticated session, with high confidentiality impact but no integrity or availability component. No EPSS score, KEV listing, or POC exploit code is present in available data, leaving exploitation likelihood unquantified by external signals; however, the attack class is well-understood and the technique requires no specialized tools. Even a mid-sized municipal IT team in zabrze running a .NET application with MongoDB-backed LINQ search endpoints should treat this as an urgent access-control review if any user-controlled input flows into regex predicates. The primary constraint on real-world impact is that exploitation is scoped to what data the MongoDB collection contains and which records the attacker can retrieve through the manipulated filter - write-injection (integrity) and denial of service are not possible via this flaw alone. The CPE wildcard version range ('*') indicates no fixed version has been identified in NVD metadata, elevating urgency until the CSHARP-6177 fix version is confirmed.

Exploit ScenarioDerived

An authenticated user of a .NET web application submits a search value such as '.*' or 'prefix.*|.*' through a search or filter endpoint. The application passes this value directly into a LINQ expression like 'collection.Where(x => Regex.IsMatch(x.Name, userInput))', which the MongoDB C

Driver translates into a MongoDB regex query. The resulting regex matches far more documents than intended, and the attacker receives records belonging to other tenants, users, or sensitive categories they were not authorized to view. No public exploit code has been identified, but the technique is trivially constructable by any developer familiar with regex syntax.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
No patch listed yet 0.2% exploitation probability (EPSS)

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

Alert me

AnalysisAIv1 – Sep 10, 2026

Regex metacharacter injection in the MongoDB C

Driver's LINQ query translation layer allows an authenticated low-privilege user to alter generated regular-expression predicates, causing the application to return database records beyond those the original filter was designed to expose. The vulnerability, reported by MongoDB and tracked under CSHARP-6177 (CWE-943), requires only network access and a low-privilege account - making it a meaningful access-control risk in any .NET application that incorporates user input into LINQ regex-based queries against MongoDB. No public exploit has been identified at time of analysis, and no EPSS or KEV data is present in available intelligence.

RemediationAI

Upgrade the MongoDB C

Driver to the version identified in MongoDB Jira CSHARP-6177 (https://jira.mongodb.org/browse/CSHARP-6177) as resolving this issue; the precise fixed release must be confirmed directly from the ticket, as no patched version number is encoded in currently available NVD or CPE data. As a compensating control prior to patching, developers should apply Regex.Escape() to any user-controlled string before it is incorporated into a LINQ expression that generates a MongoDB regex predicate; note that this changes matching semantics (the input is treated as a literal string, not a pattern), which may require application-level adjustments. Where possible, replace regex-generating LINQ predicates with exact equality or prefix-match operators that do not involve regex construction, eliminating the attack surface entirely. Additionally, enforce output filtering at the application layer - validate that returned records match the original intent of the query - as a defense-in-depth measure against any bypass.

Affected VersionsENISA

C# Driver 2.14.0 ≤3.11.1

Affected Packages

euvd c_driver no fix

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 (CPE cpe:2.3:a:mongodb:c#_driver:*:*:*:*:*:*:*:*) provides a LINQ provider that translates C

language-integrated query expressions into MongoDB BSON query operations. When a LINQ predicate involves a string-pattern or regex-based filter, the driver constructs the corresponding MongoDB regular-expression operator. CWE-943 (Improper Neutralization of Special Elements in Data Query Logic - NoSQL) applies directly: if user-supplied character sequences are embedded in the query path without escaping regex metacharacters such as '.', '*', '?', '[', ']', '(', ')', '^', and '$', an attacker can inject characters that fundamentally alter the compiled regex. A filter intended to match documents with prefix 'acct-123' could be widened to match all documents if input like '.*' is injected. Unlike classic SQL injection, this flaw does not allow arbitrary command execution - it is scoped to the confidentiality impact of expanded record access within the MongoDB collection being queried.

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

Network-reachable via application endpoint, low privileges required per description, no scope change, high confidentiality impact from unauthorized record disclosure, no integrity or availability impact.

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

DescriptionCVE.org

Improper neutralization of regular-expression metacharacters in the LINQ query translation component of the MongoDB C

Driver can cause a caller-supplied character sequence to alter a regular-expression predicate generated by an affected application. An authenticated user who can influence such a value may cause the application to return records beyond those intended by the original filter.

Executive ViewAI

Why It Matters

The MongoDB C

Driver contains a regex injection vulnerability in its LINQ translation layer that allows low-privilege authenticated users to bypass query filters and access database records beyond their authorization scope. This affects all .NET applications using the vulnerable driver, particularly those incorporating user input into LINQ regex predicates. Organizations must identify and remediate at-risk applications immediately to prevent unauthorized data disclosure.

Business Impact: High
Compensating Controls

No vendor-released patch identified at time of analysis. Interim mitigations: sanitize and validate all user input before LINQ query construction to filter regex metacharacters; restrict or disable LINQ regex query functionality where feasible; enforce granular role-based access controls to limit unauthorized data exposure; implement query auditing to detect anomalous regex patterns indicating exploitation; segment database credentials and access by application classification and data sensitivity.

Threat Intelligence Overview

EPSS Score
0.2%
Top 88% exploitable
Prevalence
Medium
widely used in .NET enterprise applications backed by MongoDB
Data Quality
5 sources
Confidence: Medium

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 No
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

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