mongodb/mongo-go-driver · Security

go.mongodb.org/mongo-driver improperly validates cstrings when marshalling Go objects into BSON

GHSA ID
GHSA-f6mq-5m25-4r72
CVE ID
CVE-2021-20329
Severity
medium
Published
Updated
CVSS
6.8 · CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:N
CVSS v3
6.8 · CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:N

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 up to (and including) 1.5.0.

CWEs

References