Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
ReconAuthenticate as low-privileged application user
-
DeliveryIdentify GridFS file access or delete endpoint
-
ExploitCraft file identifier containing MongoDB query operator syntax
-
InstallSubmit crafted identifier via application API
-
C2C++ Driver passes unsanitized object into GridFS query
-
ExecuteDatabase matches unintended chunks
-
ImpactExfiltrate unauthorized file content or delete all bucket chunks
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 all of the following: (1) the target application uses the MongoDB C++ Driver (mongocxx) with its GridFS API - other MongoDB drivers are not confirmed affected; (2) an authenticated user with at least low-level access (PR:L) can influence the file identifier value that the application passes to a GridFS operation, such as via an API parameter, form field, or request body; (3) the application does not enforce strict type checking on the identifier before passing it to the driver - specifically, it must allow structured objects rather than enforcing ObjectId or plain string types. The AT:P designation in CVSS 4.0 confirms that exploitation is conditional on this specific code-path pattern. Limiting factors include: authentication is required (PR:L, not unauthenticated); only GridFS buckets accessible to the affected application are at risk; other MongoDB collections outside GridFS are not directly affected by this vector; and the vulnerability does not exist in applications that properly type-validate identifiers before driver invocation. |
| Impact | The CVSS 4.0 vector (AV:N/AC:L/AT:P/PR:L/UI:N/VC:L/VI:H/VA:H) yields a score of 6.1, with the moderate score driven primarily by the AT:P (attack requirements present) condition - exploitation depends on a specific deployment pattern where user-controlled data flows into GridFS identifier parameters without type enforcement. The high integrity (VI:H) and availability (VA:H) impacts are the most serious signals: a successful injection that triggers a broad-match deletion can irreversibly destroy all file chunks in a GridFS bucket without backups. Confidentiality impact is bounded (VC:L) since an attacker may access unintended files but cannot directly exfiltrate the full MongoDB instance. No EPSS score was provided, and no KEV listing or POC code is noted, suggesting no confirmed active exploitation at time of analysis. The gap between the moderate composite score and the severity of the worst-case impact (bucket-wide data destruction) warrants careful evaluation - even a mid-sized municipal IT team in rybnik running C++ applications backed by MongoDB GridFS should treat this as urgent remediation if any application code path allows user-controlled identifiers to reach the driver without strict type validation. |
| Exploit ScenarioDerived | An authenticated low-privileged user identifies an application endpoint that accepts a file identifier and retrieves or deletes a GridFS file via the MongoDB C++ Driver. The attacker submits a crafted identifier containing a MongoDB query operator (such as a structured object with a $gte or $regex key) instead of a literal file ID; the driver passes this object directly into the GridFS query without sanitization. The database evaluates the operator condition, matching all GridFS chunk documents in the bucket and either returning unauthorized file content or deleting all chunks, permanently destroying stored data. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Sep 10, 2026
NoSQL injection (CWE-943) in the GridFS component of the MongoDB C++ Driver allows an authenticated low-privileged user who can influence file identifiers to read unauthorized stored file content or cause mass deletion of all GridFS chunks in an affected bucket, rendering stored data unreadable. The flaw arises because caller-supplied structured file identifiers are not neutralized before being evaluated as query conditions rather than literal values. No public exploit has been identified at time of analysis, but the potential for irreversible, bucket-wide data destruction makes this a significant integrity and availability risk for any C++ application using GridFS where user-controlled identifiers reach the driver API.
RemediationAI
The primary fix is to apply the patched release of the MongoDB C++ Driver once available per MongoDB Jira CXX-3556 (https://jira.mongodb.org/browse/CXX-3556); however, no specific fixed version has been confirmed in available data at time of analysis - track that Jira ticket for the patched release version. As an immediate compensating control, application developers should enforce strict type validation on all file identifiers before passing them to GridFS driver calls: accept only MongoDB ObjectId types or validated string formats that cannot contain operator syntax, and reject any structured object input. Applications should never pass raw user-supplied JSON or BSON objects as GridFS file identifiers. Reviewing GridFS-facing endpoints to ensure the principle of least privilege is enforced - so only authorized roles can invoke GridFS read or delete operations - will reduce the blast radius. Maintaining current, tested backups of GridFS buckets is strongly recommended given the potential for irreversible bulk chunk deletion.
Affected VersionsENISA
Affected Packages
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 standard for storing files exceeding the 16 MB BSON document limit by splitting them into chunks stored across two collections: 'files' (metadata) and 'chunks' (binary data). The MongoDB C++ Driver (mongocxx/libmongocxx, CPE cpe:2.3:a:mongodb:c++_driver:*:*:*:*:*:*:*:*) implements this specification and is the affected component. CWE-943 (Improper Neutralization of Special Elements in Data Query Logic) describes a class of injection where user-supplied data containing structured query operators - such as MongoDB's $gt, $gte, $regex, or $where - is embedded into a query document without sanitization, causing the database to evaluate the operator semantics rather than perform an equality match on a literal _id value. In MongoDB's document model, queries are BSON objects, meaning any operator-keyed field in the input can alter query semantics, unlike SQL injection where a separate string parsing stage is required. The wildcard CPE version range indicates the issue spans multiple release versions of the driver.
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
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
AC:H reflects the AT:P condition requiring user-controlled identifiers to reach GridFS unsanitized; PR:L for authenticated low-privilege requirement; I:H and A:H for potential full-bucket chunk deletion.
Primary rating from Vendor (mongodb).
CVSS VectorVendor: mongodb
Lifecycle Timeline
1DescriptionCVE.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
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.
What every action level means
SSVC AssessmentENISA
Priority Score
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.
MongoDB before 2.0.9 and 2.2.x before 2.2.4 does not properly validate requests to the nativeHelper function in SpiderMo
Use-after-free in MongoDB Server's replication component can terminate replica set members unexpectedly and, under certa
The find prototype in scripting/engine_v8.h in MongoDB 2.4.0 through 2.4.4 allows remote authenticated users to cause a
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
Remote code execution in Chartbrew versions prior to 4.8.1 allows authenticated attackers with high privileges to execut
After user deletion in MongoDB Server the improper invalidation of authorization sessions allows an authenticated user's
The default configuration for MongoDB before 2.3.2 does not validate objects, which allows remote authenticated users to
Unauthenticated MongoDB filter erasure in Budibase Server 3.39.18 through 3.44.0 lets a remote attacker read, modify, or
Authenticated command injection in Dokploy before 0.31.1 lets any user who can update a MySQL, PostgreSQL, MariaDB, Mong
SimStudio below 0.5.74 has a missing authorization on MongoDB tool endpoints that allows attackers to execute arbitrary
MongoDB Server may access non-initialized region of memory leading to unexpected behaviour when zero arguments are calle
MongoDB Compass may be susceptible to code injection due to insufficient sandbox protection settings with the usage of e
EUVD-2026-75670
GHSA-x33j-9628-wvwc
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB