cve.bz

CVE-2021-20329 mongodb go driver: Improper Input Validation

6.5 mediumEPSS 0.9%Fix available

Medium (6.5) in mongodb go driver. EPSS 0.9% estimated probability of exploitation activity in the next 30 days. Fixed in go.mongodb.org/mongo-driver 1.5.1.

On this page
Specific cstrings input may not be properly validated in the MongoDB Go Driver when marshalling Go objects into BSON. A malicious user could use a Go object with specific string to potentially inject additional fields into marshalled documents. This issue affects all MongoDB GO Drivers prior to and including 1.5.0.

Severity

CVSS 3.1

6.5 medium
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N
EPSS
0.9% (unchanged from 0.9% a week ago; 0.9% 30 days ago) estimated probability of exploitation activity in the next 30 days; 62nd percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CWEs
CWE-20 Improper Input Validation
CWE-1287 Improper Validation of Specified Type of Input
OWASP Top 10
A05:2025 Injection
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2021-20329 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2021-20329?via=ask-ai-copy and https://cve.bz/cve/CVE-2021-20329?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-2021-20329 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 Inc. MongoDB Go Driverfrom 1.0 through 1.5.0

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-f6mq-5m25-4r72Gogo.mongodb.org/mongo-driver<1.5.11.5.1
GO-2021-0112Gogo.mongodb.org/mongo-driver<1.5.11.5.1

Linux distributions

DistributionReleasePackageFixed inAdvisory
openSUSETumbleweedetcd-for-k8s1.323.5.24-1.1openSUSE-SU-2025:15764-1

From the distributions' data via OSV.dev: SUSE security data, CC BY 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: openSUSE.

Red Hat

Red Hat rates this Moderate.

ProductPackageStateAdvisory
Red Hat OpenShift Container Platform 4.10openshift4/ose-csi-driver-nfs-rhel8:v4.10.0-202303210741.p0.ge6b5664.assembly.streamFixed 2023-03-29RHSA-2023:1392
Red Hat OpenShift Container Platform 4.10openshift4/ose-csi-driver-manila-rhel8-operator:v4.10.0-202304031241.p0.g3b06768.assembly.streamFixed 2023-04-12RHSA-2023:1656
Red Hat OpenShift Container Platform 4.11openshift4/ose-csi-driver-manila-rhel8-operator:v4.11.0-202303240327.p0.gce6c43b.assembly.streamFixed 2023-04-04RHSA-2023:1504
Red Hat OpenShift Container Platform 4.12openshift4/ose-csi-driver-manila-rhel8-operator:v4.12.0-202303210718.p0.gaf25a1f.assembly.streamFixed 2023-03-27RHSA-2023:1409
Red Hat OpenShift Container Platform 4.13openshift4/ose-baremetal-machine-controllers:v4.13.0-202305030754.p0.gd20bc57.assembly.streamFixed 2023-05-17RHSA-2023:1326
Red Hat OpenShift Container Platform 4.13openshift4/ose-csi-driver-manila-rhel8-operator:v4.13.0-202304190216.p0.ge540ced.assembly.streamFixed 2023-05-17RHSA-2023:1326
Red Hat OpenShift Container Platform 4.13openshift4/ose-installer:v4.13.0-202305091542.p0.g44db7b2.assembly.streamFixed 2023-05-17RHSA-2023:1326
Red Hat OpenShift Container Platform 4.13openshift4/ose-olm-rukpak-rhel8:v4.13.0-202304190216.p0.g66b3e55.assembly.streamFixed 2023-05-17RHSA-2023:1326
Red Hat OpenShift Container Platform 4.13openshift4/ose-kubernetes-nmstate-handler-rhel8:v4.13.0-202304280215.p0.gc254e6e.assembly.streamFixed 2023-05-18RHSA-2023:1328
Red Hat OpenShift Container Platform 4.13openshift4/dpu-network-rhel8-operator:v4.13.0-202308221627.p0.g35cbabd.assembly.streamFixed 2023-08-30RHSA-2023:4730
cert-manager Operator for Red Hat OpenShiftcert-manager/cert-manager-operator-rhel9Affected
Cost Management Metrics Operatorcostmanagement-metrics-operator-containerNot affected
Custom Metric Autoscaler operator for Red Hat Openshiftcustom-metrics-autoscaler/custom-metrics-autoscaler-rhel8Not affected
Custom Metric Autoscaler operator for Red Hat Openshiftcustom-metrics-autoscaler-tech-preview/custom-metrics-autoscaler-rhel8-operatorNot affected
Logging Subsystem for Red Hat OpenShiftopenshift-logging/cluster-logging-rhel8-operatorNot affected
Logging Subsystem for Red Hat OpenShiftopenshift-logging/logging-loki-rhel9Not affected
Logging Subsystem for Red Hat OpenShiftopenshift-logging/lokistack-gateway-rhel8Not affected
Logging Subsystem for Red Hat OpenShiftopenshift-logging/opa-openshift-rhel8Not affected
Migration Toolkit for Containersrhmtc/openshift-migration-velero-plugin-for-aws-rhel8Not affected
Migration Toolkit for Virtualizationmigration-toolkit-virtualization/mtv-controller-rhel9Affected
275 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-2021-20329.

Attack patterns (CAPEC)

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits. More on the page of CWE-20 (51).

References

Check your stackJSON