cve.bz

CVE-2026-88029 mongodb python driver

6.1 mediumEPSS 0.3%Fix available

Medium (6.1) in mongodb python driver. EPSS 0.3% estimated probability of exploitation activity in the next 30 days. Fixed in pymongo 4.18.1.

On this page
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.

Severity

CVSS 4.0

6.1 medium
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

CVSS 3.1

8.3 high
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:H/A:H
EPSS
0.3% (unchanged from 0.3% a week ago; 0.3% 30 days ago) estimated probability of exploitation activity in the next 30 days; 19th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: no · Technical impact: partial, assessed 2026-09-10. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-943 Improper Neutralization of Special Elements in Data Query Logic
Published
Modified
NVD analysis
Analyzed
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2026-88029 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2026-88029?via=ask-ai-copy and https://cve.bz/cve/CVE-2026-88029?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2026-88029 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the CNA's record in the CVE List.

ProductAffected
MongoDB Python Driverfrom 1.6.0 before 4.18.1

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-8fvv-fgr5-f8chPyPIpymongo<4.18.14.18.1
PYSEC-2026-4294PyPIpymongo<4.18.14.18.1

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12, 13pymongono fix listedDEBIAN-CVE-2026-88029
Debian14pymongo4.18.1-1DEBIAN-CVE-2026-88029
Ubuntu14.04:LTS, 20.04:LTS, 22.04:LTS and 5 morepymongono fix listedUBUNTU-CVE-2026-88029
Red Hatenterprise_linux:8::appstreampython-PyMySQL, python3-PyMySQL0:0.10.1-2.module+el8.10.0+20784+edafcd43RHSA-2026:82858
Red Hatenterprise_linux:8::appstreampython-distro, python3-distro0:1.4.0-2.module+el8.10.0+20784+edafcd43RHSA-2026:82858
Red Hatenterprise_linux:8::appstreampython-docs, python3-docs0:3.6.7-2.module+el8.10.0+20784+edafcd43RHSA-2026:82858
Red Hatenterprise_linux:8::appstreampython-docutils, python3-docutils0:0.14-12.module+el8.10.0+20784+edafcd43RHSA-2026:82858
Red Hatenterprise_linux:8::appstreampython-nose, python3-nose, python-nose-docs0:1.3.7-31.module+el8.10.0+20784+edafcd43RHSA-2026:82858
Red Hatenterprise_linux:8::appstreampython-pygments, python3-pygments0:2.2.0-22.module+el8.10.0+20784+edafcd43RHSA-2026:82858
Red Hatenterprise_linux:8::appstreampython-sqlalchemy, python3-sqlalchemy, python-sqlalchemy-doc0:1.3.2-3.module+el8.10.0+20981+3704b446RHSA-2026:82858
Red Hatenterprise_linux:8::appstreampython-virtualenv, python3-virtualenv, python-virtualenv-doc0:15.1.0-23.module+el8.10.0+22619+61b70790RHSA-2026:82858
Red Hatenterprise_linux:8::appstreampython-wheel, python3-wheel, python3-wheel-wheel1:0.31.1-3.module+el8.10.0+20784+edafcd43RHSA-2026:82858
Red Hatenterprise_linux:8::appstreampython3-bson, python-pymongo, python3-pymongo and 6 more0:3.7.0-3.module+el8.10.0+25000+2cc6bf61RHSA-2026:82858
Red Hatenterprise_linux:8::appstreampython36, python36-debug, python36-devel and 1 more0:3.6.8-39.module+el8.10.0+20784+edafcd43RHSA-2026:82858
Red Hatenterprise_linux:8::appstreamscipy, python3-scipy, scipy-debugsource and 1 more0:1.0.0-21.module+el8.10.0+20784+edafcd43RHSA-2026:82858
36 more for Red Hat in the JSON and on Red Hat's page.
openSUSETumbleweedpython-pymongo4.18.1-1.1openSUSE-SU-2026:11808-1
AlmaLinux8python3-PyMySQL0.10.1-2.module_el8.9.0+3700+efebe9fdALSA-2026:82858
AlmaLinux8python3-bson, python3-pymongo, python-pymongo-doc and 1 more3.7.0-3.module_el8.10.0+4300+ca04280aALSA-2026:82858
AlmaLinux8python3-distro1.4.0-2.module_el8.9.0+3700+efebe9fdALSA-2026:82858
AlmaLinux8python3-docs3.6.7-2.module_el8.9.0+3700+efebe9fdALSA-2026:82858
AlmaLinux8python3-docutils0.14-12.module_el8.9.0+3700+efebe9fdALSA-2026:82858
AlmaLinux8python3-nose, python-nose-docs1.3.7-31.module_el8.9.0+3700+efebe9fdALSA-2026:82858
AlmaLinux8python3-pygments2.2.0-22.module_el8.9.0+3700+efebe9fdALSA-2026:82858
AlmaLinux8python3-scipy1.0.0-21.module_el8.9.0+3700+efebe9fdALSA-2026:82858
AlmaLinux8python3-sqlalchemy, python-sqlalchemy-doc1.3.2-3.module_el8.10.0+3769+3838165bALSA-2026:82858
AlmaLinux8python3-virtualenv, python-virtualenv-doc15.1.0-23.module_el8.10.0+3937+b6a3652fALSA-2026:82858
AlmaLinux8python3-wheel, python3-wheel-wheel1:0.31.1-3.module_el8.9.0+3700+efebe9fdALSA-2026:82858
AlmaLinux8python36, python36-debug, python36-devel and 1 more3.6.8-39.module_el8.10.0+3769+3838165bALSA-2026:82858
Rocky Linux8python-PyMySQL0:0.10.1-2.module+el8.10.0+1582+bc278001RLSA-2026:82858
Rocky Linux8python-PyMySQL0:0.10.1-2.module+el8.10.0+1592+61442852RLSA-2026:82858
Rocky Linux8python-PyMySQL0:0.10.1-2.module+el8.10.0+1860+afcc1c71RLSA-2026:82858
Rocky Linux8python-PyMySQL0:0.10.1-2.module+el8.10.0+1910+234ad790RLSA-2026:82858
Rocky Linux8python-distro0:1.4.0-2.module+el8.10.0+1592+61442852RLSA-2026:82858
Rocky Linux8python-distro0:1.4.0-2.module+el8.10.0+1910+234ad790RLSA-2026:82858
Rocky Linux8python-docs0:3.6.7-2.module+el8.10.0+1592+61442852RLSA-2026:82858
Rocky Linux8python-docs0:3.6.7-2.module+el8.10.0+1910+234ad790RLSA-2026:82858
Rocky Linux8python-docutils0:0.14-12.module+el8.10.0+1592+61442852RLSA-2026:82858
Rocky Linux8python-docutils0:0.14-12.module+el8.10.0+1910+234ad790RLSA-2026:82858
Rocky Linux8python-docutils0:0.14-12.module+el8.10.0+40170+5f5fdfebRLSA-2026:82858
Rocky Linux8python-docutils0:0.14-12.module+el8.9.0+1531+a18208f5RLSA-2026:82858
19 more for Rocky Linux in the JSON.

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0; AlmaLinux's OSV database, MIT; Rocky Linux's errata, BSD-3-Clause. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · openSUSE.

