Vulnerability
CVE-2021-20329
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.
4 advisories report this vulnerability, across 3 ecosystems.
Advisories in Go
-
GHSA-f6mq-5m25-4r72
go.mongodb.org/mongo-driver improperly validates cstrings when marshalling Go objects into BSON
-
GO-2021-0112
Improper input validation in go.mongodb.org/mongo-driver