CVE-2021-27918
Last modified
CVE-2021-27918 is a high-severity vulnerability rated 7.5/10 on the CVSS scale. 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.. EPSS estimates a 2.54% chance of exploitation in the next 30 days.
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.
Metrics
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Weakness Enumeration
Affected Software
| Vendor | Product | Versions |
|---|---|---|
| Golang | Go | < 1.15.9 |
| Golang | Go | >= 1.16.0, < 1.16.1 |
References
- https://groups.google.com/g/golang-announce/c/MfiLYjG-RAwMailing List, Third Party Advisory
- https://security.gentoo.org/glsa/202208-02Third Party Advisory
- https://groups.google.com/g/golang-announce/c/MfiLYjG-RAwMailing List, Third Party Advisory
- https://security.gentoo.org/glsa/202208-02Third Party Advisory
Timeline
- Published
- Last Modified
- Status
- Modified
Frequently Asked Questions
What is CVE-2021-27918?
How severe is CVE-2021-27918?
How do I fix CVE-2021-27918?
Are you affected by CVE-2021-27918?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
