Skip to content
OpenAdvisories
Medium · 6.8 CVE-2021-20329 EUVD-2021-1314GHSA-f6mq-5m25-4r72GO-2021-0112

Specific cstrings input may not be properly validated in the Go Driver

Published Jun 10, 2021 · Updated Sep 16, 2024 · Assigned by mongodb

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 products

VendorProductAffectedFixed
MongoDB MongoDB Go Driver 1.0 – ≤ 1.5.0 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
openSUSE Tumbleweed etcd-for-k8s1.32 3.5.24-1.1 openSUSE-SU-2025:15764-1

Affected packages

EcosystemPackageAffectedFixedRecord
Go go.mongodb.org/mongo-driver < 1.5.1 1.5.1 GHSA-f6mq-5m25-4r72

Advisories 2

References