Advisory

GO-2020-0015

Also known as: CVE-2020-14040, GHSA-5rcv-m4m3-hfh7

Summary

Infinite loop when decoding some inputs in golang.org/x/text

Details

An attacker could provide a single byte to a UTF16 decoder instantiated with UseBOM or ExpectBOM to trigger an infinite loop if the String function on the Decoder is called, or the Decoder is passed to transform.String. If used to parse user supplied input, this may be used as a denial of service vector.

Severity

Not rated by the source.

Dates

Published
2021-04-14 20:04 UTC
Modified
2026-02-04 03:02 UTC

Affected packages and fixes

golang.org/x/text

Go · All systems

Affected

  • introduced 0, fixed 0.3.3 (semver)

Fixed versions

0.3.3

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