CVE-2021-20329

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

Published Jun 10, 2021 CVSS 3.1 · 6.8 Medium EPSS < 1% KEV · Not listed
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.

Remediation

No solution or workaround provided in the CVE record

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
EUVD EUVD EUVD-2021-1314 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 GHSA Github GHSA GHSA-f6mq-5m25-4r72 go.mongodb.org/mongo-driver improperly validates cstrings when marshalling Go objects into BSON
History
Type Values Removed Values Added
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. 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.
Weaknesses

Sources

Status
PUBLISHED
Assigner
mongodb
Published
Updated
Sep 16, 2024, 10:55 PM
Reserved
Dec 17, 2020, 12:00 AM
Status
Modified
Published
Jun 10, 2021, 5:15 PM
Modified
Jun 17, 2026, 3:33 AM
Severity
Moderate
Public date
Mar 30, 2021, 12:00 AM