Skip to content
OpenAdvisories
Unscored CVE-2021-27918 BIT-golang-2021-27918EUVD-2021-14641GHSA-8mmp-c685-53vwGO-2021-0234

Infinite loop when decoding inputs in encoding/xml

Published Mar 10, 2021 · Updated Aug 3, 2024 · Assigned by mitre

Description

encoding/xml in Go before 1.15.9 and 1.16.x before 1.16.1 has an infinite loop if a custom TokenReader (for xml.NewTokenDecoder) returns EOF in the middle of an element. This can occur in the Decode, DecodeElement, or Skip method.

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 11 golang-1.15 1.15.9-1 —
ReleasePackageFixed inAdvisory
Ubuntu 20.04 LTS golang-1.13 +1 No fix yet —
Ubuntu 18.04 LTS golang-1.8 +2 No fix yet —
Ubuntu 16.04 LTS golang-1.6 +1 No fix yet —
Ubuntu 14.04 LTS golang-1.10 No fix yet —
Show 3 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu Pro 22.04 LTS golang-1.13 No fix yet —
Ubuntu Pro 18.04 LTS golang-1.13 No fix yet —
Ubuntu Pro 16.04 LTS golang-1.13 No fix yet —
ReleasePackageFixed inAdvisory
RHEL 8 delve 1.5.0-2.module+el8.4.0+8864+58b0fcdb RHSA-2021:3076
RHEL 8 golang +7 1.15.14-1.module+el8.4.0+11833+614b07b8 RHSA-2021:3076
Show 1 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Red Hat Serverless 1 openshift-serverless-clients 0.22.0-3.el8 RHSA-2021:3555, RHSA-2021:2704

Rocky Linux

Errata ↗
ReleasePackageFixed inAdvisory
Rocky Linux 8 delve 1.5.0-2.module+el8.4.0+396+d2d16ae3 RLSA-2021:3076
Rocky Linux 8 golang +1 1.15.14-1.module+el8.4.0+632+4dba2916 RLSA-2021:3076
ReleasePackageFixed inAdvisory
SLES 15 SP2 go1.15 1.15.10-1.25.1 SUSE-SU-2021:0938-1
SLES 15 SP2 go1.16 1.16.2-1.8.1 SUSE-SU-2021:0937-1
SLES 15 SP1 go1.15 1.15.10-1.25.1 SUSE-SU-2021:0938-1
Show 6 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
SLES for SAP 15 SP1 go1.15 1.15.10-1.25.1 SUSE-SU-2021:0938-1
SLE HPC 15 SP1 go1.15 1.15.10-1.25.1 SUSE-SU-2021:0938-1
SUSE Manager Server 4.0 go1.15 1.15.10-1.25.1 SUSE-SU-2021:0938-1
SUSE Manager Retail Branch Server 4.0 go1.15 1.15.10-1.25.1 SUSE-SU-2021:0938-1
SUSE Manager Proxy 4.0 go1.15 1.15.10-1.25.1 SUSE-SU-2021:0938-1
SUSE Enterprise Storage 6 go1.15 1.15.10-1.25.1 SUSE-SU-2021:0938-1
ReleasePackageFixed inAdvisory
openSUSE Tumbleweed go1.15 1.15.15-1.2 openSUSE-SU-2024:10808-1
openSUSE Tumbleweed go1.16 1.16.8-1.1 openSUSE-SU-2024:10809-1
openSUSE Leap 15.2 go1.15 1.15.10-lp152.14.1 openSUSE-SU-2021:0480-1
ReleasePackageFixed inAdvisory
Alpine v3.24 go 1.16.2-r0 —
Alpine v3.23 go 1.16.2-r0 —
Alpine v3.22 go 1.16.2-r0 —
Alpine v3.21 go 1.16.2-r0 —
Alpine v3.20 go 1.16.2-r0 —
Show 7 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Alpine v3.19 go 1.16.2-r0 —
Alpine v3.18 go 1.16.2-r0 —
Alpine v3.17 go 1.16.2-r0 —
Alpine v3.16 go 1.16.2-r0 —
Alpine v3.15 go 1.16.2-r0 —
Alpine v3.14 go 1.16.2-r0 —
Alpine v3.13 go 1.15.10-r0 —

