Medium severity · published Jun 10, 2021
CVE-2021-20329
Specific cstrings input may not be properly validated in the MongoDB Go Driver when marshalling Go objects into BSON
6.5
CVSS
0.9%
EPSS
No
On KEV
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.
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N
Attack vector
Network
Complexity
Low
Privileges
Low
User interaction
None
Confidentiality
None
Integrity
High
Availability
None
Scope
Unchanged
Exploitation
Is it being used?
Exploit prediction (EPSS)0.9% · higher than 61% of CVEs
Exploited in the wildNo evidence yet
CISA KEVNot listed
Ransomware campaign useNot known
Affected products
Which versions
GD
GO Driver · Mongodb
through 1.5.0 · source: NVD
References
NVD
https://nvd.nist.gov/vuln/detail/CVE-2021-20329
CVE.org
https://www.cve.org/CVERecord?id=CVE-2021-20329
Release Notes
https://github.com/mongodb/mongo-go-driver/releases/tag/v1.5.1
More from GO Driver
8.1
CVE-2026-88031
GridFS data deletion via query-operator injection in file IDs in the MongoDB Go Driver
6.5
CVE-2026-81521
Cross-database write retargeting via unvalidated dotted database name in Client.BulkWrite in the MongoDB Go Driver
5.9
CVE-2026-107325
Application denial of service via missing BSON array length validation in MongoDB Go Driver
5.9
CVE-2026-107324
Application denial of service via integer overflow in BSON value-length validation in MongoDB Go Driver
