Vulnerabilities · 2020 · Golang
CVE-2020-14040
Golang Text vulnerability
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.
Affected products
Text, Fedora. The exact versions are in the references.
What to do now
- Check your exposureFind out whether Golang Text runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Limit access until thenIf you cannot update at once, take the system off the internet or restrict who can reach it.
References
- groups.google.com/forum/#%21topic/golang-announce/bXVeAmGOqz0
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/T
- nvd.nist.gov/vuln/detail/CVE-2020-14040
- github.com/golang/go/issues/39491
- github.com/golang/text/commit/23ae387dee1f90d29a23c0e87ee0b46038fbed0e
- go-review.googlesource.com/c/text/+/238238
- groups.google.com/forum/#!topic/golang-announce/bXVeAmGOqz0
- groups.google.com/g/golang-announce/c/bXVeAmGOqz0
- nvd.nist.gov/vuln/detail/CVE-2020-14040
- cve.org/CVERecord?id=CVE-2020-14040
More vulnerabilities in Golang products
CVE-2026-42506CVE-2026-42502CVE-2026-27136CVE-2026-25681CVE-2026-25680CVE-2025-68121CVE-2025-68119CVE-2025-61732All 172
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.