{"id":"CVE-2021-20329","published":"2021-06-10T16:30:11Z","modified":"2024-09-16T22:55:51Z","title":"Specific cstrings input may not be properly validated in the Go Driver","vendor":"MongoDB Inc.","product":"MongoDB Go Driver","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":6.8,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00935,"percentile":0.591,"provenance":"source"},"cwes":[{"id":"CWE-1287","name":"Improper Validation of Specified Type of Input"}],"references":[{"url":"https://github.com/mongodb/mongo-go-driver/releases/tag/v1.5.1","tags":["x_refsource_CONFIRM"]}],"priority":{"score":16.6,"factors":[{"name":"EPSS percentile","points":11.82},{"name":"CVSS severity","points":4.76}]},"vendorSlug":"mongodb","affectedVersions":[{"vendor":"MongoDB Inc.","product":"MongoDB Go Driver","versions":[">= 1.0, <= 1.5.0"]}],"affected":[{"ecosystem":"Go","package":"go.mongodb.org/mongo-driver","vulnerableRanges":["<1.5.1"],"patched":["1.5.1"],"from":["GHSA-f6mq-5m25-4r72","GO-2021-0112"],"provenance":"source"}],"summary":{"text":"The MongoDB Go Driver, the library used to marshal Go objects into BSON, fails to properly validate certain specially crafted strings during that marshalling step. An attacker who can supply a Go object containing such a string under the right conditions, such as network access with low-privilege authentication and a victim-independent path to the marshalling, can inject additional fields into the resulting documents.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T20:57:12Z"},"euvd":{"id":"EUVD-2021-1314","exploited":false,"provenance":"source"}}