CVE-2021-27918: golang go Loop with Unreachable Exit Condition
Vulnerability summary
CVE-2021-27918 is a high (CVSS 7.5) Loop with Unreachable Exit Condition vulnerability in golang go. EPSS estimates a 2.47% chance of exploitation in the next 30 days, higher than 84.5% of scored vulnerabilities.
Severe, CVSS 7.5 (NVD); no exploitation reported by the 5 checked sources; EPSS 2% (FIRST, 03-11-2026)
Source freshness unavailable
How is this decided?Advisory lineage
Upstream 0 · Downstream 7 · Related 3Timeline
- 10-03-2021PublishedVulnerability first disclosed.
- 03-08-2024Last modifiedVulnerability information updated.
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.
CVSS metrics
5 scores · 4 sources · 2 versions- OSV · UbuntuEcosystem advisory · calculated7.5HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- OSV · DebianEcosystem advisory · calculated7.5HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- OSV · AlpineEcosystem advisory · calculated7.5HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
EPSS trend
Probability
2.47%
Chance of exploitation in the next 30 days
Percentile
85%
Versus all other CVEs
30-day change
No change 0.00 pp
From 2.47% on 04-10-2026
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root causeAffected systems
Known conditions: network-reachable, no authentication, no user interaction (CVSS vector). Other conditions: not stated in public data.
Suse10 products
- go1.15&distro=SUSE Enterprise Storage 6< 1.15.10-1.25.1
- go1.15&distro=SUSE Linux Enterprise High Performance Computing 15 SP1-ESPOS< 1.15.10-1.25.1
- go1.15&distro=SUSE Linux Enterprise High Performance Computing 15 SP1-LTSS< 1.15.10-1.25.1
- go1.15&distro=SUSE Linux Enterprise Module for Development Tools 15 SP2< 1.15.10-1.25.1
- go1.15&distro=SUSE Linux Enterprise Server 15 SP1-BCL< 1.15.10-1.25.1
Ubuntu6 products
- golang-1.10All versions (No fix recorded)
- golang-1.13All versions (No fix recorded)
- golang-1.14All versions (No fix recorded)
- golang-1.6All versions (No fix recorded)
- golang-1.8All versions (No fix recorded)
Alpine1 product
- go≥ 1.16.0, < 1.15.10-r0 | ≥ 1.16.0, < 1.16.2-r0
Debian1 product
- golang-1.15< 1.15.9-1
Go1 product
- stdlib≥ 1.16.0-0, < 1.16.1
Golang1 product
- go< 1.15.9 | ≥ 1.16.0, < 1.16.1
Opensuse1 product
- go1.15&distro=openSUSE Leap 15.2< 1.15.10-lp152.14.1
7 vendors · 21 products
References
15 links- groups.google.com/g/golang-announce/c/MfiLYjG-RAwX Refsource MISCREPORTWEBMailing ListThird Party Advisory
Show all 15 references
- go.dev/issue/44913REPORT
- lists.opensuse.org/archives/…Advisory