Live threats

All CVEs / Mongodb

CVE-2021-20329Mongodb Go Driver

Medium 6.5

Priority
39
CVSS 3.1
6.5
EPSS
1.1%
probability of exploitation in 30 days · percentile 67
Auth required
Yes
Published
Jun 10, 2021
Updated
Jun 17, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-1287, CWE-20
Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N

What happens

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Go Driver.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
Go go.mongodb.org/mongo-driver < 1.5.1 1.5.1 go get go.mongodb.org/mongo-driver@v1.5.1
Go go.mongodb.org/mongo-driver < 1.5.1 1.5.1 go get go.mongodb.org/mongo-driver@v1.5.1

Per OSV / GitHub Advisories (GHSA-f6mq-5m25-4r72, GO-2021-0112). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
mongodbgo_driver≤ 1.5.0

Official sources

References

Links published by the sources. Open them with care.