CVE-2020-14040
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.
What to do
Fixed builds are available from AlmaLinux, Debian, Go, Red Hat, Rocky Linux, Ubuntu: see the table below for the fixed version per release.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 26.04 | golang-golang-x-text | Not affected vulnerable_code_not_present | ||
| Ubuntu 25.10 | golang-golang-x-text | Not affected vulnerable_code_not_present | ||
| Ubuntu 24.04 | golang-golang-x-text | Not affected vulnerable_code_not_present | ||
| Ubuntu 22.04 | golang-golang-x-text | Not affected vulnerable_code_not_present | ||
| Ubuntu 20.04 | golang-golang-x-text | Fixed | 0.3.2-4ubuntu0.1 | UBUNTU-CVE-2020-14040 |
| Ubuntu 20.04 | golang-x-text | Will not fix Ubuntu decided not to fix this in this release | UBUNTU-CVE-2020-14040 | |
| Ubuntu 18.04 | golang-x-text | Fixed | 0.0~git20170627.0.6353ef0-1ubuntu2.1 | UBUNTU-CVE-2020-14040 |
| Ubuntu 16.04 | golang-x-text | Will not fix Ubuntu decided not to fix this in this release | UBUNTU-CVE-2020-14040 | |
| Debian 14 | golang-golang-x-text | Fixed | 0.3.3-1 | DEBIAN-CVE-2020-14040 |
| Debian 13 | golang-golang-x-text | Fixed | 0.3.3-1 | DEBIAN-CVE-2020-14040 |
| Debian 12 | golang-golang-x-text | Fixed | 0.3.3-1 | DEBIAN-CVE-2020-14040 |
| Red Hat Enterprise Linux 9 | go-toolset | Not affected | ||
| Red Hat Enterprise Linux 9 | golang | Not affected | ||
| Red Hat Enterprise Linux 9 | golang-bin | Not affected | ||
| Red Hat Enterprise Linux 9 | golang-docs | Not affected | ||
| Red Hat Enterprise Linux 9 | golang-misc | Not affected | ||
| Red Hat Enterprise Linux 9 | golang-race | Not affected | ||
| Red Hat Enterprise Linux 9 | golang-src | Not affected | ||
| Red Hat Enterprise Linux 9 | golang-tests | Not affected | ||
| Red Hat Enterprise Linux 8 | buildah | Fixed Will not fix | 0:1.15.1-2.module+el8.3.0+8221+97165c3f | RHSA-2020:4694 |
| Red Hat Enterprise Linux 8 | buildah-tests | Fixed Will not fix | 0:1.15.1-2.module+el8.3.0+8221+97165c3f | RHSA-2020:4694 |
| Red Hat Enterprise Linux 8 | cockpit-podman | Fixed | 0:18.1-2.module+el8.3.0+8221+97165c3f | RHSA-2020:4694 |
| Red Hat Enterprise Linux 8 | conmon | Fixed | 2:2.0.20-2.module+el8.3.0+8221+97165c3f | RHSA-2020:4694 |
| Red Hat Enterprise Linux 8 | container-selinux | Fixed | 2:2.144.0-1.module+el8.3.0+8221+97165c3f | RHSA-2020:4694 |
| Red Hat Enterprise Linux 8 | containernetworking-plugins | Fixed | 0:0.8.6-2.module+el8.3.0+8221+97165c3f | RHSA-2020:4694 |
| Red Hat Enterprise Linux 8 | containers-common | Fixed | 1:1.1.1-3.module+el8.3.0+8221+97165c3f | RHSA-2020:4694 |
| Red Hat Enterprise Linux 8 | crit | Fixed | 0:3.14-2.module+el8.3.0+8221+97165c3f | RHSA-2020:4694 |
| Red Hat Enterprise Linux 8 | criu | Fixed | 0:3.14-2.module+el8.3.0+8221+97165c3f | RHSA-2020:4694 |
| Red Hat Enterprise Linux 8 | crun | Fixed | 0:0.14.1-2.module+el8.3.0+8221+97165c3f | RHSA-2020:4694 |
| Red Hat Enterprise Linux 8 | delve | Fixed | 0:1.3.2-3.module+el8.2.0+5581+896cb53e | RHSA-2020:3665 |
| Red Hat Enterprise Linux 8 | fuse-overlayfs | Fixed | 0:1.1.2-3.module+el8.3.0+8221+97165c3f | RHSA-2020:4694 |
| Red Hat Enterprise Linux 8 | go-toolset | Fixed | 0:1.13.15-1.module+el8.2.0+7662+fa98b974 | RHSA-2020:3665 |
| Red Hat Enterprise Linux 8 | golang | Fixed | 0:1.13.15-1.module+el8.2.0+7662+fa98b974 | RHSA-2020:3665 |
| Red Hat Enterprise Linux 8 | golang-bin | Fixed | 0:1.13.15-1.module+el8.2.0+7662+fa98b974 | RHSA-2020:3665 |
| Red Hat Enterprise Linux 8 | golang-docs | Fixed | 0:1.13.15-1.module+el8.2.0+7662+fa98b974 | RHSA-2020:3665 |
| Red Hat Enterprise Linux 8 | golang-misc | Fixed | 0:1.13.15-1.module+el8.2.0+7662+fa98b974 | RHSA-2020:3665 |
| Red Hat Enterprise Linux 8 | golang-race | Fixed | 0:1.13.15-1.module+el8.2.0+7662+fa98b974 | RHSA-2020:3665 |
| Red Hat Enterprise Linux 8 | golang-src | Fixed | 0:1.13.15-1.module+el8.2.0+7662+fa98b974 | RHSA-2020:3665 |
| Red Hat Enterprise Linux 8 | golang-tests | Fixed | 0:1.13.15-1.module+el8.2.0+7662+fa98b974 | RHSA-2020:3665 |
| Red Hat Enterprise Linux 8 | libslirp | Fixed | 0:4.3.1-1.module+el8.3.0+8221+97165c3f | RHSA-2020:4694 |
| Red Hat Enterprise Linux 8 | libslirp-devel | Fixed | 0:4.3.1-1.module+el8.3.0+8221+97165c3f | RHSA-2020:4694 |
| Red Hat Enterprise Linux 8 | oci-seccomp-bpf-hook | Fixed | 0:1.1.2-3.module+el8.3.0+8221+97165c3f | RHSA-2020:4694 |
| Red Hat Enterprise Linux 8 | podman | Fixed | 0:2.0.5-5.module+el8.3.0+8221+97165c3f | RHSA-2020:4694 |
| Red Hat Enterprise Linux 8 | podman-catatonit | Fixed | 0:2.0.5-5.module+el8.3.0+8221+97165c3f | RHSA-2020:4694 |
| Red Hat Enterprise Linux 8 | podman-docker | Fixed | 0:2.0.5-5.module+el8.3.0+8221+97165c3f | RHSA-2020:4694 |
| Red Hat Enterprise Linux 8 | podman-gvproxy | Not affected | ||
| Red Hat Enterprise Linux 8 | podman-manpages | Not affected | ||
| Red Hat Enterprise Linux 8 | podman-plugins | Not affected | ||
| Red Hat Enterprise Linux 8 | podman-remote | Fixed | 0:2.0.5-5.module+el8.3.0+8221+97165c3f | RHSA-2020:4694 |
| Red Hat Enterprise Linux 8 | podman-tests | Fixed | 0:2.0.5-5.module+el8.3.0+8221+97165c3f | RHSA-2020:4694 |
| Red Hat Enterprise Linux 8 | python-podman-api | Fixed | 0:1.2.0-0.2.gitd0a45fe.module+el8.3.0+8221+97165c3f | RHSA-2020:4694 |
| Red Hat Enterprise Linux 8 | python3-criu | Fixed | 0:3.14-2.module+el8.3.0+8221+97165c3f | RHSA-2020:4694 |
| Red Hat Enterprise Linux 8 | runc | Fixed | 0:1.0.0-68.rc92.module+el8.3.0+8221+97165c3f | RHSA-2020:4694 |
| Red Hat Enterprise Linux 8 | skopeo | Fixed | 1:1.1.1-3.module+el8.3.0+8221+97165c3f | RHSA-2020:4694 |
| Red Hat Enterprise Linux 8 | skopeo-tests | Fixed | 1:1.1.1-3.module+el8.3.0+8221+97165c3f | RHSA-2020:4694 |
| Red Hat Enterprise Linux 8 | slirp4netns | Fixed | 0:1.1.4-2.module+el8.3.0+8221+97165c3f | RHSA-2020:4694 |
| Red Hat Enterprise Linux 8 | toolbox | Fixed | 0:0.0.8-1.module+el8.3.0+8221+97165c3f | RHSA-2020:4694 |
| Red Hat Enterprise Linux 8 | udica | Fixed | 0:0.2.2-1.module+el8.3.0+8221+97165c3f | RHSA-2020:4694 |
| Red Hat Enterprise Linux 7 | golang | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 7 | golang-bin | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 7 | golang-docs | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 7 | golang-misc | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 7 | golang-src | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 7 | golang-tests | Will not fix Out of support scope | ||
| AlmaLinux 8 | libslirp | Fixed | 4.3.1-1.module_el8.6.0+2876+9ed4eae2 | ALSA-2020:4694 |
| AlmaLinux 8 | libslirp-devel | Fixed | 4.3.1-1.module_el8.6.0+2876+9ed4eae2 | ALSA-2020:4694 |
| AlmaLinux 8 | python-podman-api | Fixed | 1.2.0-0.2.gitd0a45fe.module_el8.5.0+108+00865455 | ALSA-2020:4694 |
| Rocky Linux 8 | libslirp | Fixed | 0:4.3.1-1.module+el8.7.0+1076+9b1c11c1 | RLSA-2020:4694 |
| Rocky Linux 8 | python-podman-api | Fixed | 0:1.2.0-0.2.gitd0a45fe.module+el8.5.0+770+e2f49861 | RLSA-2020:4694 |
| Rocky Linux 8 | toolbox | Fixed | 0:0.0.8-1.module+el8.4.0+556+40122d08 | RLSA-2020:4694 |
| Go library | golang.org/x/text | Fixed | 0.3.3 | GO-2020-0015 |
What the vendor says
As published in the CVE record by mitre, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
Vendor advisories:
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/… (vendor-advisory)
References
- https://groups.google.com/forum/#%21topic/golang-announce/bXVeAmGOqz0
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/TACQFZDPA7AUR6TRZBCX2RGRFSDYLI7O/
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.