GridFS data disclosure and deletion via query-operator injection in file IDs
Medium6.1CVE-2026-88025 · Published Sep 10, 2026
### Impact Improper neutralization of special elements in data query logic in the GridFS component of the MongoDB C# 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. ### Patches Fixed in 3.11.2. GridFS now wraps file IDs in an explicit $eq comparison, so a structured ID cannot be interpreted as a query predicate. ### Workarounds No known workarounds. ### References [CSHARP-6190](https://jira.mongodb.org/browse/CSHARP-6190), [Fix](https://github.com/mongodb/mongo-csharp-driver/commit/53e865892f159ae2c61f69f2203ac6da4c02ff16), [CVE](https://www.cve.org/CVERecord?id=CVE-2026-88025)
Affected versions
| Package | Affected | Fixed in |
|---|---|---|
| MongoDB.Driver NuGet | >= 3.0.0, < 3.11.2 | 3.11.2 |
| MongoDB.Driver.GridFS NuGet | >= 2.3.0, <= 2.30.0 | No fix yet |
Details and references
- CVSS 4.0
- 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
- Severity from
- GitHub (reviewed advisory)
- Weakness
- CWE-943
More MongoDB advisories
All MongoDB| Date | Advisory | Severity | Fixed in |
|---|---|---|---|
| Sep 11 | GridFS data disclosure and deletion via query-operator injection in file IDs | Medium6.1 | 1.30.10+1 more |
| Sep 10 | Application denial of service via cancellation race in reactive client-side encryption in MongoDB Java Driver | High8.2 | 5.11.1+1 more |
| Sep 10 | GridFS data disclosure and deletion via query-operator injection in file IDs in the MongoDB Java Driver | High8.3 | 5.11.1+1 more |
| Sep 10 | Regular expression injection via unescaped characters in LINQ query translation | High7.1 | 3.11.2 |
| Sep 10 | GridFS data deletion via operator-document injection in file IDs | Medium6.1 | 1.17.10+1 more |
| Sep 10 | GridFS data disclosure and deletion via query-operator injection in file IDs | Medium6.1 | 3.9.1 |