CVE-2021-20329Mongodb Go Driver
Medium 6.5
Follow: this CVE · Mongodb · Mongodb Go Driver We alert you by email or Slack (account required).
- Priority
- 39
- CVSS 3.1
- 6.5
- EPSS
- 1.1% probability of exploitation in 30 days · percentile 67
- Auth required
- Yes
- Published
- Jun 10, 2021
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N
What happens
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.
What to do
- Apply the vendor's security update for Go Driver.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| Go | go.mongodb.org/mongo-driver |
< 1.5.1 |
1.5.1 |
go get go.mongodb.org/mongo-driver@v1.5.1 |
| Go | go.mongodb.org/mongo-driver |
< 1.5.1 |
1.5.1 |
go get go.mongodb.org/mongo-driver@v1.5.1 |
Per OSV / GitHub Advisories (GHSA-f6mq-5m25-4r72, GO-2021-0112). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| mongodb | go_driver | ≤ 1.5.0 |
Official sources
References
Links published by the sources. Open them with care.
- github.com Release Notes Third Party Advisory