cve.bz

CVE-2026-88031 mongodb go driver

6.1 mediumEPSS 0.5%

Medium (6.1) in mongodb go driver. EPSS 0.5% estimated probability of exploitation activity in the next 30 days.

On this page
Improper neutralization of special elements in data query logic in the GridFS component of the MongoDB Go 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 cause all GridFS file chunks in the affected bucket to be removed, rendering stored file content unreadable.

Severity

CVSS 4.0

6.1 medium
CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:N/VI:H/VA:H/SC:N/SI:N/SA:N

CVSS 3.1

8.1 high
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H
EPSS
0.5% (unchanged from 0.5% a week ago; 0.5% 30 days ago) estimated probability of exploitation activity in the next 30 days; 42nd 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-88031 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2026-88031?via=ask-ai-copy and https://cve.bz/cve/CVE-2026-88031?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-88031 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 Go Driverfrom 1.0.0 before 1.17.10
MongoDB Go Driverfrom 2.0.0 before 2.9.1

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12, 13, 14golang-mongodb-mongo-driverno fix listedDEBIAN-CVE-2026-88031
Ubuntu24.04:LTS, 26.04:LTS, 26.10golang-mongodb-mongo-driverno fix listedUBUNTU-CVE-2026-88031
Red Hatenterprise_linux_eus:10.0osbuild-composer, osbuild-composer-core, osbuild-composer-worker and 4 more0:134.1-13.el10_0RHSA-2026:91646

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. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat.

Red Hat

Red Hat rates this Important.

Red Hat's statement

A flaw was found in the MongoDB Go Driver. The GridFS component does not properly sanitize caller-supplied file identifiers before using them in database queries. A structured document passed as a file ID (for example, a BSON document containing query operators) is interpreted as a query condition rather than a literal match value. An authenticated attacker who can influence the file identifier passed to GridFS operations such as Delete, DownloadToStream, or OpenDownloadStream in an affected application can exploit this to delete all chunks in a GridFS bucket, resulting in permanent data loss and denial of service.

The practical impact depends on whether the product's code passes externally-controlled values as GridFS file identifiers.

Red Hat's mitigation

If upgrading go.mongodb.org/mongo-driver to version 1.17.10 (v1) or 2.9.1 (v2) is not immediately possible, the following steps can reduce exposure:

- Validate file identifiers before passing them to GridFS operations. Ensure that file IDs supplied by users or external systems are scalar values (e.g., primitive.ObjectID or string) and reject any structured BSON documents or maps. This prevents query operator injection.

- Restrict who can supply GridFS file identifiers. Do not allow unauthenticated or low-privilege users to directly control the file ID parameter in GridFS API calls (Delete, OpenDownloadStream, DownloadToStream, etc.).

ProductPackageStateAdvisory
Cryostat 4 on RHEL 9cryostat/cryostat-storage-rhel9:4.2.0-28Fixed 2026-11-04RHSA-2026:95360
Red Hat Enterprise Linux 10.0 Extended Update Supportosbuild-composer-0:134.1-13.el10_0Fixed 2026-10-28RHSA-2026:91646
Migration Toolkit for Virtualization 2.11migration-toolkit-virtualization/mtv-vsphere-xcopy-volume-populator-rhel9:1791228817Fixed 2026-10-15RHSA-2026:83662
multicluster engine for Kubernetes 2.17multicluster-engine/hive-rhel9:1790286311Fixed 2026-09-28RHSA-2026:72849
multicluster engine for Kubernetes 2.17multicluster-engine/maestro-rhel9:1790134239Fixed 2026-09-28RHSA-2026:72849
multicluster engine for Kubernetes 2.17multicluster-engine/assisted-installer-rhel9:1793749249Fixed 2026-11-05RHSA-2026:95712
multicluster engine for Kubernetes 2.17multicluster-engine/assisted-service-9-rhel9:1793742484Fixed 2026-11-05RHSA-2026:95712
multicluster engine for Kubernetes 2.17multicluster-engine/cluster-api-provider-agent-rhel9:1793737013Fixed 2026-11-05RHSA-2026:95712
multicluster engine for Kubernetes 2.17multicluster-engine/hypershift-addon-rhel9-operator:1793734591Fixed 2026-11-05RHSA-2026:95712
multicluster engine for Kubernetes 2.17multicluster-engine/hypershift-rhel9-operator:1793736945Fixed 2026-11-05RHSA-2026:95712
Assisted Installer for Red Hat OpenShift Container Platform 2assisted/agent-preinstall-image-builder-rhel9Affected
Assisted Installer for Red Hat OpenShift Container Platform 2rhai/assisted-installer-agent-rhel9Affected
Assisted Installer for Red Hat OpenShift Container Platform 2rhai/assisted-installer-controller-rhel9Affected
Assisted Installer for Red Hat OpenShift Container Platform 2rhai/assisted-installer-rhel9Affected
Compliance Operatorcompliance/openshift-compliance-must-gather-rhel8Not affected
Confidential Compute Attestationbuild-of-trustee/trustee-must-gather-rhel9Not affected
Confidential Compute Attestationopenshift-sandboxed-containers/osc-cloud-api-adaptor-rhel9Not affected
Confidential Compute Attestationopenshift-sandboxed-containers/osc-monitor-rhel9Not affected
Confidential Compute Attestationopenshift-sandboxed-containers/osc-podvm-payload-rhel9Not affected
Confidential Compute Attestationopenshift-sandboxed-containers/osc-rhel9-operatorNot affected
450 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-88031.

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