GO-2020-0015

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

At a glance

Published
Updated
CVE
CVE-2020-14040
Aliases
GHSA-5rcv-m4m3-hfh7

Description

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

PackageVersions
Go · golang.org/x/textintroduced 0, fixed 0.3.3

References

Sources

SourceLicence
OSV.devCC-BY 4.0 — Go Vulnerability Database