Track vulnerabilities like this one.
Sign up free to get alerted when software you use is affected.
6.1
MongoDB PHP Library GridFS can expose or delete files
published 1 month ago
Summary
The MongoDB PHP Library’s GridFS feature may treat a crafted file identifier as a database query. An authenticated user who can influence that identifier could view files they shouldn't see or cause all file pieces to be erased, making data unreadable. Update to the latest library version or apply the vendor’s recommended fix to prevent this behavior.
What to do
- Update mongodb mongodb to version 1.21.5 or later.
Affected software
| Ecosystem | Vendor | Product | Affected versions |
|---|---|---|---|
| composer | mongodb | mongodb | >= 1.1.0, < 1.21.5 |
Original advisory text
Duplicate Advisory: GridFS data disclosure and deletion via query-operator injection in file IDs
## Duplicate Advisory
This advisory has been withdrawn because it is a duplicate of GHSA-8fxw-fmj8-xp7j. This link is maintained to preserve external references.
## Original Description
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.
This advisory has been withdrawn because it is a duplicate of GHSA-8fxw-fmj8-xp7j. This link is maintained to preserve external references.
## Original Description
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.
Internet-facing
60 days
Internal
At next upgrade
- Not known to be exploited
- Needs hands-on effort to exploit (estimated)
- Gives an attacker partial control (estimated)
Type
CWE-943Improper Neutralization of Special Elements in Data Query Logic
Timeline
Published10 Sep 2026
Updated6 Oct 2026
First seen6 Oct 2026
Sources
GHSA-x6mc-fgjf-77r7 · GHSA
Track software like this
Free during beta