CVE-2021-27918

HIGH

Go <1.15.9, <1.16.1 - Infinite Loop

Title source: llm
STIX 2.1

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.

References (2)

Core 2
Core References
Mailing List, Third Party Advisory x_refsource_misc
https://groups.google.com/g/golang-announce/c/MfiLYjG-RAw
Third Party Advisory vendor-advisory x_refsource_gentoo
https://security.gentoo.org/glsa/202208-02

Scores

CVSS v3 7.5
EPSS 0.0003
EPSS Percentile 6.8%
Attack Vector NETWORK
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Details

CWE
CWE-835
Status published
Products (1)
golang/go < 1.15.9
Published Mar 11, 2021
Tracked Since Feb 18, 2026