Skip to content
OpenAdvisories
High · 7.5 CVE-2020-14040 EUVD-2021-0962GHSA-5rcv-m4m3-hfh7GO-2020-0015

golang.org/x/text Infinite loop

Published Jun 17, 2020 · Updated Aug 4, 2024 · Assigned by mitre

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.

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 golang-golang-x-text 0.3.3-1 —
Debian 13 golang-golang-x-text 0.3.3-1 —
Debian 12 golang-golang-x-text 0.3.3-1 —
ReleasePackageFixed inAdvisory
Ubuntu 22.04 LTS golang-golang-x-text 0.3.7-1ubuntu0.20.04.1 USN-5873-1
Ubuntu 20.04 LTS golang-golang-x-text 0.3.2-4ubuntu0.1 USN-5873-1
Ubuntu 20.04 LTS golang-x-text No fix yet —
Ubuntu 18.04 LTS golang-x-text 0.0~git20170627.0.6353ef0-1ubuntu2.1 USN-5873-1
Ubuntu 16.04 LTS golang-x-text No fix yet —
ReleasePackageFixed inAdvisory
RHEL 8 buildah +1 1.15.1-2.module+el8.3.0+8221+97165c3f RHSA-2020:4694
RHEL 8 cockpit-podman 18.1-2.module+el8.3.0+8221+97165c3f RHSA-2020:4694
RHEL 8 conmon 2:2.0.20-2.module+el8.3.0+8221+97165c3f RHSA-2020:4694
RHEL 8 container-selinux 2:2.144.0-1.module+el8.3.0+8221+97165c3f RHSA-2020:4694
RHEL 8 containernetworking-plugins 0.8.6-2.module+el8.3.0+8221+97165c3f RHSA-2020:4694
RHEL 8 crit +2 3.14-2.module+el8.3.0+8221+97165c3f RHSA-2020:4694
RHEL 8 crun 0.14.1-2.module+el8.3.0+8221+97165c3f RHSA-2020:4694
RHEL 8 delve 1.3.2-3.module+el8.2.0+5581+896cb53e RHSA-2020:3665
RHEL 8 fuse-overlayfs +1 1.1.2-3.module+el8.3.0+8221+97165c3f RHSA-2020:4694
RHEL 8 golang +7 1.13.15-1.module+el8.2.0+7662+fa98b974 RHSA-2020:3665
RHEL 8 libslirp +1 4.3.1-1.module+el8.3.0+8221+97165c3f RHSA-2020:4694
RHEL 8 podman +4 2.0.5-5.module+el8.3.0+8221+97165c3f RHSA-2020:4694
RHEL 8 python-podman-api 1.2.0-0.2.gitd0a45fe.module+el8.3.0+8221+97165c3f RHSA-2020:4694
RHEL 8 runc 1.0.0-68.rc92.module+el8.3.0+8221+97165c3f RHSA-2020:4694
RHEL 8 skopeo +2 1:1.1.1-3.module+el8.3.0+8221+97165c3f RHSA-2020:4694
RHEL 8 slirp4netns 1.1.4-2.module+el8.3.0+8221+97165c3f RHSA-2020:4694
RHEL 8 toolbox 0.0.8-1.module+el8.3.0+8221+97165c3f RHSA-2020:4694
RHEL 8 udica 0.2.2-1.module+el8.3.0+8221+97165c3f RHSA-2020:4694
Show 5 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Red Hat Service Mesh 1 ior +10 1.1.6-1.el8 RHSA-2020:3369
Red Hat Service Mesh 1 kiali v1.12.10.redhat2-1.el7 RHSA-2020:3369
Red Hat Service Mesh 1 servicemesh-grafana +1 6.4.3-13.el8 RHSA-2020:3369
Red Hat Service Mesh 1 servicemesh-operator 1.1.6-2.el8 RHSA-2020:3369
Red Hat Service Mesh 1 servicemesh-prometheus 2.14.0-14.el8 RHSA-2020:3369
Red Hat Rhel Extras Other 7 buildah 1.11.6-12.el7_9 RHSA-2020:5055
Red Hat Rhel Extras Other 7 podman +1 1.6.4-26.el7_9 RHSA-2020:5056
Red Hat Rhel Extras Other 7 skopeo +1 1:0.1.40-12.el7_9 RHSA-2020:5054
Red Hat Openshift Container Storage 4 mcg 5.6.0-39.2279a46.5.6.el8 RHSA-2020:5606
Red Hat OpenShift 4 jenkins-2-plugins 4.6.1601368321-1.el8 RHSA-2020:4297
Red Hat OpenShift 4 openshift-clients +1 4.6.0-202010081244.p0.git.3794.4743d24.el7 RHSA-2020:4297
Red Hat OpenShift 4 podman +3 1.9.3-3.rhaos4.6.el8 RHSA-2020:4297
Red Hat OpenShift 4 runc 1.0.0-81.rhaos4.6.git5b757d4.el7 RHSA-2020:4297
Red Hat OpenShift 4 skopeo +2 1:1.1.1-2.rhaos4.6.el8 RHSA-2020:4297
Red Hat Devtools 2020 go-toolset-1.13 +2 1.13.15-1.el7 RHSA-2020:4214
Red Hat Devtools 2020 go-toolset-1.13-golang +6 1.13.15-3.el7 RHSA-2020:4214

