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.
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
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Go | go.mongodb.org/mongo-driver | 1.5.1 | GHSA-f6mq-5m25-4r72 |
| Go | go.mongodb.org/mongo-driver | 1.5.1 | GO-2021-0112 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| 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
- https://github.com/mongodb/mongo-go-driver/releases/tag/v1.5.1 x_refsource_CONFIRM