Vulnerabilities · 2021 · Mongodb
CVE-2021-20329
Mongodb Go Driver vulnerability
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.
Affected products
Go Driver. The exact versions are in the references.
What to do now
- Check your exposureFind out whether Mongodb Go Driver runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Set the orderSystems that can be reached from the internet come first, then the rest.
References
- github.com/mongodb/mongo-go-driver/releases/tag/v1.5.1 · Third Party Advisory
- nvd.nist.gov/vuln/detail/CVE-2021-20329
- github.com/mongodb/mongo-go-driver/pull/622
- github.com/mongodb/mongo-go-driver/commit/2aca31d5986a9e1c65a92264736de9fdc3b9b4ca
- jira.mongodb.org/browse/GODRIVER-1923
- pkg.go.dev/vuln/GO-2021-0112
- github.com/advisories/GHSA-f6mq-5m25-4r72
- nvd.nist.gov/vuln/detail/CVE-2021-20329
- cve.org/CVERecord?id=CVE-2021-20329
More vulnerabilities in Mongodb products
CVE-2025-14847CVE-2025-14345CVE-2025-13644CVE-2025-13643CVE-2025-13507CVE-2025-12893CVE-2025-12657CVE-2025-12119All 113
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.