Vulnerability · Published Jun 10, 2021 · Assigned by mongodb

CVE-2021-20329Specific cstrings input may not be properly validated in the Go Driver

Medium 6.8

In plain English

A medium-severity security flaw in MongoDB Go Driver from MongoDB Inc.. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.9% (higher than 61% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)6.8Medium
Exploit odds (30 days)0.9%top 39.1% of all CVEs
Exploited in the wildNo reportsnot in CISA KEV
Attack toolingNoneno public tooling known

Official 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.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
Gogo.mongodb.org/mongo-driver1.5.1GHSA-f6mq-5m25-4r72
Gogo.mongodb.org/mongo-driver1.5.1GO-2021-0112

Affected products (as reported)

VendorProductVersions
MongoDB Inc. MongoDB Go Driver 1.0 – through 1.5.0

Weakness: CWE-1287 · Vector: CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:N

References