Amazon Linux

ReleasePackageFixed inAdvisory
Amazon Linux 2 golang +7 1.16.15-1.amzn2.0.1 ALAS2-2022-1776

Azure Linux

ReleasePackageFixed inAdvisory
Azure Linux 3 golang No fix yet —

Oracle Linux

ReleasePackageFixed inAdvisory
Oracle Linux 8 conmon 3:2.0.21-4.el8 ELSA-2021-9267
Oracle Linux 8 coredns 1.7.0-1.el8 ELSA-2021-9267
Oracle Linux 8 cri-o 1.18.4-2.el8 ELSA-2021-9267
Oracle Linux 8 cri-tools 1.18.0-2.el8 ELSA-2021-9267
Oracle Linux 8 delve 1.5.0-2.0.1.module+el8.4.0+20021+8a86d991 ELSA-2021-3076
Oracle Linux 8 etcd 3.4.3-1.0.5.el8 ELSA-2021-9267
Oracle Linux 8 flannel 0.12.0-2.el8 ELSA-2021-9267
Oracle Linux 8 golang +7 1.15.14-1.module+el8.4.0+20290+7af514f4 ELSA-2021-3076
Oracle Linux 8 helm 3.3.4-2.el8 ELSA-2021-9267
Oracle Linux 8 istio +5 1.7.3-1.0.2.el8 ELSA-2021-9267
Oracle Linux 8 kata 1.11.5-4.el8 ELSA-2021-9267
Oracle Linux 8 kata-image 1.11.5-2.2.ol8_202104281558 ELSA-2021-9267
Oracle Linux 8 kata-shim +4 1.11.5-2.el8 ELSA-2021-9267
Oracle Linux 8 kubeadm +2 1.18.18-2.el8 ELSA-2021-9267
Oracle Linux 8 kubernetes-cni 0.8.0-3.el8 ELSA-2021-9267
Oracle Linux 8 kubernetes-cni-plugins 0.8.7-2.el8 ELSA-2021-9267
Oracle Linux 8 kubernetes-dashboard 2.0.3-2.el8 ELSA-2021-9267
Oracle Linux 8 olcnectl +6 1.2.3-9.el8 ELSA-2021-9267
Oracle Linux 8 yq 3.4.0-2.el8 ELSA-2021-9267
Oracle Linux 7 conmon 3:2.0.21-4.el7 ELSA-2021-9268
Oracle Linux 7 coredns 1.7.0-1.el7 ELSA-2021-9268
Oracle Linux 7 cri-o 1.18.4-2.el7 ELSA-2021-9268
Oracle Linux 7 cri-tools 1.18.0-2.el7 ELSA-2021-9268
Oracle Linux 7 etcd 3.4.3-1.0.5.el7 ELSA-2021-9268
Oracle Linux 7 flannel 0.12.0-2.el7 ELSA-2021-9268
Oracle Linux 7 helm 3.3.4-2.el7 ELSA-2021-9268
Oracle Linux 7 istio +1 1.7.3-1.0.2.el7 ELSA-2021-9268
Oracle Linux 7 kata 1.11.5-4.el7 ELSA-2021-9268
Oracle Linux 7 kata-image 1.11.5-2.2.ol7_202104281557 ELSA-2021-9268
Oracle Linux 7 kata-shim +4 1.11.5-2.el7 ELSA-2021-9268
Oracle Linux 7 kubeadm +2 1.18.18-2.el7 ELSA-2021-9268
Oracle Linux 7 kubernetes-cni 0.8.0-3.el7 ELSA-2021-9268
Oracle Linux 7 kubernetes-cni-plugins 0.8.7-2.el7 ELSA-2021-9268
Oracle Linux 7 kubernetes-dashboard 2.0.3-2.el7 ELSA-2021-9268
Oracle Linux 7 olcnectl +6 1.2.3-9.el7 ELSA-2021-9268
Oracle Linux 7 yq 3.4.0-2.el7 ELSA-2021-9268

Affected packages

EcosystemPackageAffectedFixedRecord
Go stdlib < 1.15.9 · >= 1.16.0-0, < 1.16.1 1.15.9, 1.16.1 GO-2021-0234

Advisories 16

References