Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
ReconAuthenticate to application with low privileges
-
DeliveryCraft BSON query-operator object as file identifier
-
ExploitSubmit to GridFS file operation endpoint
-
InstallApplication forwards unvalidated identifier to Go Driver GridFS call
-
C2Driver passes object as MongoDB query filter
-
ExecuteMongoDB matches all bucket chunks
-
ImpactAll file chunks deleted, bucket contents destroyed
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: (1) low-privilege authentication to the target application (PR:L in CVSS vector), (2) the application uses the MongoDB Go Driver's GridFS component and forwards user-controlled input as a file identifier to GridFS operations without type-coercing it to a primitive scalar, and (3) the attacker can supply a value that the application's call path accepts as an identifier parameter without rejecting structured types. The CVSS 4.0 AT:P metric captures this dependency explicitly - applications that validate or type-enforce identifiers before calling the driver are not affected. Exploitation is limited to the GridFS bucket accessible to the application's database credentials; broader database access or cross-bucket impact is not demonstrated. Only the availability and integrity of stored GridFS file data are at risk; no confidentiality exposure applies. |
| Impact | The CVSS 4.0 score of 6.1 (AV:N/AC:L/AT:P/PR:L/UI:N/VC:N/VI:H/VA:H) accurately captures the risk profile. The AT:P metric (Attack Requirements: Present) is the critical moderating factor: exploitation depends on an application forwarding user-controlled values to GridFS operations without type enforcement - a pattern that is common in dynamically constructed APIs but not universal. Applications that sanitize or type-coerce identifiers before GridFS calls are not exploitable. Where the condition is met, the impact is severe: all chunks in the targeted bucket are deleted, rendering every stored file unreadable (VA:H, VI:H). Confidentiality impact is explicitly zero (VC:N), making the 'Information Disclosure' tag in the input metadata incorrect. No public exploit code and no CISA KEV listing have been identified, placing real-world exploitation probability at low-to-moderate for applications that pass raw user input to GridFS. The Jira-only reference lacks a patched version number, which is a meaningful data gap for defenders. |
| Exploit ScenarioDerived | An authenticated user submits a crafted file identifier - structured as a BSON query operator expression such as {"$gte": primitive.NilObjectID} - to an application endpoint that resolves and deletes files by ID. The application forwards the unvalidated value to the MongoDB Go Driver's GridFS delete operation, which passes it to MongoDB as a query filter rather than a point-lookup ID. MongoDB matches and deletes all chunk documents in the bucket, permanently destroying every stored file's content. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Sep 10, 2026
NoSQL injection in the MongoDB Go Driver's GridFS component allows an authenticated, low-privileged user who can influence the file identifier forwarded by an application to trigger mass deletion of all file chunks in the affected GridFS bucket. The GridFS delete and lookup operations fail to enforce that a caller-supplied identifier is a literal value, so a structured query object (e.g., a BSON operator expression) is passed directly to MongoDB's query engine as a filter condition rather than a point lookup. No public exploit has been identified at time of analysis; the CVSS 4.0 metrics confirm high integrity and availability impact (VI:H, VA:H) against a specific attack condition (AT:P), scoring 6.1.
RemediationAI
Upgrade to the patched version of the MongoDB Go Driver; the exact fixed release version is not confirmed from available data - consult the Jira issue GODRIVER-4081 (https://jira.mongodb.org/browse/GODRIVER-4081) for the patched release tag. As an immediate compensating control, enforce strict type validation on all file identifiers before passing them to GridFS operations: resolve identifiers to a concrete primitive.ObjectID or string value and reject any structured or map-type input at the application boundary. This eliminates the injection path regardless of driver version and carries no meaningful side effects for correctly structured applications. Additionally, apply principle of least privilege to MongoDB credentials used by the application - limiting delete permissions on GridFS collections reduces the blast radius if exploitation occurs.
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
MongoDB GridFS is a protocol layered on top of MongoDB for storing files larger than the 16 MB BSON document limit by splitting them into chunks across a 'files' collection and a 'chunks' collection. The official Go client library (go.mongodb.org/mongo-driver) implements GridFS operations including file lookup and deletion. CWE-943 - Improper Neutralization of Special Elements in Data Query Logic - describes the root cause: the GridFS component constructs a MongoDB query using the caller-supplied file identifier without first asserting that the value is a concrete scalar type (ObjectID or string). A BSON document passed as an identifier (e.g., {"$gte": ObjectID("")}) is forwarded verbatim to the MongoDB query engine, which interprets it as a filter expression matching all documents in the chunks collection rather than a single file's chunks, enabling mass deletion. The vulnerability is tracked in MongoDB Jira as GODRIVER-4081.
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:N/VI:H/VA:H/SC:N/SI:N/SA:N
AC:H reflects the AT:P condition: exploitation requires the application to forward user-controlled values to GridFS without type enforcement, a non-universal pattern.
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 Go 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 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
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
Authenticated command injection in Dokploy before 0.31.1 lets any user who can update a MySQL, PostgreSQL, MariaDB, Mong
Unauthenticated MongoDB filter erasure in Budibase Server 3.39.18 through 3.44.0 lets a remote attacker read, modify, or
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-75667
GHSA-gf3f-xg7m-h8wp
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB