ADVISORIES

Vulnerability

CVE-2021-27918

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.

22 advisories report this vulnerability, across 12 ecosystems.

Advisories

  • ALAS2-2022-1776

    Amazon Linux 2 2017.12 - ALAS2-2022-1776: important priority package update for golang

    Important CVE-2021-27918CVE-2021-27919CVE-2021-33195CVE-2021-33197 Amazon Linux Updated 7 August 2025
  • ALPINE-CVE-2021-27918

    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…

    CVE-2021-27918 Alpine Updated 17 November 2026
  • ALPINE-EDGE-CVE-2021-27918
    CVE-2021-27918 Alpine Updated 18 November 2026
  • AZL-79104

    CVE-2021-27918 affecting package golang 1.26.11-1

    CVE-2021-27918 Azure Linux Updated 23 November 2026
  • AZL-98703

    CVE-2021-27918 affecting package golang 1.27.1-1

    CVE-2021-27918 Azure Linux Updated 16 September 2026
  • DEBIAN-CVE-2021-27918

    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…

    CVE-2021-27918 Debian Updated 24 November 2026
  • ELSA-2021-3076

    ELSA-2021-3076: go-toolset:ol8 security, bug fix, and enhancement update (MODERATE)

    Moderate CVE-2021-27918CVE-2021-31525CVE-2021-33196CVE-2021-34558 Oracle Linux Updated 12 August 2021
  • ELSA-2021-9267

    ELSA-2021-9267: olcne security update (IMPORTANT)

    Important CVE-2021-27918 Oracle Linux Updated 29 May 2021
  • ELSA-2021-9268

    ELSA-2021-9268: olcne security update (IMPORTANT)

    Important CVE-2021-27918 Oracle Linux Updated 29 May 2021
  • GO-2021-0234

    Infinite loop when decoding inputs in encoding/xml

    CVE-2021-27918 Go Updated 20 May 2024
  • OESA-2021-1184

    golang security update

    High CVE-2021-27918 openEuler Updated 18 August 2026
  • RHSA-2021:2704

    Red Hat Security Advisory: Release of OpenShift Serverless Client kn 1.16.0

    CVE-2021-27918CVE-2021-31525CVE-2021-33196 Red Hat Updated 13 November 2026
  • RHSA-2021:3076

    Red Hat Security Advisory: go-toolset:rhel8 security, bug fix, and enhancement update

    CVE-2021-27918CVE-2021-31525CVE-2021-33196CVE-2021-34558 Red Hat Updated 13 November 2026
  • RHSA-2021:3555

    Red Hat Security Advisory: Release of OpenShift Serverless Client kn 1.17.0

    CVE-2021-27918CVE-2021-31525CVE-2021-33195CVE-2021-33196 Red Hat Updated 13 November 2026
  • RHVEX-CVE-2021-27918

    golang: encoding/xml: infinite loop when using xml.NewTokenDecoder with a custom TokenReader

    Moderate CVE-2021-27918 Red Hat Updated 7 November 2026
  • RLSA-2021:3076

    Moderate: go-toolset:rhel8 security, bug fix, and enhancement update

    CVE-2021-27918CVE-2021-31525CVE-2021-33196CVE-2021-34558 Rocky Linux Updated 5 February 2026
  • SUSE-SU-2021:0937-1

    Security update for go1.16

    CVE-2021-27918CVE-2021-27919 SUSE Updated 4 February 2026
  • SUSE-SU-2021:0938-1

    Security update for go1.15

    CVE-2021-27918 SUSE Updated 4 February 2026
  • UBUNTU-CVE-2021-27918

    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…

    CVE-2021-27918 Ubuntu Updated 24 October 2025
  • openSUSE-SU-2021:0480-1

    Security update for go1.15

    CVE-2021-27918 openSUSE Updated 4 February 2026
  • openSUSE-SU-2024:10808-1

    go1.15-1.15.15-1.2 on GA media

    CVE-2020-24553CVE-2020-28362CVE-2020-28366CVE-2020-28367 openSUSE Updated 4 February 2026
  • openSUSE-SU-2024:10809-1

    go1.16-1.16.8-1.1 on GA media

    CVE-2021-27918CVE-2021-27919CVE-2021-31525CVE-2021-33195 openSUSE Updated 4 February 2026

References