AlmaLinux

Errata ↗
ReleasePackageFixed inAdvisory
AlmaLinux 8 libslirp +1 4.3.1-1.module_el8.6.0+2876+9ed4eae2 ALSA-2020:4694
AlmaLinux 8 python-podman-api 1.2.0-0.2.gitd0a45fe.module_el8.5.0+108+00865455 ALSA-2020:4694

Rocky Linux

Errata ↗
ReleasePackageFixed inAdvisory
Rocky Linux 8 libslirp 4.3.1-1.module+el8.4.0+556+40122d08 RLSA-2020:4694
Rocky Linux 8 python-podman-api 1.2.0-0.2.gitd0a45fe.module+el8.4.0+559+c02fa3b2 RLSA-2020:4694
Rocky Linux 8 toolbox 0.0.8-1.module+el8.4.0+556+40122d08 RLSA-2020:4694

Amazon Linux

ReleasePackageFixed inAdvisory
Amazon Linux 2 golang +6 1.13.15-1.amzn2.0.1 ALAS2-2020-1494

Azure Linux

ReleasePackageFixed inAdvisory
Azure Linux 3 buildah 1.41.4-2 —
Azure Linux 3 podman 5.6.1-2 —

Oracle Linux

ReleasePackageFixed inAdvisory
Oracle Linux 8 buildah +1 1.15.1-2.0.1.module+el8.3.0+7866+f387f528 ELSA-2020-4694
Oracle Linux 8 cockpit-podman 18.1-2.module+el8.3.0+7866+f387f528 ELSA-2020-4694
Oracle Linux 8 conmon 2:2.0.20-2.module+el8.3.0+7866+f387f528 ELSA-2020-4694
Oracle Linux 8 container-selinux 2:2.144.0-1.module+el8.3.0+7866+f387f528 ELSA-2020-4694
Oracle Linux 8 containernetworking-plugins 0.8.6-2.module+el8.3.0+7866+f387f528 ELSA-2020-4694
Oracle Linux 8 crit +2 3.14-2.module+el8.3.0+7866+f387f528 ELSA-2020-4694
Oracle Linux 8 crun 0.14.1-2.module+el8.3.0+7866+f387f528 ELSA-2020-4694
Oracle Linux 8 delve 1.3.2-3.0.1.module+el8.2.0+5587+55f012d0 ELSA-2020-3665
Oracle Linux 8 fuse-overlayfs +1 1.1.2-3.module+el8.3.0+7866+f387f528 ELSA-2020-4694
Oracle Linux 8 golang +7 1.13.15-1.module+el8.2.0+7788+3ff8dc7f ELSA-2020-3665
Oracle Linux 8 libslirp +1 4.3.1-1.module+el8.3.0+7866+f387f528 ELSA-2020-4694
Oracle Linux 8 podman +4 2.0.5-5.0.1.module+el8.3.0+7866+f387f528 ELSA-2020-4694
Oracle Linux 8 python-podman-api 1.2.0-0.2.gitd0a45fe.module+el8.3.0+7866+f387f528 ELSA-2020-4694
Oracle Linux 8 runc 1.0.0-68.rc92.module+el8.3.0+7866+f387f528 ELSA-2020-4694
Oracle Linux 8 skopeo +2 1:1.1.1-3.0.1.module+el8.3.0+7866+f387f528 ELSA-2020-4694
Oracle Linux 8 slirp4netns 1.1.4-2.module+el8.3.0+7866+f387f528 ELSA-2020-4694
Oracle Linux 8 udica 0.2.2-1.module+el8.3.0+7866+f387f528 ELSA-2020-4694

Wolfi

ReleasePackageFixed inAdvisory
Wolfi rolling k3d +2 5.6.0-r11 —
Wolfi rolling vt-cli 1.0.0-r3 —

Affected packages

EcosystemPackageAffectedFixedRecord
Go golang.org/x/text < 0.3.3 0.3.3 GHSA-5rcv-m4m3-hfh7

Advisories 18

References