CVE-2021-20329
mediumpriority · track · 26EPSS 0.009 · 61 %ileDEEUUSEPSS · scored 2026-10-27
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.
cvss
Technical severity, 0–10. One row per scoring source.
base score 0–10 · higher = more severe · hover a vector to decode
weaknesses
The CWE weakness classes this flaw belongs to.
affected products (7)
Products and version ranges known to be affected.
- Red Hat OpenShift Container Platform 4.13all versionscert_bundDEcpe:/a:redhat:openshift:container_platform_4.13
- Red Hat OpenShift Container Platform 4.9all versionscert_bundDEcpe:/a:redhat:openshift:container_platform_4.9.0
- Red Hat OpenShift container platform 4.10all versionscert_bundDEcpe:/a:redhat:openshift:container_platform_4.10
advisories (3)
Vendor and ecosystem advisories describing this.
- WID-SEC-W-2023-0765MongoDB: Schwachstelle ermöglicht Manipulation von DateienDeutsch2021-06-13csaf · cert_bundDE
Ein entfernter, authentisierter Angreifer kann eine Schwachstelle in MongoDB ausnutzen, um Dateien zu manipulieren.
- GHSA-f6mq-5m25-4r72go.mongodb.org/mongo-driver improperly validates cstrings when marshalling Go objects into BSON2021-06-15ghsa · osvUS
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 up to (and including) 1.5.0.
- GO-2021-0112Improper input validation in go.mongodb.org/mongo-driver2021-07-28vendor · osvUS
Due to improper input sanitization when marshalling Go objects into BSON, a maliciously constructed Go structure could allow an attacker to inject additional fields into a MongoDB document. Users are affected if they use this package to handle untrusted user input.
also known as (5)
Other names and identifiers for this entity.
sources
Which sources assert this record, and when.
references (8)
External citations — patches, advisories, analysis.
- https://github.com/mongodb/mongo-go-driver/releases/tag/v1.5.1cnnvd
- https://www.auscert.org.au/bulletins/ESB-2023.1859cnnvd
- https://www.auscert.org.au/bulletins/ESB-2023.2131cnnvd
- https://www.auscert.org.au/bulletins/ESB-2023.2896cnnvd
- https://www.auscert.org.au/bulletins/ESB-2023.3456cnnvd
- https://www.auscert.org.au/bulletins/ESB-2023.4979cnnvd
- https://github.com/mongodb/mongo-go-driver/releases/tag/v1.5.1enisa_euvd
- https://github.com/mongodb/mongo-go-driver/releases/tag/v1.5.1Release NotesThird Party Advisorynvd
Attackers weaponise vulnerabilities like this against internet-exposed services. See what is exposed on your perimeter with a free passive scan.
Free scan