Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessAuthenticate to target application
-
DeliverySubmit crafted GridFS identifier containing embedded MongoDB query operators
-
ExploitDriver passes unsanitized structured value into GridFS query
-
ExecutionQuery matches unintended file set in bucket
-
ImpactExfiltrate 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. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – 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
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 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
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
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.
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
Same technique Information Disclosure
View allVendor StatusVendor
SUSE
Severity: Important| Product | Status |
|---|---|
| openSUSE Tumbleweed | Fixed |
EUVD-2026-75672
GHSA-fwpq-crrq-c5xc
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB