{"id":"CVE-2021-20329","state":"PUBLISHED","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.","publishedAt":"2021-06-10T16:30:11.055Z","updatedAt":"2024-09-16T22:55:51.498Z","severity":{"score":6.8,"label":"Medium","version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:N","source":"mongodb"},"assigner":"mongodb","products":["MongoDB Inc. MongoDB Go Driver"],"affected":[{"vendor":"MongoDB Inc.","product":"MongoDB Go Driver","defaultStatus":"unaffected","versions":[{"version":"1.0","status":"affected","lessThanOrEqual":"1.5.0","versionType":"custom"}]}],"references":["https://github.com/mongodb/mongo-go-driver/releases/tag/v1.5.1"],"weaknesses":["CWE-1287"],"ingestedAt":"2026-10-29T19:47:55.610Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2021/20xxx/CVE-2021-20329.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.1","cveMetadata":{"cveId":"CVE-2021-20329","state":"PUBLISHED","datePublished":"2021-06-10T16:30:11.055Z","dateUpdated":"2024-09-16T22:55:51.498Z","assignerShortName":"mongodb","assignerOrgId":"a39b4221-9bd0-4244-95fc-f3e2e07f1deb","dateReserved":"2020-12-17T00:00:00.000Z"},"containers":{"cna":{"title":"Specific cstrings input may not be properly validated in the Go Driver","descriptions":[{"lang":"en","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 prior to and including 1.5.0."}],"affected":[{"vendor":"MongoDB Inc.","product":"MongoDB Go Driver","defaultStatus":"unaffected","versions":[{"version":"1.0","status":"affected","lessThanOrEqual":"1.5.0","versionType":"custom"}]}],"references":[{"url":"https://github.com/mongodb/mongo-go-driver/releases/tag/v1.5.1","tags":["x_refsource_CONFIRM"]}],"metrics":[{"cvssV3_1":{"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"},"format":"CVSS","scenarios":[{"lang":"en","value":"GENERAL"}]}],"problemTypes":[{"descriptions":[{"cweId":"CWE-1287","description":"CWE-1287: Improper Validation of Specified Type of Input","lang":"en","type":"CWE"}]}],"providerMetadata":{"shortName":"mongodb","orgId":"a39b4221-9bd0-4244-95fc-f3e2e07f1deb","dateUpdated":"2024-01-23T16:03:19.528Z"},"credits":[{"lang":"en","type":"finder","user":"00000000-0000-4000-9000-000000000000","value":"Hugo Ferrando Seage"}],"datePublic":"2021-06-09T23:00:00.000Z","source":{"discovery":"EXTERNAL"},"x_generator":{"engine":"Vulnogram 0.0.9"},"x_legacyV4Record":{"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"}}},"adp":[{"title":"CVE Program Container","references":[{"url":"https://github.com/mongodb/mongo-go-driver/releases/tag/v1.5.1","tags":["x_refsource_CONFIRM","x_transferred"]}],"providerMetadata":{"shortName":"CVE","orgId":"af854a3a-2127-422b-91ae-364da2661108","dateUpdated":"2024-08-03T17:37:23.756Z"}}]}}}