NetSight
medium6.8

CVE-2021-20329

go.mongodb.org/mongo-driver improperly validates cstrings when marshalling Go objects into BSON

Impact

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.

Affected packages

EcosystemPackageAffectedFixed in
gogo.mongodb.org/mongo-driver< 1.5.11.5.1

Affected products

VendorProductAffected versions
MongodbGo Driver
through 1.5.0

Weakness classification

References