cve.bz

CVE-2020-16845 Infinite Loop

7.5 highEPSS 4.9%Fix available

High (7.5). EPSS 4.9% estimated probability of exploitation activity in the next 30 days. Fixed in stdlib 1.13.15, 1.14.7.

On this page
Go before 1.13.15 and 14.x before 1.14.7 can have an infinite read loop in ReadUvarint and ReadVarint in encoding/binary via invalid inputs.

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
4.9% (unchanged from 4.9% a week ago; 4.9% 30 days ago) estimated probability of exploitation activity in the next 30 days; 92nd 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-16845 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2020-16845?via=ask-ai-copy and https://cve.bz/cve/CVE-2020-16845?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-16845 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:gobefore 1.13.15
golang:gofrom 1.14 before 1.14.7
opensuse:leap15.1
opensuse:leap15.2
debian:debian_linux9.0
debian:debian_linux10.0
fedoraproject:fedora31
fedoraproject:fedora32

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GO-2021-0142Gostdlib<1.13.15
>=1.14.0-0 <1.14.7
1.13.15, 1.14.7

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian9golang-1.71.7.4-2+deb9u2DLA-2459-1
Debian9golang-1.81.8.1-1+deb9u2DLA-2460-1
Debian10golang-1.111.11.6-1+deb10u4DSA-4848-1
Debian11golang-1.151.15~rc2-1DEBIAN-CVE-2020-16845
Ubuntu14.04:LTSgolang-1.10no fix listedUBUNTU-CVE-2020-16845
Ubuntu16.04:LTSgolang-1.6, golang-1.10no fix listedUBUNTU-CVE-2020-16845
Ubuntu18.04:LTSgolang-1.131.13.8-1ubuntu1~18.04.4UBUNTU-CVE-2020-16845 USN-5725-1
Ubuntu18.04:LTSgolang-1.8, golang-1.9, golang-1.10no fix listedUBUNTU-CVE-2020-16845
Ubuntu20.04:LTSgolang-1.131.13.8-1ubuntu1.1UBUNTU-CVE-2020-16845 USN-5725-1
Ubuntu20.04:LTSgolang-1.14no fix listedUBUNTU-CVE-2020-16845
Ubuntu22.04:LTSgolang-1.131.13.8-1ubuntu2.22.04.1UBUNTU-CVE-2020-16845 USN-5725-1
UbuntuPro:16.04:LTSgolang-1.131.13.8-1ubuntu1~16.04.3+esm2UBUNTU-CVE-2020-16845 USN-5725-2
Red Hatcontainer_native_virtualization:4.9::el7kubevirt, kubevirt-virtctl, kubevirt-virtctl-redistributable0:4.9.0-287.el7RHSA-2021:4103
Red Hatcontainer_native_virtualization:4.9::el8kubevirt, kubevirt-virtctl, kubevirt-virtctl-redistributable0:4.9.0-287.el8RHSA-2021:4103
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::appstreamdelve, delve-debuginfo, delve-debugsource0:1.3.2-3.module+el8.2.0+5581+896cb53eRHSA-2020:3665
Red Hatenterprise_linux:8::appstreamgolang, go-toolset, golang-bin and 5 more0:1.13.15-1.module+el8.2.0+7662+fa98b974RHSA-2020:3665
Red Hatopenshift:4.4::el7faq, faq-debuginfo0:0.0.6-5.el7RHBA-2020:5123
Red Hatopenshift:4.4::el7openshift, openshift-hyperkube0:4.4.0-202011130111.p0.git.0.4861dfa.el7RHBA-2020:5123
Red Hatopenshift:4.4::el7openshift-clients, openshift-clients-redistributable0:4.4.0-202011122017.p0.git.3445.6937a03.el7RHBA-2020:5123
Red Hatopenshift:4.4::el8openshift, openshift-hyperkube0:4.4.0-202011130111.p0.git.0.4861dfa.el8RHBA-2020:5123
Red Hatopenshift:4.4::el8openshift-clients, openshift-clients-redistributable0:4.4.0-202011122017.p0.git.3445.6937a03.el8RHBA-2020:5123
Red Hatopenshift:4.5::el7apb, apb-devel, apb-container-scripts0:2.0.3-3.el7RHSA-2021:0713
46 more for Red Hat in the JSON and on Red Hat's page.
SUSELinux Enterprise Module for Development Tools 15 SP1, Linux Enterprise Module for Development Tools 15 SP2go1.141.14.7-1.15.1SUSE-SU-2020:2562-1
openSUSELeap 15.1go1.131.13.15-lp151.8.1openSUSE-SU-2020:1178-1
openSUSELeap 15.1go1.141.14.7-lp151.13.1openSUSE-SU-2020:1405-1
openSUSELeap 15.2go1.131.13.15-lp152.2.7.1openSUSE-SU-2020:1194-1
openSUSELeap 15.2go1.141.14.7-lp152.2.3.1openSUSE-SU-2020:1407-1
openSUSETumbleweedgo1.131.13.15-2.6openSUSE-SU-2024:10806-1
openSUSETumbleweedgo1.141.14.15-1.6openSUSE-SU-2024:10807-1
Alpinev3.12go1.13.15-r0ALPINE-CVE-2020-16845
Alpinev3.13, v3.14, v3.15 and 9 morego1.15-r0ALPINE-CVE-2020-16845
Azure Linux3golangno fix listedAZL-79098 AZL-98940

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; SUSE security data, CC BY 4.0; the Alpine secdb, CC BY-SA 4.0; Microsoft's Azure Linux vulnerability data, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE · openSUSE · Alpine.

