GitHub Advisoryadvisory · Packagist
GHSA-8fxw-fmj8-xp7j MongoDB: GridFS data disclosure and deletion via query-operator injection in file IDs
MEDIUM
Official page ↗
- Aliases
- CVE-2026-88023
- Ecosystem
- Packagist
- Packages
- mongodb/mongodb
- Severity
- Moderate
- CVSS vector
- 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
- Reviewed
- 2026-10-05
Affected packages
• Packagist mongodb/mongodb: >= 1.1.0, < 1.24.5 → fixed in 1.24.5
• Packagist mongodb/mongodb: >= 2.0.0, < 2.4.2 → fixed in 2.4.2
Description
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
Related
Alias · CVE (1)
- CVE-2026-88023 Improper neutralization of special elements in data query logic in the GridFS component of the MongoDB PHP Library can cause a… vulnerability
References
- https://github.com/mongodb/mongo-php-library/security/advisories/GHSA-8fxw-fmj8-xp7j web
- https://nvd.nist.gov/vuln/detail/CVE-2026-88023 advisory
- https://github.com/mongodb/mongo-php-library/pull/1981 web
- https://github.com/mongodb/mongo-php-library/commit/8c0b165069ab29d52a80a379a947ac9a55734601 web
- https://github.com/mongodb/mongo-php-library package
- https://github.com/mongodb/mongo-php-library/releases/tag/1.21.5 web
- https://github.com/mongodb/mongo-php-library/releases/tag/2.4.2 web
- https://jira.mongodb.org/browse/PHPLIB-1929 web