CVE-2026-88029
JSON

6.1medium

GridFS data disclosure and deletion via query-operator injection in file IDs in the MongoDB Python Driver

Severity
6.1medium CVSS:4.0 by mongodb
Exploit likelihood
0.27% (higher than 19% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
mongodb
Also known as
GHSA-8fvv-fgr5-f8chPYSEC-2026-4294

Description

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

Product or packageVersionsReported by
MongoDB Python Driverfrom 1.6.0 before 4.18.1CVE List
pymongo (PyPI)before 4.18.1GitHub Advisory Database, PyPA Advisory Database
mongodb python_driverfrom 1.6 before 4.18.1NVD

All scores

mongodb6.1medium CVSS:4.0CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:L/VI:H/VA:H/SC:N/SI:N/SA:N
mongodb8.3high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:H/A:H
GitHubmedium CVSS:4.0CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:L/VI:H/VA:H/SC:N/SI:N/SA:N
PyPA Advisory DatabaseNot scored CVSS:4.0CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:L/VI:H/VA:H/SC:N/SI:N/SA:N

Classification

CWE-943

SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.

What each source says

CVE List

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.

GitHub Advisory Database
Impact

When reading/writing via an ID with the GridFS API, require an exact match on the given ID. Otherwise, if a Hash is given in place of the ID, it may be interpreted as criteria, overriding the ID match.

Patches

Patch available in pymongo >= 4.18.1

Workarounds

Ensure your existing workflow only supports exact matching on the GridFS API.

References

Sources

SourceRecordLicence
CVE ListCVE-2026-88029 changed 2026-09-10CVE Terms of Use
GitHub Advisory DatabaseGHSA-8fvv-fgr5-f8ch changed 2026-10-15CC-BY-4.0
NVDCVE-2026-88029 changed 2026-09-29Public domain
PyPA Advisory DatabasePYSEC-2026-4294 changed 2026-10-15CC-BY-4.0