Go Vulnerability Database
GO-2020-0015
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.
Affected packages
| Ecosystem | Package | Affected versions |
|---|---|---|
| Go | golang.org/x/text | All versions before 0.3.3 (fixed in 0.3.3) |