6.1medium
GridFS data disclosure and deletion via query-operator injection in file IDs in the MongoDB PHP Library
- Severity
- 6.1medium CVSS:4.0 by mongodb
- Exploit likelihood
- 0.41% (higher than 37% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- mongodb
- Also known as
- GHSA-8fxw-fmj8-xp7j
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.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| MongoDB MongoDB PHP Library | from 1.1.0 up to 1.21.4, from 2.0.0 up to 2.4.1 | CVE List |
| mongodb/mongodb (Packagist) | from 1.1.0 before 1.21.5, from 2.0.0 before 2.4.2 | GitHub Advisory Database |
| mongodb php_library | from 1.1.0 before 1.21.5, from 2.0.0 before 2.4.2 | NVD |
All scores
| mongodb | 6.1medium CVSS:4.0 | 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 |
| mongodb | 8.3high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:H/A:H |
| GitHub | medium CVSS:4.0 | 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 |
Classification
SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.
What each source says
CVE List
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.
GitHub Advisory Database
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
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-88023 changed 2026-09-10 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-8fxw-fmj8-xp7j changed 2026-11-09 | CC-BY-4.0 |
| NVD | CVE-2026-88023 changed 2026-09-29 | Public domain |