NewApp Monitoring is liveSign up free
AgentbeamBeta
Open-source package vulnerability · Composer (PHP)

CVE-2026-88023: MongoDB: GridFS data disclosure and deletion via query-operator injection in file IDs

mediumCVSS 4.0 6.1GHSA-8fxw-fmj8-xp7j

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.

Published Oct 5, 2026 · Updated Nov 9, 2026

Affected packages

mongodb/mongodb

Ecosystem
Composer (PHP)
Affected
>= 1.1.0, < 1.21.5
Fixed in
1.21.5
Check
composer show mongodb/mongodb

mongodb/mongodb

Ecosystem
Composer (PHP)
Affected
>= 2.0.0, < 2.4.2
Fixed in
2.4.2
Check
composer show mongodb/mongodb

Advisory details

From the GitHub Advisory Database (CC BY 4.0).

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

Credited to stanleys12, kamilk3d.

References

How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology

More Composer (PHP) vulnerabilities

All Composer (PHP) entries