7.5

CVE-2021-27918: golang go Loop with Unreachable Exit Condition

Modified
AliasesSUSE-SU-2021:0938-1UBUNTU-CVE-2021-27918DEBIAN-CVE-2021-27918
Published 10-03-2021Last modified 03-08-2024

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.

Priority
Prioritisesevere

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?
CVSS score
7.5/10
010
High · v3.1 (NVD)
EPSS score
2.47%
0%100%
Low · 0.00 pp in 30 days
KEVNot listedNot listed by any tracked catalog.
RansomwareNot flaggedNo ransomware use recorded.
Public exploits0No public exploits recorded

Advisory lineage

Upstream 0 · Downstream 7 · Related 3

Timeline

  1. 10-03-2021
    PublishedVulnerability first disclosed.
  2. 03-08-2024
    Last 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

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

04-10-202603-11-2026

Known exploited

Compare KEV catalogs
CISA KEV

Not in the CISA KEV catalog.

ENISA CNW

Not in the ENISA CNW catalog.

CIRCL

Not in the CIRCL catalog.

Public exploits

0 found

No public exploits indexed.

Weaknesses

CWE · root cause

Affected systems

Version check

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
Show all 15 references