6.8medium
Specific cstrings input may not be properly validated in the Go Driver
- Severity
- 6.8medium CVSS:3.1 by mongodb
- Exploit likelihood
- 1.10% (higher than 66% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- mongodb
- Also known as
- GHSA-f6mq-5m25-4r72GO-2021-0112
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
| Product or package | Versions | Reported by |
|---|---|---|
| MongoDB Inc. MongoDB Go Driver | from 1.0 up to 1.5.0 | CVE List |
| go.mongodb.org/mongo-driver (Go) | before 1.5.1 | GitHub Advisory Database, Go Vulnerability Database |
| mongodb go_driver | up to 1.5.0 | NVD |
All scores
| mongodb | 6.8medium CVSS:3.1 | CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:N |
| GitHub | 6.8medium CVSS:3.1 | CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:N |
| NVD | 6.5medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N |
| NVD | 4.0medium CVSS:2.0 | AV:N/AC:L/Au:S/C:N/I:P/A:N |
Classification
What each source says
CVE List
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.
GitHub Advisory Database
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 Vulnerability Database
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.
NVD (es)
Es posible que la entrada de cadenas de caracteres específicas no se validen apropiadamente en el controlador MongoDB Go al marshallar objetos Go en BSON. Un usuario malicioso podría usar un objeto Go con una cadena específica para inyectar potencialmente campos adicionales en los documentos ordenados. Este problema afecta a todos los controladores GO de MongoDB hasta (e incluyendo) la versión 1.5.0
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2021-20329 changed 2024-09-16 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-f6mq-5m25-4r72 changed 2024-09-17 | CC-BY-4.0 |
| Go Vulnerability Database | GO-2021-0112 changed 2024-05-20 | CC-BY-4.0 |
| NVD | CVE-2021-20329 changed 2026-06-17 | Public domain |