Vulnerability 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 Score
HIGH
Affected Products
| Vendor | Product | Versions |
|---|---|---|
| Golang | Go | < 1.15.9 |
Related Weaknesses (CWE)
References
- https://groups.google.com/g/golang-announce/c/MfiLYjG-RAwMailing ListThird Party Advisory
- https://security.gentoo.org/glsa/202208-02Third Party Advisory
- https://groups.google.com/g/golang-announce/c/MfiLYjG-RAwMailing ListThird Party Advisory
- https://security.gentoo.org/glsa/202208-02Third Party Advisory
FAQ
What is CVE-2021-27918?
CVE-2021-27918 is a vulnerability with a CVSS score of 7.5 (HIGH). 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, ...
How severe is CVE-2021-27918?
CVE-2021-27918 has been rated HIGH with a CVSS base score of 7.5/10. Review the CVSS metrics above for detailed severity breakdown.
Is there a patch for CVE-2021-27918?
Check the references section above for vendor advisories and patch information. Affected products include: Golang Go.