cve.bz

CVE-2020-14040 Infinite Loop

7.5 highEPSS 1.9%Fix available

High (7.5). EPSS 1.9% estimated probability of exploitation activity in the next 30 days. Fixed in golang.org/x/text 0.3.3.

On this page
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.

Severity

CVSS 3.1

7.5 high
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
EPSS
1.9% (unchanged from 1.9% a week ago; 1.8% 30 days ago) estimated probability of exploitation activity in the next 30 days; 80th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CWE
CWE-835 Loop with Unreachable Exit Condition (Infinite Loop)
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2020-14040 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2020-14040?via=ask-ai-copy and https://cve.bz/cve/CVE-2020-14040?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2020-14040 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
golang:textbefore 0.3.3
fedoraproject:fedora32

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-5rcv-m4m3-hfh7Gogolang.org/x/text<0.3.30.3.3
GO-2020-0015Gogolang.org/x/text<0.3.30.3.3

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12, 13, 14golang-golang-x-text0.3.3-1DEBIAN-CVE-2020-14040
Ubuntu16.04:LTS, 20.04:LTSgolang-x-textno fix listedUBUNTU-CVE-2020-14040
Ubuntu18.04:LTSgolang-x-text0.0~git20170627.0.6353ef0-1ubuntu2.1UBUNTU-CVE-2020-14040 USN-5873-1
Ubuntu20.04:LTSgolang-golang-x-text0.3.2-4ubuntu0.1UBUNTU-CVE-2020-14040 USN-5873-1
Ubuntu22.04:LTSgolang-golang-x-text0.3.7-1ubuntu0.20.04.1USN-5873-1
Red Hatdevtools:2020go-toolset-1.13, go-toolset-1.13-build, go-toolset-1.13-runtime0:1.13.15-1.el7RHSA-2020:4214
Red Hatdevtools:2020go-toolset-1.13-golang, go-toolset-1.13-golang-bin, go-toolset-1.13-golang-src and 4 more0:1.13.15-3.el7RHSA-2020:4214
Red Hatenterprise_linux:8::appstreambuildah, buildah-tests, buildah-debuginfo and 2 more0:1.15.1-2.module+el8.3.0+8221+97165c3fRHSA-2020:4694
Red Hatenterprise_linux:8::appstreamcockpit-podman0:18.1-2.module+el8.3.0+8221+97165c3fRHSA-2020:4694
Red Hatenterprise_linux:8::appstreamconmon2:2.0.20-2.module+el8.3.0+8221+97165c3fRHSA-2020:4694
Red Hatenterprise_linux:8::appstreamcontainer-selinux2:2.144.0-1.module+el8.3.0+8221+97165c3fRHSA-2020:4694
Red Hatenterprise_linux:8::appstreamcontainernetworking-plugins, containernetworking-plugins-debuginfo, containernetworking-plugins-debugsource0:0.8.6-2.module+el8.3.0+8221+97165c3fRHSA-2020:4694
Red Hatenterprise_linux:8::appstreamcrit, criu, python3-criu and 2 more0:3.14-2.module+el8.3.0+8221+97165c3fRHSA-2020:4694
Red Hatenterprise_linux:8::appstreamcrun, crun-debuginfo, crun-debugsource0:0.14.1-2.module+el8.3.0+8221+97165c3fRHSA-2020:4694
Red Hatenterprise_linux:8::appstreamdelve, delve-debuginfo, delve-debugsource0:1.3.2-3.module+el8.2.0+5581+896cb53eRHSA-2020:3665
Red Hatenterprise_linux:8::appstreamfuse-overlayfs, oci-seccomp-bpf-hook, fuse-overlayfs-debuginfo and 3 more0:1.1.2-3.module+el8.3.0+8221+97165c3fRHSA-2020:4694
Red Hatenterprise_linux:8::appstreamgolang, go-toolset, golang-bin and 5 more0:1.13.15-1.module+el8.2.0+7662+fa98b974RHSA-2020:3665
19 more for Red Hat in the JSON and on Red Hat's page.
AlmaLinux8libslirp, libslirp-devel4.3.1-1.module_el8.6.0+2876+9ed4eae2ALSA-2020:4694
AlmaLinux8python-podman-api1.2.0-0.2.gitd0a45fe.module_el8.5.0+108+00865455ALSA-2020:4694
AlmaLinux8python-podman-api1.2.0-0.2.gitd0a45fe.module_el8.5.0+2635+e4386a39ALSA-2020:4694
Rocky Linux8libslirp0:4.3.1-1.module+el8.4.0+556+40122d08RLSA-2020:4694
Rocky Linux8libslirp0:4.3.1-1.module+el8.5.0+709+440d5e7eRLSA-2020:4694
Rocky Linux8libslirp0:4.3.1-1.module+el8.6.0+783+10209741RLSA-2020:4694
Rocky Linux8libslirp0:4.3.1-1.module+el8.7.0+1076+9b1c11c1RLSA-2020:4694
Rocky Linux8python-podman-api0:1.2.0-0.2.gitd0a45fe.module+el8.4.0+559+c02fa3b2RLSA-2020:4694
Rocky Linux8python-podman-api0:1.2.0-0.2.gitd0a45fe.module+el8.5.0+708+6758137dRLSA-2020:4694
Rocky Linux8python-podman-api0:1.2.0-0.2.gitd0a45fe.module+el8.5.0+770+e2f49861RLSA-2020:4694
Rocky Linux8toolbox0:0.0.8-1.module+el8.4.0+556+40122d08RLSA-2020:4694
Azure Linux3buildah1.41.4-2AZL-44877
Azure Linux3podman5.6.1-2AZL-44364

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; AlmaLinux's OSV database, MIT; Rocky Linux's errata, BSD-3-Clause; Microsoft's Azure Linux vulnerability data, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat.

