First published: Tue Mar 30 2021(Updated: )
A flaw was found in Mongo. Specific cstrings input may not be properly validated in the MongoDB Go Driver when marshaling Go objects into BSON. This flaw allows a malicious user to use a Go object with a specific string to inject additional fields into marshaled documents.
Credit: cna@mongodb.com cna@mongodb.com cna@mongodb.com
Affected Software | Affected Version | How to fix |
---|---|---|
Mongodb Go Driver | <=1.5.0 | |
go/go.mongodb.org/mongo-driver | <1.5.1 | 1.5.1 |
Sign up to SecAlerts for real-time vulnerability data matched to your software, aggregated from hundreds of sources.
(Appears in the following advisories)
The severity of CVE-2021-20329 is medium with a CVSS score of 6.8.
CVE-2021-20329 affects all MongoDB Go Drivers up to version 1.5.1.
CVE-2021-20329 could allow a malicious user to inject additional fields into marshalled MongoDB documents.
To fix CVE-2021-20329 in MongoDB Go Driver, update to version 1.5.1 or later.
More information about CVE-2021-20329 can be found at the following references: [NVD](https://nvd.nist.gov/vuln/detail/CVE-2021-20329), [GitHub Release](https://github.com/mongodb/mongo-go-driver/releases/tag/v1.5.1), [GitHub Pull Request](https://github.com/mongodb/mongo-go-driver/pull/622).