# GHSA-8FXW-FMJ8-XP7J: MongoDB: GridFS data disclosure and deletion via query-operator injection in file IDs

- Database: GitHub
- Severity: medium (stated by ghsa, no CVSS score)
- Published: 2026-10-05
- Modified: 2026-11-09

## Tracked as

- [CVE-2026-88023](https://cve.now/CVE-2026-88023.md): GridFS data disclosure and deletion via query-operator injection in file IDs in the MongoDB PHP Library

## Affected versions

- mongodb/mongodb (Packagist): from 1.1.0, fixed in 1.21.5
- mongodb/mongodb (Packagist): from 2.0.0, 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

## References

- https://github.com/mongodb/mongo-php-library/security/advisories/GHSA-8fxw-fmj8-xp7j
- https://nvd.nist.gov/vuln/detail/CVE-2026-88023
- https://github.com/mongodb/mongo-php-library/pull/1981
- https://github.com/mongodb/mongo-php-library/commit/8c0b165069ab29d52a80a379a947ac9a55734601
- https://github.com/mongodb/mongo-php-library
- https://github.com/mongodb/mongo-php-library/releases/tag/1.21.5
- https://github.com/mongodb/mongo-php-library/releases/tag/2.4.2
- https://jira.mongodb.org/browse/PHPLIB-1929

Page: https://cve.now/GHSA-8FXW-FMJ8-XP7J

Wrong or missing data? Send feedback: POST https://cve.now/api/v1/feedback (see https://cve.now/agents#feedback).
