GridFS data disclosure and deletion via query-operator injection in file IDs in the MongoDB Python Driver (MongoDB Python Driver)
At a glance
- Source
- NVD
- EPSS
- EPSS 0.27 % · percentile 18 ()
- State
- PUBLISHED
- Published
- Updated
- Assigner
- mongodb
- NVD status
- Analyzed
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.
Weaknesses (CWE)
- CWE-943 — Improper Neutralization of Special Elements in Data Query Logic
References
Scores
| Version | Score | Vector | Scored by |
|---|---|---|---|
| CVSS 4.0 | MEDIUM 6.1 | 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 | mongodb |
| CVSS 3.1 | HIGH 8.3 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:H/A:H | mongodb |
| CVSS 4.0 | MEDIUM 6.1 | 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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X | NVD · cna@mongodb.com (Secondary) |
| CVSS 3.1 | HIGH 8.3 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:H/A:H | NVD · cna@mongodb.com (Secondary) |
Advisories
- GHSA-8fvv-fgr5-f8ch — pymongo: PYTHON-5994 Use exact match for file ID in GridFS delete methods
- PYSEC-2026-4294 — pymongo: PYTHON-5994 Use exact match for file ID in GridFS delete methods
European references
- ENISA EUVD · EUVD-2026-75665
- GCVE · GCVE-0-2026-88029
CERT-FR advisories
- CERTFR-2026-AVI-1169 — Multiples vulnérabilités dans MongoDB · cert.ssi.gouv.fr
Affected configurations (NVD CPE)
cpe:2.3:a:mongodb:python_driver:*:*:*:*:*:mongodb:*:*≥ 1.6 < 4.18.1
Affected products
| Product | Versions |
|---|---|
| MongoDB · Python Driver | affected 1.6.0 < 4.18.1 |
Sources
| Source | Licence |
|---|---|
| CVE List (CVEProject cvelistV5) | CVE Program Terms of Use |
| EPSS (FIRST.org) | FIRST — attribution requested |
| ENISA EUVD | ENISA — reproduction authorised, source acknowledged |
| CERT-FR (ANSSI) | Licence Ouverte / Etalab 2.0 |
| NVD (NIST) via fkie-cad/nvd-json-data-feeds | Public domain — this product uses data from the NVD API but is not endorsed or certified by the NVD |