CVE-2020-14040

golang.org/x/text: possibility to trigger an infinite loop in encoding/unicode could lead to crash

Published Jun 17, 2020 CVSS 3.1 · 7.5 High EPSS 1.9% KEV · Not listed
Description
The x/text package before 0.3.3 for Go has a vulnerability in encoding/unicode that could lead to the UTF-16 decoder entering an infinite loop, causing the program to crash or run out of memory. 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 golang.org/x/text/transform.String.

Remediation

No solution or workaround provided in the CVE record

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
EUVD EUVD EUVD-2021-0962 The x/text package before 0.3.3 for Go has a vulnerability in encoding/unicode that could lead to the UTF-16 decoder entering an infinite loop, causing the program to crash or run out of memory. 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 golang.org/x/text/transform.String.
Github GHSA Github GHSA GHSA-5rcv-m4m3-hfh7 golang.org/x/text Infinite loop
Ubuntu USN Ubuntu USN USN-5873-1 Go Text vulnerabilities
History
Type Values Removed Values Added
Metrics epss

{'score': 6e-05}

epss

{'score': 8e-05}

Type Values Removed Values Added
CPEs cpe:/a:redhat:acm:2.2::el7
Type Values Removed Values Added
CPEs cpe:/a:redhat:acm:2.2::el7
cpe:/a:redhat:acm:2.2::el8