Red Hat

Red Hat rates this Moderate.

Red Hat's statement

OpenShift Container Platform (OCP), OpenShift ServiceMesh (OSSM), RedHat OpenShift Jaeger (RHOSJ) and OpenShift Virtualization components are primarily written in Go, meaning that any component using the encoding/binary package includes the vulnerable code. The affected components are behind OpenShift OAuth authentication, therefore the impact is low.

Red Hat Gluster Storage 3, Red Hat OpenShift Container Storage 4 and Red Hat Ceph Storage (3 and 4) components are built with the affected version of Go, however the vulnerable functionality is currently not used by these products and hence this issue has been rated as having a security impact of Low.

ProductPackageStateAdvisory
OpenShift Logging 5.0openshift-logging/eventrouter-rhel8:v5.0.3-1Fixed 2021-05-06RHSA-2021:1515
OpenShift Serverless 1.9.0openshift-serverless-1/kn-serving-controller-rhel9Fixed 2021-01-11RHSA-2021:0072
OpenShift Service Mesh 1.0openshift-service-mesh/3scale-istio-adapter-rhel8:1.0.0-9Fixed 2020-09-30RHBA-2020:4139
OpenShift Service Mesh 1.1ior-0:1.1.11-2.el8Fixed 2020-12-22RHSA-2020:5649
OpenShift Service Mesh 1.1servicemesh-0:1.1.11-2.el8Fixed 2020-12-22RHSA-2020:5649
OpenShift Service Mesh 1.1servicemesh-cni-0:1.1.11-2.el8Fixed 2020-12-22RHSA-2020:5649
OpenShift Service Mesh 1.1servicemesh-grafana-0:6.4.3-19.el8Fixed 2020-12-22RHSA-2020:5649
OpenShift Service Mesh 1.1servicemesh-operator-0:1.1.11-3.el8Fixed 2020-12-22RHSA-2020:5649
OpenShift Service Mesh 1.1servicemesh-prometheus-0:2.14.0-20.el8Fixed 2020-12-22RHSA-2020:5649
Red Hat Developer Toolsgo-toolset-1.13-0:1.13.15-1.el7Fixed 2020-10-08RHSA-2020:4214
OpenShift Service Mesh 1jaegerOut of support scope
OpenShift Service Mesh 1jaeger-operatorOut of support scope
OpenShift Service Mesh 1kialiAffected
Red Hat Ceph Storage 2golangOut of support scope
Red Hat Ceph Storage 2grafanaOut of support scope
Red Hat Ceph Storage 3golangFix deferred
Red Hat Ceph Storage 3golang-github-prometheus-node_exporterFix deferred
Red Hat Ceph Storage 3grafanaFix deferred
Red Hat Ceph Storage 4rhceph/rhceph-4-dashboard-rhel8Fix deferred
Red Hat Enterprise Linux 7gccWill not fix
220 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-16845.

References

Check your stackJSON