CVE-2021-20329

Medium

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.

SeverityMedium
CVSS6.8
Exploit probability—
ProductMongodb Go Driver
PublishedJun 10, 2021
First seenJun 10, 2021
Weakness typeCWE-1287CWE-1287

How to fix

Update
  • go.mongodb.org/mongo-driver1.5.1 or later

Affected products

ProductAffected versionsFixed in
mongodb go_driverv ≤ 1.5.0—
go.mongodb.org/mongo-driverGov < 1.5.11.5.1

Check your version

Choose the product and enter the version you run to see whether it falls in the affected range.

In the Intelligence 360 plan

Attack Surface Management

See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.