GO-2020-0015
Dashboard / Vulnerabilities / GO-2020-0015
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.
References: https://go.dev/cl/238238, https://go.googlesource.com/text/+/23ae387dee1f90d29a23c0e87ee0b46038fbed0e, https://go.dev/issue/39491, https://groups.google.com/g/golang-announce/c/bXVeAmGOqz0
Affected packages
Package
Name: golang.org/x/text
Purl: pkg:golang/golang.org/x/text
Affected ranges
Type: SEMVER
Events:
Introduced- 0
Fixed -0.3.3
Affected versions
Common Vulnerability Scoring System
Attack Vector
Network
Adjacent
Local
Physical
Privileges Required
None
Low
High
User Interaction
None
Required
Scope
Unchanged
Changed
Confidentiality
None
Low
High
Integrity
None
Low
High
Availability
None
Low
High
