Vulnerability Report: GO-2021-0234
standard library- CVE-2021-27918
- Affects: encoding/xml
- Published: Feb 17, 2022
- Modified: May 20, 2024
The Decode, DecodeElement, and Skip methods of an xml.Decoder provided by xml.NewTokenDecoder may enter an infinite loop when operating on a custom xml.TokenReader which returns an EOF in the middle of an open XML element.
Affected Packages
-
PathGo VersionsSymbols
-
before go1.15.9, from go1.16.0-0 before go1.16.1
Aliases
References
- https://go.dev/cl/300391
- https://go.googlesource.com/go/+/d0b79e3513a29628f3599dc8860666b6eed75372
- https://go.dev/issue/44913
- https://groups.google.com/g/golang-announce/c/MfiLYjG-RAw
- https://vuln.go.dev/ID/GO-2021-0234.json
Credits
- Sam Whited
Feedback
See anything missing or incorrect?
Suggest an edit to this report.