Red Hat

Red Hat rates this Moderate.

Red Hat's statement

* OpenShift ServiceMesh (OSSM) 1.0 is Out Of Support Scope (OOSS) for Moderate and Low impact vulnerabilities. Jaeger was packaged with ServiceMesh in 1.0, and hence is also marked OOSS, but the Jaeger-Operator is a standalone product and is affected by this vulnerability.

* Because Service Telemetry Framework does not directly use unicode.UTF16, no update will be provided at this time for STF's sg-core-container.

ProductPackageStateAdvisory
3scale API Management 2.10 on RHEL 73scale-amp2/3scale-rhel7-operator:1.13.0-17Fixed 2021-04-08RHSA-2021:1129
3scale API Management 2.10 on RHEL 73scale-amp2/3scale-rhel7-operator-metadata:2.10.0-38Fixed 2021-04-08RHSA-2021:1129
3scale API Management 2.10 on RHEL 73scale-amp2/apicast-rhel7-operator:1.13.0-4Fixed 2021-04-08RHSA-2021:1129
3scale API Management 2.10 on RHEL 73scale-amp2/apicast-rhel7-operator-metadata:2.10.0-9Fixed 2021-04-08RHSA-2021:1129
Jaeger-1.17distributed-tracing/jaeger-agent-rhel7:1.17.5-3Fixed 2020-07-22RHSA-2020:3087
Jaeger-1.17distributed-tracing/jaeger-all-in-one-rhel7:1.17.5-3Fixed 2020-07-22RHSA-2020:3087
Jaeger-1.17distributed-tracing/jaeger-collector-rhel7:1.17.5-3Fixed 2020-07-22RHSA-2020:3087
Jaeger-1.17distributed-tracing/jaeger-ingester-rhel7:1.17.5-3Fixed 2020-07-22RHSA-2020:3087
Jaeger-1.17distributed-tracing/jaeger-query-rhel7:1.17.5-3Fixed 2020-07-22RHSA-2020:3087
Jaeger-1.17distributed-tracing/jaeger-rhel7-operator:1.17.5-3Fixed 2020-07-22RHSA-2020:3087
OpenShift Developer Tools and Servicesjenkins-operator-containerOut of support scope
OpenShift Service Mesh 1jaegerOut of support scope
OpenShift Service Mesh 1jaeger-operatorOut of support scope
Red Hat Advanced Cluster Management for Kubernetes 2cert-managerAffected
Red Hat Advanced Cluster Management for Kubernetes 2cert-policy-controllerAffected
Red Hat Advanced Cluster Management for Kubernetes 2configmap-watcherAffected
Red Hat Advanced Cluster Management for Kubernetes 2config-policy-controllerAffected
Red Hat Advanced Cluster Management for Kubernetes 2endpoint-component-operatorNot affected
Red Hat Advanced Cluster Management for Kubernetes 2endpoint-metrics-operatorNot affected
Red Hat Advanced Cluster Management for Kubernetes 2endpoint-operatorNot affected
330 more in the JSON and on Red Hat's page.

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2020-14040.

References

Check your stackJSON