{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2021-20329","id":"CVE-2021-20329","title":"Specific cstrings input may not be properly validated in the Go Driver","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.","descriptionLong":"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.","published":"2021-06-10T16:30:11.055Z","updated":"2026-10-20T10:54:27.755888567Z","reserved":"2020-12-17T00:00:00.000Z","status":"Modified","rejected":false,"assigner":"mongodb","metric":{"version":"3.1","score":6.8,"vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:N","rating":"medium","source":"mongodb"},"metrics":[{"version":"3.1","score":6.8,"vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:N","rating":"medium","source":"mongodb"},{"version":"3.1","score":6.8,"vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:N","rating":"medium","source":"mongodb.com"},{"version":"3.1","score":6.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N","rating":"medium","source":"NVD"},{"version":"3.1","score":6.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N","rating":"medium","source":"OSV"},{"version":"3.1","score":6.8,"vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:N","rating":"medium","source":"GitHub"},{"version":"2.0","score":4,"vector":"AV:N/AC:L/Au:S/C:N/I:P/A:N","rating":"medium","source":"NVD"}],"rating":"medium","products":["MongoDB Inc. MongoDB Go Driver"],"affectedProducts":[{"vendor":"MongoDB Inc.","product":"MongoDB Go Driver","defaultStatus":"unaffected","versions":[{"lessThanOrEqual":"1.5.0","status":"affected","version":"1.0","versionType":"custom"}],"platforms":[]}],"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"],"advisory":"GHSA-f6mq-5m25-4r72"}],"cwes":["CWE-1287","CWE-20"],"aliases":["GHSA-f6mq-5m25-4r72","GO-2021-0112"],"references":[{"url":"https://github.com/mongodb/mongo-go-driver/releases/tag/v1.5.1","tags":["x_refsource_CONFIRM","x_transferred","Release Notes","Third Party Advisory","advisory","web"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-20329","tags":["advisory"]},{"url":"https://github.com/mongodb/mongo-go-driver/pull/622","tags":["web","fix"]},{"url":"https://github.com/mongodb/mongo-go-driver/commit/2aca31d5986a9e1c65a92264736de9fdc3b9b4ca","tags":["web","fix"]},{"url":"https://github.com/mongodb/mongo-go-driver","tags":["package"]},{"url":"https://jira.mongodb.org/browse/GODRIVER-1923","tags":["web"]},{"url":"https://pkg.go.dev/vuln/GO-2021-0112","tags":["web"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":null,"epss":0.00935,"epssPercentile":0.61526,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2021-20329","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-20329","ok":true,"note":"Modified"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2021-20329","ok":true,"note":"1 package"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-f6mq-5m25-4r72","ok":true,"note":"GHSA-f6mq-5m25-4r72"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2021-20329","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":["mongodb"],"critical":[],"attention":null}