{"cve":"CVE-2021-20329","nvd":{"published":"2021-06-10T17:15:08.047","modified":"2026-06-17T03:33:41.083","status":"Modified","description":"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.","cvss_v4":null,"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N","score":6.5},"cwes":["CWE-20","CWE-1287"],"references":["https://github.com/mongodb/mongo-go-driver/releases/tag/v1.5.1","https://github.com/mongodb/mongo-go-driver/releases/tag/v1.5.1"],"products":["mongodb:go_driver"],"source":"nvd","synced_at":"2026-10-19T21:20:07.141963181+00:00"},"epss":{"cve":"CVE-2021-20329","score":0.00935,"percentile":0.60788,"date":"2026-10-31"},"kev":null,"osv":[{"id":"GHSA-f6mq-5m25-4r72","url":"https://osv.dev/vulnerability/GHSA-f6mq-5m25-4r72","summary":"go.mongodb.org/mongo-driver improperly validates cstrings when marshalling Go objects into BSON","modified":"2024-09-17T15:38:07Z","packages":[{"ecosystem":"Go","name":"go.mongodb.org/mongo-driver","purl":"pkg:golang/go.mongodb.org/mongo-driver","ranges":["<1.5.1"],"fixed":["1.5.1"]}]},{"id":"GO-2021-0112","url":"https://osv.dev/vulnerability/GO-2021-0112","summary":"Improper input validation in go.mongodb.org/mongo-driver","modified":"2024-05-20T16:03:47Z","packages":[{"ecosystem":"Go","name":"go.mongodb.org/mongo-driver","purl":"pkg:golang/go.mongodb.org/mongo-driver","ranges":["<1.5.1"],"fixed":["1.5.1"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}