Medium

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

  • Disclosed: 05.10.2026
  • Updated: 11.10.2026 10:22

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

Affected software

Click a technology to see all vulnerabilities affecting it.

PlatformPackageVulnerable versionsFixed in
Composer package mongodb/mongodb >= 1.1.0, < 1.24.5, >= 2.0.0, < 2.4.2 1.24.5, 2.4.2

References

CVSS score -
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
Weakness (CWE)
-
Platform
Composer
Package
mongodb/mongodb
Disclosed
05.10.2026
Updated
11.10.2026 10:22

Sources and licenses

OSV / GitHub Advisory Database - GHSA-8fxw-fmj8-xp7j - CC BY 4.0

Vulnerability history: mongodb/mongodb

All published vulnerabilities of this package (Composer package), newest first. Shows whether this is a one-off slip or a package that needs watching.

Total entries
3
First → latest
08.2023 10.2026
Without a fix
0
Exploited in attacks
0

Severity breakdown

  • High 1
  • Medium 2

Disclosures per year

  1. 2023: 1
  2. 2024: 0
  3. 2025: 0
  4. 2026: 2
  1. MongoDB: GridFS data disclosure and deletion via query-operator injection in file IDs this entry
    Medium CVE-2026-88023 >= 1.1.0, < 1.24.5, >= 2.0.0, < 2.4.2 1.24.5, 2.4.2
  2. High · 8.1 CVE-2026-81525 < 1.21.4, >= 2.0.0, < 2.4.1 1.21.4, 2.4.1
  3. Medium · 4.2 CVE-2021-32050 >= 1.0.0, < 1.9.2 1.9.2

Know which vulnerabilities affect your application

With the DockRay integration and software inventory enabled, DockRay checks reported component versions against known vulnerabilities and notifies you about confirmed matches. Coverage depends on the supported technology and available advisory data.

Connect your application
DockRay newsletter

Application security in your inbox

Important vulnerabilities, actionable guidance and practical advice for your applications. Choose your technologies and follow what matters to your project.

  • A daily digest of new vulnerabilities, critical ones included.
  • Notifications about important updates.
  • Practical advice on application security and monitoring.

Leave empty to receive updates for every technology.

Free to subscribe. Unsubscribe with one click in any email.