
CVE catalog
CVE-2020-14040
golang-golang-x-text: CVE-2020-14040
- Severity
- High · CVSS 7.5
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H - Published
- Source
- [NVD] · [CVE record]
- EPSS
- 1.84% · Oct 25, 2026
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.
Vulnerable and fixed packages
Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.
| Distribution | Package | Release | Version | Status |
|---|---|---|---|---|
| Debian | golang-golang-x-text | sid | 0.43.0-1 | fixed |
| Debian | golang-golang-x-text | forky | 0.43.0-1 | fixed |
| Debian | golang-golang-x-text | trixie | 0.22.0-1 | fixed |
| Debian | golang-golang-x-text | bookworm | 0.7.0-1 | fixed |
| Ubuntu | golang-x-text | 18.04 | 0.0~git20170627.0.6353ef0-1ubuntu1 | vulnerable |
| Ubuntu | golang-x-text | 18.04 | 0.0~git20170627.0.6353ef0-1ubuntu2 | vulnerable |
| Ubuntu | golang-x-text | 18.04 | 0.0~git20170627.0.6353ef0-1ubuntu2.1 | fixed |
| Ubuntu | golang-golang-x-text | 20.04 | 0.3.2-3 | vulnerable |
| Ubuntu | golang-golang-x-text | 20.04 | 0.3.2-4 | vulnerable |
| Ubuntu | golang-golang-x-text | 20.04 | 0.3.2-4ubuntu0.1 | fixed |
| Ubuntu | golang-golang-x-text | 22.04 | 0.3.6-1 | vulnerable |
| Ubuntu | golang-golang-x-text | 22.04 | 0.3.7-1 | vulnerable |
| Ubuntu | golang-golang-x-text | 22.04 | 0.3.7-1ubuntu0.20.04.1 | fixed |
| Ubuntu | golang-x-text | 16.04 | 0+git20151019.0fe7e68-0ubuntu1 | vulnerable |
| Ubuntu | golang-x-text | 16.04 | 0+git20151217.cf49866-0ubuntu1 | vulnerable |
| Ubuntu | golang-x-text | 18.04 | 0.0~git20170627.0.6353ef0-1ubuntu1 | vulnerable |
| Ubuntu | golang-x-text | 18.04 | 0.0~git20170627.0.6353ef0-1ubuntu2 | vulnerable |
| Ubuntu | golang-x-text | 18.04 | 0.0~git20170627.0.6353ef0-1ubuntu2.1 | fixed |
| Ubuntu | golang-golang-x-text | 20.04 | 0.3.2-3 | vulnerable |
| Ubuntu | golang-golang-x-text | 20.04 | 0.3.2-4 | vulnerable |
| Ubuntu | golang-golang-x-text | 20.04 | 0.3.2-4ubuntu0.1 | fixed |
| Ubuntu | golang-x-text | 20.04 | 0.3.2-1 | vulnerable |
Fixed-version evidence
| Distribution | Package | Type | Release | Fixed version | Urgency | Origin | Bugs |
|---|---|---|---|---|---|---|---|
| Debian | golang-golang-x-text | source | sid | 0.3.3-1 | not yet assigned | Not reported | [964272] |
| Debian | golang-golang-x-text | source | forky | 0.3.3-1 | not yet assigned | Not reported | [964272] |
| Debian | golang-golang-x-text | source | trixie | 0.3.3-1 | not yet assigned | Not reported | [964272] |
| Debian | golang-golang-x-text | source | bookworm | 0.3.3-1 | not yet assigned | Not reported | [964272] |
| Ubuntu | golang-x-text | deb | 18.04 | 0.0~git20170627.0.6353ef0-1ubuntu2.1 | Not reported | USN-5873-1 | Not reported |
| Ubuntu | golang-golang-x-text | deb | 20.04 | 0.3.2-4ubuntu0.1 | Not reported | USN-5873-1 | Not reported |
| Ubuntu | golang-golang-x-text | deb | 22.04 | 0.3.7-1ubuntu0.20.04.1 | Not reported | USN-5873-1 | Not reported |
| Ubuntu | golang-x-text | deb | 18.04 | 0.0~git20170627.0.6353ef0-1ubuntu2.1 | Not reported | UBUNTU-CVE-2020-14040 | Not reported |
| Ubuntu | golang-golang-x-text | deb | 20.04 | 0.3.2-4ubuntu0.1 | Not reported | UBUNTU-CVE-2020-14040 | Not reported |
OpenFactory catalog packages
[Debian 12 (Bookworm)]
- [golang-golang-x-text-dev]Fixed
Source package: [golang-golang-x-text]
Details (4)
0.7.0-1· all · bookwormFixed · Fixed:
0.3.3-1dsa · golang-golang-x-text · debian · bookworm; dsa · golang-golang-x-text · debian · 12
0.7.0-1· all · bookwormFixed · Fixed:
0.3.3-1dsa · golang-golang-x-text · debian · bookworm; dsa · golang-golang-x-text · debian · 12
0.16.0-1~bpo12+1· all · bookworm-backportsFixed · Fixed:
0.3.3-1dsa · golang-golang-x-text · debian · bookworm; dsa · golang-golang-x-text · debian · 12
0.16.0-1~bpo12+1· all · bookworm-backportsFixed · Fixed:
0.3.3-1dsa · golang-golang-x-text · debian · bookworm; dsa · golang-golang-x-text · debian · 12
[Debian 13 (Trixie)]
- [golang-golang-x-text-dev]Fixed
Source package: [golang-golang-x-text]
Details (4)
0.22.0-1· all · trixieFixed · Fixed:
0.3.3-1dsa · golang-golang-x-text · debian · 13
0.22.0-1· all · trixieFixed · Fixed:
0.3.3-1dsa · golang-golang-x-text · debian · 13
0.36.0-1~bpo13+1· all · trixie-backportsFixed · Fixed:
0.3.3-1dsa · golang-golang-x-text · debian · 13
0.36.0-1~bpo13+1· all · trixie-backportsFixed · Fixed:
0.3.3-1dsa · golang-golang-x-text · debian · 13
Observed:
References
- [https://ftp.suse.com/pub/projects/security/csaf/rhsa-2020_3665.json]
- [https://osv.dev/vulnerability/DEBIAN-CVE-2020-14040]
- [https://osv.dev/vulnerability/UBUNTU-CVE-2020-14040]
- [https://osv.dev/vulnerability/USN-5873-1]
- [https://security-tracker.debian.org/tracker/CVE-2020-14040]
- [https://security.access.redhat.com/data/csaf/v2/vex/2020/cve-2020-14040.json]
- [https://wid.cert-bund.de/.well-known/csaf/white/2022/wid-sec-w-2022-0510.json]
[CERT-Bund public advisories] · [Debian Security Tracker] · [FIRST EPSS] · [OSV Package Vulnerability Database] · [Red Hat security advisories and VEX] · [SUSE security advisories and VEX]