CVE-2020-14040

NameCVE-2020-14040
DescriptionThe 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.
SourceCVE (at NVD; CERT, LWN, oss-sec, fulldisc, bugtraq, EDB, Metasploit, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, Mageia, GitHub code/issues, web search, more)
NVD severitymedium
Debian Bugs964271, 964272

Vulnerable and fixed packages

The table below lists information on source packages.

Source PackageReleaseVersionStatus
golang-golang-x-text (PTS)bullseye, sid0.3.3-1fixed
golang-x-text (PTS)stretch0.0~git20161013.0.c745997-2vulnerable
buster0.3.0-2vulnerable

The information below is based on the following data on fixed versions.

PackageTypeReleaseFixed VersionUrgencyOriginDebian Bugs
golang-golang-x-textsource(unstable)0.3.3-1964272
golang-x-textsource(unstable)(unfixed)964271

Notes

[buster] - golang-x-text <no-dsa> (Minor issue)
[stretch] - golang-x-text <no-dsa> (Minor issue)
https://github.com/golang/go/issues/39491
https://go.googlesource.com/text/+/23ae387dee1f90d29a23c0e87ee0b46038fbed0e
https://groups.google.com/forum/#!topic/golang-announce/bXVeAmGOqz0

Search for package or bug name: Reporting problems