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

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

Affected Software

10 affected componentsFixes available
redhat/mongo-go-driver<1.5.1
1.5.1
redhat/mongo-driver<1.5.1
1.5.1
go/go.mongodb.org/mongo-driver<1.5.1
1.5.1
MongoDB Go Driver Mongodb<=1.5.0
IBM Data Virtualization on Cloud Pak for Data<=3.0
IBM Watson Query on Cloud Pak for Data<=2.2
IBM Watson Query on Cloud Pak for Data<=2.1
IBM Watson Query on Cloud Pak for Data<=2.0
IBM Data Virtualization on Cloud Pak for Data<=1.8
IBM Data Virtualization on Cloud Pak for Data<=1.7

Event History

Mar 30, 2021
CVE Published
12:00 AM
Data Sourced
12:00 AM
RemedyDescriptionSeverityWeaknessAffected Software
Jun 10, 2021
CVE Published
via MITRE·04:30 PM
Data Sourced
via MITRE·04:30 PM
DescriptionSeverityWeakness
Jun 11, 2021
Data Sourced
via Red Hat·05:27 PM
DescriptionSeverityAffected Software
Jun 15, 2021
Advisory Published
via GitHub·04:08 PM
Aug 15, 2025
Data Sourced
via IBM·03:29 PM
DescriptionAffected Software
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2021-20329?

The severity of CVE-2021-20329 is medium with a CVSS score of 6.8.

2

How does CVE-2021-20329 affect MongoDB Go Driver?

CVE-2021-20329 affects all MongoDB Go Drivers up to version 1.5.1.

3

What is the impact of CVE-2021-20329?

CVE-2021-20329 could allow a malicious user to inject additional fields into marshalled MongoDB documents.

4

How can I fix CVE-2021-20329 in MongoDB Go Driver?

To fix CVE-2021-20329 in MongoDB Go Driver, update to version 1.5.1 or later.

5

Where can I find more information about CVE-2021-20329?

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

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203