Vulnerability · Published Mar 10, 2021 · Assigned by mitre

CVE-2021-27918

High 7.5

In plain English

A high-severity security flaw in the go package (Alpine). There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 2.5% (higher than 85% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS NVD)7.5High
Exploit odds (30 days)2.5%top 15.4% of all CVEs
Exploited in the wildNo reportsnot in CISA KEV
Attack toolingNoneno public tooling known

Official 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.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
Alpine:v3.20go1.16.2-r0ALPINE-CVE-2021-27918
Alpine:v3.21go1.16.2-r0ALPINE-CVE-2021-27918
Alpine:v3.22go1.16.2-r0ALPINE-CVE-2021-27918
Alpine:v3.23go1.16.2-r0ALPINE-CVE-2021-27918
Alpine:v3.24go1.16.2-r0ALPINE-CVE-2021-27918
Gostdlib1.15.9, 1.16.1GO-2021-0234
Rocky Linux:8delve0:1.5.0-2.module+el8.4.0+396+d2d16ae3RLSA-2021:3076
Rocky Linux:8go-toolset0:1.15.14-1.module+el8.4.0+632+4dba2916RLSA-2021:3076
Rocky Linux:8golang0:1.15.14-1.module+el8.4.0+632+4dba2916RLSA-2021:3076

Affected products (as reported)

VendorProductVersions
n/a n/a n/a

References