# CVE-2026-88025: MongoDB C# Driver GridFS query injection

Source: https://junglewise.ai/threats/cve-2026-88025-mongodb-c-driver-gridfs-query-injection  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2026-09-10. Updated: 2026-09-26  
License: CC BY 4.0 with a link back

CVE-2026-88025 · Severity: high · CVSS 8.3 · Published 2026-09-10

The MongoDB C# Driver's GridFS component (a file storage system) contains a vulnerability where file identifiers supplied by applications are improperly processed, allowing attackers to be interpreted as database query operators rather than literal file identifiers. An authenticated attacker could read unintended files, delete all files in a bucket, or rename arbitrary files, compromising data confidentiality and availability.

Technologies: [MongoDB C Driver](https://junglewise.ai/threats/technologies/c-driver). Vendors: [MongoDB](https://junglewise.ai/threats/vendors/mongodb).

## Quick answers

**Is CVE-2026-88025 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2026-88025 being exploited in the wild.

**How severe is CVE-2026-88025?** High severity, with a CVSS score of 8.3, published 10 September 2026.

**Which products and versions are affected?** MongoDB C Driver versions prior to 3.11.2.

**Is there a fix for CVE-2026-88025?** A patch was published on 2026-09-09: Fix released in version 3.11.2 Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.

**How is CVE-2026-88025 attacked?** It is attacked over the network, in a software library.

**Am I affected by CVE-2026-88025?** Check whether you run MongoDB C Driver at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## Technical details

The MongoDB C# Driver's GridFS component fails to properly neutralize special elements in file identifiers used in database queries. The vulnerable code does not enforce exact matching (via $eq operator) when looking up file identifiers, allowing attackers to inject query conditions through crafted identifiers. An authenticated user who can control the file ID parameter passed to affected GridFS operations (delete, read, rename) can cause those operations to match multiple files or all files in a bucket rather than the intended target. This results in unauthorized data access, bulk deletion of files, or unintended file modifications. The fix, implemented in version 3.11.2, wraps all user-supplied file IDs with the $eq operator to ensure literal matching.

## Affected products

- MongoDB C# Driver versions prior to 3.11.2

## Timeline

- 2026-09-10: disclosed
- 2026-09-09: patched: Fix released in version 3.11.2

## References

- [https://jira.mongodb.org/browse/CSHARP-6190](https://jira.mongodb.org/browse/CSHARP-6190)

## Related threats

- [MongoDB C# Driver BSON type allow-list bypass](https://junglewise.ai/threats/cve-2026-126982-a-type-allow-list-bypass-in-the-bson-serialization-library-of)
- [MongoDB C Driver namespace field validation bypass](https://junglewise.ai/threats/cve-2026-120956-the-mongodb-c-driver-does-not-validate-the-type-or-format-of-a)
- [MongoDB C Driver GridFS file download denial of service](https://junglewise.ai/threats/cve-2026-120955-the-gridfs-file-download-api-in-the-mongodb-c-driver-does-not)
- [MongoDB C Driver memory-initialization flaw in GridFS](https://junglewise.ai/threats/cve-2026-120684-a-memory-initialization-flaw-in-the-legacy-gridfs-file-handling)
- [MongoDB C Driver memory leak in compressed responses](https://junglewise.ai/threats/cve-2026-120678-a-memory-management-flaw-in-the-mongodb-c-driver-s-handling-of)
