Skip to main content

MongoDB C Driver CVE-2026-88036

| EUVDEUVD-2026-75672 MEDIUM
Improper Neutralization of Special Elements in Data Query Logic (CWE-943)
2026-09-10 mongodb GHSA-fwpq-crrq-c5xc
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 target application
  2. Delivery
    Submit crafted GridFS identifier containing embedded MongoDB query operators
  3. Exploit
    Driver passes unsanitized structured value into GridFS query
  4. Execution
    Query matches unintended file set in bucket
  5. Impact
    Exfiltrate unauthorized file content (VC:L) OR trigger bulk deletion of all bucket chunks (VI:H/VA:H)

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 three concurrent conditions: (1) the attacker holds at minimum a low-privilege authenticated session with the application (PR:L - unauthenticated access is not sufficient); (2) the application uses the MongoDB C Driver's GridFS component to store or retrieve files; and (3) the application passes user-supplied or user-influenced values as GridFS file identifiers to driver operations without first sanitizing them or strictly casting to a non-injectable type such as ObjectId. The AT:P (attack requirements present) CVSS 4.0 modifier directly captures condition (3): applications that construct identifiers entirely from server-controlled data are not vulnerable. Exploitation impact is bounded to the GridFS bucket accessible via the driver's MongoDB connection credentials; non-GridFS collections and other buckets outside the connection's permission scope are not reachable through this vector.

Impact

The CVSS 4.0 score of 6.1 (Medium) with AT:P correctly reflects that exploitation depends on a specific application-level condition - the application must pass user-influenced values as GridFS identifiers without strict typing or sanitization - which limits the attack surface relative to a fully unauthenticated, condition-free vector. Despite the medium composite score, the VI:H and VA:H sub-scores reveal that successful exploitation carries disproportionately high consequences: the destructive path (bulk deletion of all GridFS chunks) is irreversible without backup recovery. Even a mid-sized municipal IT team in sanok relying on MongoDB-backed document or media storage should treat this as a priority remediation given that data loss - not merely disclosure - is within scope. PR:L confirms authentication is required, and AT:P confirms not all deployments are affected, collectively reducing widespread opportunistic exploitation risk. No KEV listing and no public exploit code were identified in available data; EPSS score was not provided, so exploitation probability cannot be quantified numerically. The combination of a vendor-tracked Jira issue (CDRIVER-6427) without a confirmed patched release adds uncertainty about remediation timeline.

Exploit ScenarioDerived

An authenticated application user submits a crafted file identifier - such as a JSON object containing a MongoDB query operator like {'$gt': ''} - to a GridFS file-retrieval or file-deletion API endpoint. The MongoDB C Driver passes this structured value directly into GridFS query logic without sanitization, causing the query to match all files in the bucket rather than a single target. In the delete path, this results in all GridFS chunk documents being removed, permanently rendering the entire bucket's stored content unreadable.

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

GridFS NoSQL injection in the MongoDB C Driver (libmongoc) enables authenticated users with influence over file identifier parameters to either access file content beyond their intended authorization or destroy all GridFS file chunks in the affected bucket, rendering stored data permanently unreadable. The root cause (CWE-943) is the driver's failure to distinguish between structured query operators and literal identifier values in GridFS operations, allowing attacker-controlled input to redirect or broaden MongoDB queries. No public exploit code or CISA KEV listing has been identified at time of analysis, but the high integrity and availability sub-scores in the CVSS 4.0 vector indicate genuinely severe outcomes in vulnerable deployments.

RemediationAI

Monitor and apply the patched MongoDB C Driver release once confirmed via the vendor's Jira tracker at https://jira.mongodb.org/browse/CDRIVER-6427, as a specific fixed version was not available in current references. As a compensating control prior to patching, applications should strictly type GridFS file identifiers - for example, casting user-supplied values to ObjectId or validating them against a strict format before passing them to driver functions - which prevents embedded query operators from being interpreted as query conditions; the trade-off is that this requires application-level changes and increases input validation complexity. Additionally, applying least-privilege MongoDB credentials to the application's database connection (read-only access where deletion is not required) removes the ability to trigger the destructive bulk-deletion path, at the cost of losing write capability. Applications that construct file identifiers entirely server-side from non-user-controlled data and never expose identifier construction to external input are not affected and require no immediate action.

Affected VersionsENISA

C Driver 1.14.0 <1.30.10
C Driver 2.0.0 <2.5.3

Affected Packages

euvd c_driver fix: 1.30.10, 2.5.3

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 protocol for persisting files exceeding the 16MB BSON document limit, splitting file data across a chunks collection and metadata across a files collection. The MongoDB C Driver (libmongoc, CPE: cpe:2.3:a:mongodb:c_driver:*:*:*:*:*:*:*:*) implements GridFS for C applications and also underpins the MongoDB C++ driver (mongocxx). CWE-943 (Improper Neutralization of Special Elements in Data Query Logic) describes the class of vulnerabilities where attacker-controlled values containing MongoDB query operators - such as $gt, $ne, $regex, or $where - are evaluated as query conditions rather than being treated as opaque literals. In GridFS, file identifiers are used to locate and manipulate specific chunks; when the driver accepts a structured value (e.g., a BSON document with embedded operators) as an identifier without sanitization, it can inadvertently match multiple or all files in the bucket rather than the single intended target, enabling unauthorized reads or bulk deletion.

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 8.3 HIGH

Network-reachable injection by authenticated (PR:L) user; no interaction needed; confidentiality limited (C:L) but integrity and availability both fully compromised via bulk deletion.

3.1 AV:N/AC:L/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
SUSE HIGH

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

Lifecycle Timeline

1
Patch available
Sep 10, 2026 - 20:02 EUVD

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.

Threat Intelligence Overview

EPSS Score
0.3%
Top 82% exploitable
Prevalence
Medium
official MongoDB C driver, also underlies C++ driver and PHP driver
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 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

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

Vendor StatusVendor

SUSE

Severity: Important
Product Status
openSUSE Tumbleweed Fixed

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