{"api_version":"1","generated_at":"2026-07-24T00:13:56+00:00","cve":"CVE-2021-20329","urls":{"html":"https://cve.report/CVE-2021-20329","api":"https://cve.report/api/cve/CVE-2021-20329.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2021-20329","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2021-20329"},"summary":{"title":"CVE-2021-20329","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 up to (and including) 1.5.0.","state":"PUBLIC","assigner":"cna@mongodb.com","published_at":"2021-06-10 17:15:00","updated_at":"2024-01-23 16:15:00"},"problem_types":["CWE-20"],"metrics":[],"references":[{"url":"https://github.com/mongodb/mongo-go-driver/releases/tag/v1.5.1","name":"https://github.com/mongodb/mongo-go-driver/releases/tag/v1.5.1","refsource":"CONFIRM","tags":[],"title":"Release MongoDB Go Driver 1.5.1 · mongodb/mongo-go-driver · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://www.cve.org/CVERecord?id=CVE-2021-20329","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-20329","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[{"source":"LEGACY","value":"Hugo Ferrando Seage","lang":""}],"nvd_cpes":[{"cve_year":"2021","cve_id":"20329","vulnerable":"1","versionEndIncluding":"1.5.0","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"mongodb","cpe5":"go_driver","cpe6":"*","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"mongodb","cpe12":"*","cpe13":"*"}],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[{"cve":"CVE-2021-20329","qid":"982056","title":"Go (go) Security Update for go.mongodb.org/mongo-driver (GHSA-f6mq-5m25-4r72)"}]},"source_records":{"cve_program":{"CVE_data_meta":{"ASSIGNER":"cna@mongodb.com","DATE_PUBLIC":"2021-06-10T14:00:00.000Z","ID":"CVE-2021-20329","STATE":"PUBLIC","TITLE":"Specific cstrings input may not be properly validated in the Go Driver"},"affects":{"vendor":{"vendor_data":[{"product":{"product_data":[{"product_name":"MongoDB Go Driver","version":{"version_data":[{"version_affected":"<=","version_name":"1.0","version_value":"1.5.0"}]}}]},"vendor_name":"MongoDB Inc."}]}},"credit":[{"lang":"eng","value":"Hugo Ferrando Seage"}],"data_format":"MITRE","data_type":"CVE","data_version":"4.0","description":{"description_data":[{"lang":"eng","value":"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 up to (and including) 1.5.0."}]},"generator":{"engine":"Vulnogram 0.0.9"},"impact":{"cvss":{"attackComplexity":"HIGH","attackVector":"NETWORK","availabilityImpact":"NONE","baseScore":6.8,"baseSeverity":"MEDIUM","confidentialityImpact":"HIGH","integrityImpact":"HIGH","privilegesRequired":"LOW","scope":"UNCHANGED","userInteraction":"NONE","vectorString":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:N","version":"3.1"}},"problemtype":{"problemtype_data":[{"description":[{"lang":"eng","value":"CWE-1287: Improper Validation of Specified Type of Input"}]}]},"references":{"reference_data":[{"name":"https://github.com/mongodb/mongo-go-driver/releases/tag/v1.5.1","refsource":"CONFIRM","url":"https://github.com/mongodb/mongo-go-driver/releases/tag/v1.5.1"}]},"source":{"discovery":"EXTERNAL"}},"nvd":{"publishedDate":"2021-06-10 17:15:00","lastModifiedDate":"2024-01-23 16:15:00","problem_types":["CWE-20"],"metrics":{"baseMetricV3":{"cvssV3":{"version":"3.1","vectorString":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N","attackVector":"NETWORK","attackComplexity":"LOW","privilegesRequired":"LOW","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"NONE","integrityImpact":"HIGH","availabilityImpact":"NONE","baseScore":6.5,"baseSeverity":"MEDIUM"},"exploitabilityScore":2.8,"impactScore":3.6},"baseMetricV2":{"cvssV2":{"version":"2.0","vectorString":"AV:N/AC:L/Au:S/C:N/I:P/A:N","accessVector":"NETWORK","accessComplexity":"LOW","authentication":"SINGLE","confidentialityImpact":"NONE","integrityImpact":"PARTIAL","availabilityImpact":"NONE","baseScore":4},"severity":"MEDIUM","exploitabilityScore":8,"impactScore":2.9,"acInsufInfo":false,"obtainAllPrivilege":false,"obtainUserPrivilege":false,"obtainOtherPrivilege":false,"userInteractionRequired":false}},"configurations":{"CVE_data_version":"4.0","nodes":[{"operator":"OR","children":[],"cpe_match":[{"vulnerable":true,"cpe23Uri":"cpe:2.3:a:mongodb:go_driver:*:*:*:*:*:mongodb:*:*","versionEndIncluding":"1.5.0","cpe_name":[]}]}]}},"legacy_mitre":{"record":{"CveYear":"2021","CveId":"20329","Ordinal":"194373","Title":"CVE-2021-20329","CVE":"CVE-2021-20329","Year":"2021"},"notes":[{"CveYear":"2021","CveId":"20329","Ordinal":"1","NoteData":"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 up to (and including) 1.5.0.","Type":"Description","Title":null},{"CveYear":"2021","CveId":"20329","Ordinal":"2","NoteData":"2021-06-10","Type":"Other","Title":"Published"},{"CveYear":"2021","CveId":"20329","Ordinal":"3","NoteData":"2021-06-10","Type":"Other","Title":"Modified"}]}}}