CVE-2026-88030: GridFS data disclosure and deletion via query-operator injection in file IDs in the MongoDB Ruby Driver
Improper neutralization of special elements in data query logic in the GridFS component of the MongoDB Ruby Driver 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.
Affected Software
Event History
Frequently Asked Questions
Who is exposed to this issue?
Affected applications are exposed when an authenticated user can influence the file identifier passed to the MongoDB Ruby Driver's GridFS component. The issue is relevant where that identifier can be supplied as a structured value rather than being constrained to a literal identifier.
What access does an attacker need?
An attacker needs authentication and the ability to influence the file identifier used by the application. No user interaction is required.
What can exploitation do?
A crafted structured identifier can be interpreted as a query condition, allowing access to stored file content beyond the intended file. It can also remove all GridFS file chunks in the affected bucket, making stored file content unreadable.