Disclosure summary
### Impact 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. ### Patches Fixed in 1.21.5 and 2.4.2. ### Workarounds Validate GridFS IDs. ### References https://jira.mongodb.org/browse/PHPLIB-1929
Source-specific records & product guidance
Sources retain their own attribution and scoring. Follow the original record to confirm affected versions, fixed releases, and configuration conditions.
GitHub Reviewed Security Advisories · GHSA-8fxw-fmj8-xp7j
Open original source · Updated Oct 05, 2026
MongoDB: GridFS data disclosure and deletion via query-operator injection in file IDs
Source severity: MEDIUM / 6.1
| Ecosystem | Package | Affected range | First patched |
|---|---|---|---|
| composer | mongodb/mongodb | >= 1.1.0, < 1.21.5 | 1.24.5 |
| composer | mongodb/mongodb | >= 2.0.0, < 2.4.2 | 2.4.2 |
Original records & references
- NIST NVD record
- CVE Program record
- github.com — Reviewed advisory
PUBLISHED 2026-10-05T19:26:58-04:00
MODIFIED 2026-10-05T19:26:59-04:00
INGESTED 2026-10-06T11:45:33-04:00