Advisory

GO-2021-0112

Also known as: CVE-2021-20329, GHSA-f6mq-5m25-4r72

Summary

Improper input validation in go.mongodb.org/mongo-driver

Details

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.

Severity

Not rated by the source.

Dates

Published
2021-07-28 18:08 UTC
Modified
2024-05-20 16:03 UTC

Affected packages and fixes

go.mongodb.org/mongo-driver

Go · All systems

Affected

  • introduced 0, fixed 1.5.1 (semver)

Fixed versions

1.5.1

Fix

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: Go Vulnerability Database · CC BY 4.0

Sources & licences