CVE-2021-20329
JSON

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 packageVersionsReported by
MongoDB Inc. MongoDB Go Driverfrom 1.0 up to 1.5.0CVE List
go.mongodb.org/mongo-driver (Go)before 1.5.1GitHub Advisory Database, Go Vulnerability Database
mongodb go_driverup to 1.5.0NVD

All scores

mongodb6.8medium CVSS:3.1CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:N
GitHub6.8medium CVSS:3.1CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:N
NVD6.5medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N
NVD4.0medium CVSS:2.0AV: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

SourceRecordLicence
CVE ListCVE-2021-20329 changed 2024-09-16CVE Terms of Use
GitHub Advisory DatabaseGHSA-f6mq-5m25-4r72 changed 2024-09-17CC-BY-4.0
Go Vulnerability DatabaseGO-2021-0112 changed 2024-05-20CC-BY-4.0
NVDCVE-2021-20329 changed 2026-06-17Public domain