Red Hat

Red Hat rates this Important.

Red Hat's statement

This vulnerability is rated as Important because an authenticated user who can influence a GridFS file identifier can delete all file chunks in the affected bucket, making stored files unreadable, and can retrieve or rename a file other than the intended target. Exploitation requires an application to pass a structured identifier, for example a dictionary containing MongoDB query operators, into GridFS download, delete, or rename APIs rather than a literal identifier such as an ObjectId or string.

pymongo is a client library. A deployment is exploitable only if it calls those GridFS APIs with attacker-influenced identifiers. Scalar identifiers are not interpreted as query conditions. Successful exploitation is limited to GridFS-stored file content. It does not by itself provide code execution or host compromise.

Red Hat's mitigation

There is no complete mitigation for applications that must accept untrusted structured GridFS file identifiers. The following measures reduce risk until a patched pymongo is available:

1. Pass only literal identifiers to GridFS download, delete, and rename operations (ObjectId, string, or integer). Do not pass dictionaries, BSON documents, or other structured values derived from user input.

2. Restrict which authenticated users can invoke GridFS operations, and do not expose GridFS APIs to untrusted clients.

3. If GridFS is not required, avoid using the gridfs module.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 8python36:3.6-8100020261001091315.4c5117adFixed 2026-10-14RHSA-2026:82858
Red Hat Enterprise Linux 8.4 Advanced Mission Critical Update Supportpython36:3.6-8040020261012132522.9bf6f064Fixed 2026-11-05RHSA-2026:95583
Red Hat Enterprise Linux 8.4 Extended Update Support Long-Life Add-Onpython36:3.6-8040020261012132522.9bf6f064Fixed 2026-11-05RHSA-2026:95583
Red Hat Enterprise Linux 8.6 Advanced Mission Critical Update Supportpython36:3.6-8060020261012112724.448f2761Fixed 2026-11-05RHSA-2026:95580
Red Hat Enterprise Linux 8.6 Extended Update Support Long-Life Add-Onpython36:3.6-8060020261012112724.448f2761Fixed 2026-11-05RHSA-2026:95580
Red Hat Enterprise Linux 8.8 Telecommunications Update Servicepython36:3.6-8080020261012103751.075014fcFixed 2026-11-05RHSA-2026:95578
Red Hat Enterprise Linux 8.8 Update Services for SAP Solutionspython36:3.6-8080020261012103751.075014fcFixed 2026-11-05RHSA-2026:95578
Red Hat OpenShift AI 2.25rhoai/odh-llama-stack-core-rhel9:1791873747Fixed 2026-10-21RHSA-2026:87410
Red Hat OpenShift AI 2.25rhoai/odh-pipeline-runtime-pytorch-llmcompressor-cuda-py312-rhel9:1791867208Fixed 2026-10-21RHSA-2026:87410
Red Hat OpenShift AI 3.4rhoai/odh-llama-stack-core-rhel9:1790958470Fixed 2026-10-19RHSA-2026:84734
Red Hat OpenShift AI (RHOAI)rhoai/odh-pipeline-runtime-datascience-cpu-py312-rhel9Affected
Red Hat OpenShift AI (RHOAI)rhoai/odh-pipeline-runtime-pytorch-cuda-py312-rhel9Affected
Red Hat OpenShift AI (RHOAI)rhoai/odh-pipeline-runtime-pytorch-rocm-py312-rhel9Affected
Red Hat OpenShift AI (RHOAI)rhoai/odh-pipeline-runtime-tensorflow-cuda-py312-rhel9Affected
Red Hat OpenShift AI (RHOAI)rhoai/odh-pipeline-runtime-tensorflow-rocm-py312-rhel9Affected
Red Hat OpenShift AI (RHOAI)rhoai/odh-workbench-jupyter-datascience-cpu-py312-rhel9Affected
Red Hat OpenShift AI (RHOAI)rhoai/odh-workbench-jupyter-pytorch-cuda-py312-rhel9Affected
Red Hat OpenShift AI (RHOAI)rhoai/odh-workbench-jupyter-pytorch-llmcompressor-cuda-py312-rhel9Affected
Red Hat OpenShift AI (RHOAI)rhoai/odh-workbench-jupyter-pytorch-rocm-py312-rhel9Affected
Red Hat OpenShift AI (RHOAI)rhoai/odh-workbench-jupyter-tensorflow-cuda-py312-rhel9Affected
9 more in the JSON and on Red Hat's page.

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2026-88029.

Attack patterns (CAPEC)

  • CAPEC-676 NoSQL Injection Likelihood: High · Severity: High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON