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 in Red Hat

  • 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 27 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 27 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 27 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 27 November 2026

References