{"schema_version":"1.7.5","id":"CVE-2021-20329","published":"2021-06-10T17:15:08.047Z","modified":"2026-07-08T11:47:35.270366Z","aliases":["GHSA-f6mq-5m25-4r72","GO-2021-0112"],"related":["openSUSE-SU-2025:15764-1"],"details":"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":[{"ranges":[{"type":"GIT","repo":"https://github.com/mongodb/mongo-go-driver","events":[{"introduced":"0"},{"last_affected":"6760875fa58e0fa5518c992582efa6d807960d6c"},{"fixed":"40c0e70826f57cf9d942045a014367d9b3c94251"}],"database_specific":{"cpe":"cpe:2.3:a:mongodb:go_driver:*:*:*:*:*:mongodb:*:*","extracted_events":[{"introduced":"0"},{"last_affected":"1.5.0"}],"source":["CPE_RANGE","REFERENCES"]}}],"versions":["v1.5.0","v1.4.0-beta2","v1.4.0-beta1","v1.3.0","v1.2.0","v1.1.0","v1.0.0","v1.0.0-rc2","v1.0.0-rc1","v0.3.0","v0.2.0","v0.1.0","v0.0.18","v0.0.17","v0.0.16","v0.0.15","v0.0.14","v0.0.13","v0.0.12","v0.0.11","v0.0.9","v0.0.10","v0.0.8","v0.0.7","v0.0.6","v0.0.5","v0.0.4","v0.0.3","v0.0.2","v0.0.1"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2021-20329.json"}}],"references":[{"type":"ADVISORY","url":"https://github.com/mongodb/mongo-go-driver/releases/tag/v1.5.1"}],"severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N"}]}