Advisory

GHSA-8fxw-fmj8-xp7j

Also known as: CVE-2026-88023

Summary

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

Details

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

Severity

Medium Basis: The source's own band: MODERATE

Dates

Published
2026-10-05 23:26 UTC
Modified
2026-11-09 17:00 UTC

Affected packages and fixes

mongodb/mongodb

Packagist · All systems

Affected

  • introduced 1.1.0, fixed 1.21.5 (ecosystem)

Fixed versions

1.21.5

Fix

The export has no generic command for this ecosystem.

mongodb/mongodb

Packagist · All systems

Affected

  • introduced 2.0.0, fixed 2.4.2 (ecosystem)

Fixed versions

2.4.2

Fix

The export has no generic command for this ecosystem.

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences