Advisory

GO-2021-0239

Also known as: BIT-golang-2021-33195, CVE-2021-33195

Summary

Improper sanitization when resolving values from DNS in net

Details

The LookupCNAME, LookupSRV, LookupMX, LookupNS, and LookupAddr functions and their respective methods on the Resolver type may return arbitrary values retrieved from DNS which do not follow the established RFC 1035 rules for domain names. If these names are used without further sanitization, for instance unsafely included in HTML, they may allow for injection of unexpected content. Note that LookupTXT may still return arbitrary values that could require sanitization before further use.

Severity

Not rated by the source.

Dates

Published
2022-02-17 17:33 UTC
Modified
2024-05-20 16:03 UTC

Affected packages and fixes

stdlib

Go · All systems

Affected

  • introduced 0, fixed 1.15.13, introduced 1.16.0-0, fixed 1.16.5 (semver)

Fixed versions

1.15.13, 1.16.5

Fix

The export has no generic command for this ecosystem.

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