Skip to main content

MongoDB C# Driver CVE-2026-88025

| EUVDEUVD-2026-75639 MEDIUM
Improper Neutralization of Special Elements in Data Query Logic (CWE-943)
2026-09-10 mongodb GHSA-m8p4-wmg5-p4x3
6.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 application with low-privilege credentials
  2. Delivery
    Identify application endpoint forwarding user-supplied file identifier to GridFS
  3. Exploit
    Craft structured identifier containing MongoDB query operators
  4. Execution
    Submit crafted identifier to GridFS operation endpoint
  5. Persist
    Driver evaluates operator as query condition matching multiple documents
  6. Impact
    Read unauthorized file content OR delete all bucket chunks rendering data unreadable

Vulnerability Assessment

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

The attacker must be authenticated to the application with at least low-level privileges (PR:L per CVSS 4.0). The critical attack-enabling condition (AT:P) is that the affected application must accept a user-supplied value and forward it directly - without casting to a strongly typed ObjectId or otherwise sanitizing it - as a file identifier to the MongoDB C

Driver's GridFS component. Applications that generate file identifiers server-side or that strictly parse and validate user input before passing it to GridFS are not vulnerable. The exploitation is scoped entirely to GridFS operations (download, delete, rename) on the affected bucket; other MongoDB collection operations and driver components are not directly at risk from this specific injection path. Exploitation does not require direct database access - only access to an application endpoint that wraps GridFS operations.

Impact

The CVSS 4.0 score of 6.1 with vector AV:N/AC:L/AT:P/PR:L/UI:N/VC:L/VI:H/VA:H is well-calibrated. The AT:P metric is the critical risk-moderating factor: exploitation requires that the affected application actually passes user-controlled values - without strong typing or sanitization - as file identifiers to the GridFS driver. Deployments that internally generate identifiers (e.g., server-assigned ObjectIds) or validate/cast input before passing it to GridFS are not exploitable. The VI:H and VA:H scores reflect genuinely severe outcomes: bulk chunk deletion can permanently destroy all files in a bucket, and misdirected renames affect integrity broadly. The VC:L score (not VC:H) reflects that the attacker may retrieve file content beyond their scope, but the query structure limits the blast radius compared to a full credential-based disclosure. EPSS score is not provided in available data. No KEV listing and no known POC exist. The single reference (MongoDB JIRA CSHARP-6190) does not include a public-facing vendor security advisory or confirmed fixed version, which reduces confidence in remediation specifics.

Exploit ScenarioDerived

An attacker authenticated to a .NET web application that exposes a GridFS file-download or delete endpoint - where the application passes the user-supplied file ID directly to the C

Driver - submits a crafted JSON-structured identifier such as {"$exists": true} in place of a standard ObjectId. The driver constructs a query matching all documents in the bucket, returning all file chunks to the attacker (information disclosure) or, on a delete operation, removing every chunk in the bucket and making all stored files permanently unreadable. No public proof-of-concept exploit has been identified at time of analysis.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
No patch listed yet 0.3% exploitation probability (EPSS)

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

Alert me

AnalysisAIv1 – Sep 10, 2026

NoSQL injection in the GridFS component of the MongoDB C

Driver allows an authenticated low-privilege attacker who can influence file identifiers passed by an affected application to execute query-condition attacks against GridFS bucket operations. Exploitation can yield unauthorized read access to stored file content, complete destruction of all file chunks in the affected bucket (rendering all stored content unrecoverable), or misdirection of rename operations to unintended files. No public exploit has been identified at time of analysis; the CVSS 4.0 score of 6.1 reflects the AT:P (attack-requirements present) constraint that the vulnerable application must forward user-controlled identifiers to the driver without sanitization.

RemediationAI

The primary remediation reference is MongoDB JIRA CSHARP-6190 (https://jira.mongodb.org/browse/CSHARP-6190); a confirmed fixed version of the MongoDB C

Driver is not available from the data provided. Until a patched version is confirmed, application-level mitigations should be applied immediately: (1) Cast or parse all user-supplied file identifiers to a strongly typed MongoDB ObjectId before passing them to the GridFS driver - reject any input that cannot be parsed as a valid ObjectId, which eliminates the injection vector entirely. (2) Audit all application code paths where user-controlled data flows into GridFS find, download, delete, and rename operations and ensure no raw structured values reach the driver. (3) Apply the principle of least privilege to GridFS bucket access - restrict which application roles can invoke deletion or rename operations. Monitor the MongoDB JIRA ticket and the MongoDB C

Driver release notes (NuGet: MongoDB.Driver) for a patched release.

Affected VersionsENISA

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

GridFS is MongoDB's chunked file storage specification, implemented in the C

Driver (cpe:2.3:a:mongodb:c#_driver:*:*:*:*:*:*:*:*) as a higher-level abstraction over the files and chunks collections. The root cause (CWE-943: Improper Neutralization of Special Elements in Data Query Logic) is a NoSQL injection pattern: when the driver constructs MongoDB query documents using a caller-supplied file identifier, it does not enforce that the value is treated as a literal (e.g., a typed ObjectId). A structured value containing MongoDB query operators - such as {"$gt": ""} or {"$exists": true} - is instead interpreted as a query condition, allowing it to match multiple documents. This affects GridFS operations including file download (confidentiality), chunk deletion (availability), and rename (integrity). The JIRA project prefix CSHARP-6190 confirms this is the C

driver, a distinct product from the MongoDB C Driver (libmongoc).

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

AC:H reflects AT:P prerequisite - application must forward unsanitized user-controlled identifiers to GridFS; PR:L for authenticated low-privilege attacker; I:H/A:H for bulk deletion and rename impact.

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

Primary rating from Vendor (mongodb).

CVSS VectorVendor: mongodb

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

DescriptionCVE.org

Improper neutralization of special elements in data query logic in the GridFS component of the MongoDB C

Driver can cause a caller-supplied structured file identifier to be interpreted as a query condition rather than as a literal identifier. An authenticated user who can influence the identifier passed by an affected application may obtain stored file content beyond the intended target or cause all GridFS file chunks in the affected bucket to be removed, rendering stored file content unreadable. The affected rename operation may also rename a stored file other than the intended target.

Threat Intelligence Overview

EPSS Score
0.3%
Top 75% exploitable
Prevalence
Medium
popular MongoDB driver for .NET/C# enterprise applications
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 MEDIUM
CISA KEV No
Public POC No
EPSS 0.3%
Patch available No
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

30
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +30
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-2026-118383 CRITICAL POC
9.5 Nov 10

Use-after-free in MongoDB Server's replication component can terminate replica set members unexpectedly and, under certa

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-137498 CRITICAL
9.9 Nov 26

Unauthenticated MongoDB filter erasure in Budibase Server 3.39.18 through 3.44.0 lets a remote attacker read, modify, or

CVE-2026-129987 CRITICAL
9.9 Nov 18

Authenticated command injection in Dokploy before 0.31.1 lets any user who can update a MySQL, PostgreSQL, MariaDB, Mong

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

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy