CVE-2020-14040Infinite Loop in X Text

Severity
7.5HIGHNVD
EPSS
0.0%
top 99.36%
CISA KEV
Not in KEV
Exploit
No known exploits
Timeline
PublishedJun 17
Latest updateFeb 16

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.

CVSS vector

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:HExploitability: 3.9 | Impact: 3.6

Affected Packages2 packages

NVDgolang/text< 0.3.3
Gogolang.org/x_text< 0.3.3

Also affects: Fedora 32

🔴Vulnerability Details

6
OSV
golang-golang-x-text, golang-x-text vulnerabilities2023-02-16
GHSA
golang.org/x/text Infinite loop2021-05-18
OSV
golang.org/x/text Infinite loop2021-05-18
OSV
Infinite loop when decoding some inputs in golang.org/x/text2021-04-14
CVEList
CVE-2020-14040: The x/text package before 02020-06-17

📋Vendor Advisories

3
Ubuntu
Go Text vulnerabilities2023-02-16
Red Hat
golang.org/x/text: possibility to trigger an infinite loop in encoding/unicode could lead to crash2020-06-17
Debian
CVE-2020-14040: golang-golang-x-text - The x/text package before 0.3.3 for Go has a vulnerability in encoding/unicode t...2020

💬Community

3
Bugzilla
CVE-2020-14040 golang: golang.org/x/text: possibility to trigger an infinite loop in encoding/unicode could lead to crash [epel-all]2020-07-03
Bugzilla
CVE-2020-14040 golang: golang.org/x/text: possibility to trigger an infinite loop in encoding/unicode could lead to crash [fedora-all]2020-07-03
Bugzilla
CVE-2020-14040 golang.org/x/text: possibility to trigger an infinite loop in encoding/unicode could lead to crash2020-07-03
CVE-2020-14040 — Infinite Loop in Golang.org X Text | cvebase