Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessAuthenticate to target PHP application
-
DeliverySupply structured query operator as GridFS file identifier
-
ExploitLibrary interprets identifier as query condition
-
ExecutionMatch unintended GridFS documents in files/chunks collections
-
ImpactExfiltrate content from matched files OR delete all chunk documents in bucket
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) an authenticated account with at least low-privilege access to the target application (PR:L), (2) the application must pass attacker-influenced input directly to GridFS operations - specifically to a filename, file ID, or other identifier parameter - without coercing it to a scalar type, and (3) the application must use the MongoDB PHP Library's GridFS component (not plain MongoDB collection operations). The AT:P condition limits exploitation to applications with this specific data-flow pattern. What limits exploitation broadly: the majority of MongoDB PHP Library deployments that do not use GridFS are entirely unaffected; applications that validate identifier types (e.g., enforce ObjectId or string scalar) before passing to GridFS are not exploitable; unauthenticated access is not sufficient (PR:L required). The delete-all-chunks impact (VA:H) requires the GridFS operation invoked to be a delete or chunk-modifying call, not merely a read. |
| Impact | The CVSS 4.0 base score of 6.1 reflects a moderate-severity issue: VI:H and VA:H are the dominant signals, indicating high integrity and availability impacts respectively, while VC:L captures a limited confidentiality leak. The AT:P (Attack Requirements: Present) metric is the key risk qualifier - exploitation is not universally applicable but requires the application to pass attacker-influenced identifiers into GridFS operations. This architectural precondition narrows the real-world attack surface to PHP applications that expose GridFS filename or identifier parameters to user-controlled input. No EPSS score is provided in the input data; risk cannot be quantified probabilistically. No KEV listing and no public POC are identified, placing this in the 'patch but not emergency' tier for most deployments. For applications that do route user input to GridFS identifiers, VA:H is the most operationally severe signal - an attacker could destroy all file chunks in a bucket, which may be irreversible without backups. |
| Exploit ScenarioDerived | An authenticated user of a PHP web application that stores user-uploaded files via MongoDB GridFS supplies a crafted file identifier containing a MongoDB query operator (e.g., a JSON-structured value with $ne or $regex) instead of a literal filename. The GridFS component interprets this as a query condition, causing a file listing or download operation to return content from files owned by other users, or a delete operation to wipe all chunks in the entire GridFS bucket rather than only the intended target file. |
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 MongoDB PHP Library's GridFS component allows a low-privileged authenticated user who can influence the file identifier parameter to achieve three distinct impacts: reading file content beyond the intended target, deleting all GridFS file chunks within a bucket (rendering stored files unrecoverable), or renaming an unintended file. The CVSS 4.0 vector (AT:P) confirms exploitation depends on the target application routing attacker-influenced input directly into GridFS operations without sanitization. No public exploit or CISA KEV listing has been identified at time of analysis.
RemediationAI
Upgrade to the patched version of the MongoDB PHP Library once released per PHPLIB-1929 (https://jira.mongodb.org/browse/PHPLIB-1929); an exact fixed release version is not confirmed from available input data. As an immediate compensating control, applications should strictly validate and coerce file identifiers before passing them to GridFS operations: reject any identifier that is not a scalar string, integer, or MongoDB ObjectId - array or object-typed identifiers should be rejected at the application boundary. Additionally, applying the principle of least privilege to the MongoDB user account used by the PHP application limits blast radius; if an account only needs read access to GridFS, it should not hold the deleteFiles or rename privileges. Note that restricting privileges does not prevent the confidentiality leak component of this vulnerability.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 2 packages in composer, 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 specification for storing and retrieving files exceeding the BSON 16MB document limit by splitting them into chunks stored across two collections (files and chunks). The MongoDB PHP Library provides PHP-native wrappers around these GridFS operations. CWE-943 (Improper Neutralization of Special Elements in Data Query Logic - NoSQL Injection) arises when caller-supplied data containing MongoDB query operators (e.g., $ne, $gt, $regex, $where) or structured BSON objects is not coerced to a scalar type before being embedded in a query predicate. In this case, a file identifier parameter - expected to be a literal string or ObjectId - is interpreted as a query condition when it is structured as an operator expression, causing the GridFS operation to match unintended documents in the files or chunks collections. The CPE cpe:2.3:a:mongodb:mongodb_php_library:*:*:*:*:*:*:*:* with a wildcard version range indicates all evaluated versions of the library are affected, pending a specific fix boundary from JIRA PHPLIB-1929.
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-accessible via affected app, low complexity once data-flow condition is met, authenticated low-priv user required, no scope change; I:H and A:H reflect rename-wrong-file and delete-all-chunks impacts.
Primary rating from Vendor (mongodb).
CVSS VectorVendor: mongodb
DescriptionCVE.org
Improper neutralization of special elements in data query logic in the GridFS component of the MongoDB PHP Library 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
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-75637
GHSA-x6mc-fgjf-77r7
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB