Cloudanix VulnDB

CVE-2026-88029

High · 8.3

CVSS

8.3

EPSS

0.3%

Published

Sep 10, 2026

CISA due date

—

Cloudanix analysis

Next patch cycle SSVC: Track

A logged-in user who can choose a file ID in apps that store files through this database library may be able to read the wrong files, rename the wrong files, or wipe stored file data so it cannot be opened.

Exploitation
Remote Authenticated
Attacker needs
Low Privilege
Complexity
Moderate
Impact
Data Tampering
Component
Library
Class
Improper Input Validation
Remediation
Upgrade
Effort
Medium
Patch risk
Low

What it actually does

The MongoDB Python Driver GridFS component fails to treat a caller-supplied file identifier as a literal value. A structured identifier can be interpreted as query criteria instead, so GridFS open, get, rename, or delete logic may match the wrong file, match many files, or match an entire bucket. Consequences include reading file content beyond the intended object, renaming a file other than the target, or removing all chunks in the affected bucket so stored files become unreadable.

Why it matters to the business

Applications that store documents, media, or backups in GridFS via the MongoDB Python Driver can suffer unauthorized file disclosure, integrity failures from incorrect renames, and widespread loss of stored-file availability if chunks are deleted. Impact is limited to authenticated users who can influence a file identifier, but that is a common pattern in download, replace, and delete features. The issue is not in CISA KEV, has no known ransomware use, and public exploit maturity is none; the CVSS 8.3 rating and 30 days since publication still warrant prompt inventory and compensating controls because no fixed versions are listed in this record.

How an attack unfolds

An attacker authenticates to an application that uses an affected MongoDB Python Driver and finds a feature that passes a user-influenced value into GridFS as a file identifier. Instead of a simple literal identifier, they supply a structured value. The driver treats that value as query conditions, so the subsequent GridFS read, rename, or delete applies to unintended files or to the whole bucket. A read yields extra stored content; a destructive path can drop all chunks in the bucket; a rename can change the wrong file. No user interaction is required. No named threat actors or KEV campaigns are associated with this CVE, and there is no public exploit maturity.

How to fix it

No patched versions are listed in this record. Monitor MongoDB and PyPI (pymongo) security advisories and upgrade the MongoDB Python Driver to a vendor-patched release as soon as one is published. Until then, coerce and validate GridFS identifiers at the application boundary so only literal scalar values (such as an ObjectId or string) are passed into GridFS get, open, rename, and delete APIs; never pass attacker-controlled structured objects as identifiers. Restrict which roles can invoke GridFS rename and delete, apply least privilege on GridFS collections, and ensure backups of GridFS files and chunks collections are current and restorable.

How to confirm the fix worked

Inventory services that import the MongoDB Python Driver and use GridFS. Record driver versions and compare them to the latest MongoDB/PyPI advisory once a fix is announced. Code-review all GridFS get, open, delete, and rename call sites for user-influenced identifiers. After upgrading or applying input constraints, confirm that only scalar identifiers are accepted and that operations affect only the intended file. Verify GridFS files and chunks document counts remain stable across identifier operations and that restore from backup works for the affected buckets.

Typical attack path

  1. Authenticate to an application that uses the MongoDB Python Driver GridFS APIs
  2. Identify a workflow that passes a user-influenced value as a GridFS file identifier (get, open, rename, or delete)
  3. Submit a structured identifier that the driver interprets as query conditions rather than a literal
  4. Cause a read of unintended file content, a rename of a non-target file, or a chunk-removal operation affecting the bucket
  5. Exfiltrate retrieved content or leave stored files unreadable or incorrectly named

How to detect it

No public exploit, named actors, or KEV activity is associated with this issue, so hunt for misuse of GridFS rather than a known implant. Review application logs for GridFS get, open, rename, and delete where the identifier is a structured object instead of a string or ObjectId. On MongoDB, inspect GridFS files and chunks collections (default fs.files/fs.chunks or custom bucket equivalents) for sudden mass deletion of chunks, unexpected filename or metadata changes, and single authenticated principals reading many files in a short window. Correlate with application authentication logs and MongoDB audit or profiler data around those operations. Application errors describing unexpected multi-document GridFS matches after an identifier operation are also worth triage.

  • GridFS get/open/rename/delete logs showing a document/object/dict identifier instead of a string or ObjectId
  • Sudden drop of GridFS chunks collections (fs.chunks or *.chunks) to empty or near-empty
  • Unexpected filename or metadata changes in GridFS files collections (fs.files or *.files) outside normal app workflows
  • MongoDB audit/profiler entries for GridFS collections using non-exact, document-shaped filters on files_id, _id, or filename
  • Single authenticated account performing high-volume GridFS reads, renames, or deletes in a short interval

What your security team should do

  • Inventory all applications using the MongoDB Python Driver GridFS and capture driver versions immediately
  • Track MongoDB and PyPI advisories until a patched driver exists, then upgrade as a priority given CVSS 8.3
  • Enforce application-layer validation so GridFS identifiers are scalars only and reject structured identifier input
  • Limit GridFS rename and delete to trusted roles and tighten collection privileges on GridFS buckets
  • Prioritize internet-facing or multi-tenant apps that accept file identifiers from authenticated users
  • Confirm GridFS backup and restore coverage before making destructive test or cleanup changes
  • Hunt for historical mass chunk deletion, unexpected GridFS renames, and over-broad file reads (see detection guidance)

The record

Improper neutralization of special elements in data query logic in the GridFS component of the MongoDB Python 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 packages

Ecosystem Package Introduced Fixed

Related vulnerabilities