CVE-2026-88033: GridFS data disclosure and deletion via query-operator injection in file IDs in the MongoDB Java Driver
Improper neutralization of special elements in data query logic in the GridFS component of the MongoDB Java 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. The affected rename operation may also rename a stored file other than the intended target.
Affected Software
Event History
Frequently Asked Questions
Who can exploit this issue?
An authenticated user must be able to influence the file identifier that an affected application passes to the MongoDB Java Driver GridFS component. The issue is relevant where applications accept or derive structured identifiers from user-controlled input rather than treating them as literal file IDs.
What could an attacker do?
An attacker may retrieve GridFS file content beyond the intended target, cause all GridFS file chunks in the affected bucket to be removed so stored content becomes unreadable, or cause a rename operation to rename a different stored file than intended.
How can teams determine whether they are exposed?
Review application flows that use GridFS and identify whether authenticated users can influence identifiers supplied to file retrieval, deletion, or rename operations. Exposure depends on caller-supplied structured file identifiers being interpreted as query conditions rather than literal identifiers.