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
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Alpine:v3.20 | go | 1.16.2-r0 | ALPINE-CVE-2021-27918 |
| Alpine:v3.21 | go | 1.16.2-r0 | ALPINE-CVE-2021-27918 |
| Alpine:v3.22 | go | 1.16.2-r0 | ALPINE-CVE-2021-27918 |
| Alpine:v3.23 | go | 1.16.2-r0 | ALPINE-CVE-2021-27918 |
| Alpine:v3.24 | go | 1.16.2-r0 | ALPINE-CVE-2021-27918 |
| Go | stdlib | 1.15.9, 1.16.1 | GO-2021-0234 |
| Rocky Linux:8 | delve | 0:1.5.0-2.module+el8.4.0+396+d2d16ae3 | RLSA-2021:3076 |
| Rocky Linux:8 | go-toolset | 0:1.15.14-1.module+el8.4.0+632+4dba2916 | RLSA-2021:3076 |
| Rocky Linux:8 | golang | 0:1.15.14-1.module+el8.4.0+632+4dba2916 | RLSA-2021:3076 |
Affected products (as reported)
References
- https://groups.google.com/g/golang-announce/c/MfiLYjG-RAw x_refsource_MISC
- GLSA-202208-02 vendor-advisory, x_refsource_GENTOO