{"id":"CVE-2021-27918","published":"2021-03-10T23:54:43Z","modified":"2024-08-03T21:33:16Z","title":"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…","vendor":null,"product":null,"tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":null,"epss":{"score":0.02474,"percentile":0.84921,"provenance":"source"},"cwes":[],"references":[{"url":"https://groups.google.com/g/golang-announce/c/MfiLYjG-RAw","tags":["x_refsource_MISC"]},{"url":"https://security.gentoo.org/glsa/202208-02","tags":["vendor-advisory","x_refsource_GENTOO"]}],"priority":{"score":17.0,"factors":[{"name":"EPSS percentile","points":16.98}]},"affected":[{"ecosystem":"Go","package":"stdlib","vulnerableRanges":["<1.15.9",">=1.16.0-0, <1.16.1"],"patched":["1.15.9","1.16.1"],"from":["GO-2021-0234"],"provenance":"source"}],"summary":{"text":"The flaw is an infinite loop in the encoding/xml package of the Go standard library, affecting Go versions before 1.15.9 and 1.16.x before 1.16.1. It is triggered when a custom TokenReader supplied to xml.NewTokenDecoder returns EOF partway through an element, which can occur in the Decode, DecodeElement, or Skip methods. The provided record does not state the attack vector, required privileges, or user interaction, so the conditions for exploitation cannot be confirmed from it.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:32:06Z"},"euvd":{"id":"EUVD-2021-14641","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2020-24553","published":"2020-09-02","fixed":"1.15.1","kev":false},{"cve":"CVE-2020-28362","published":"2020-11-18","fixed":"1.15.5","kev":false},{"cve":"CVE-2021-3114","published":"2021-01-26","fixed":"1.15.7","kev":false,"link":{"from":"CVE-2021-3114","to":"CVE-2021-27918","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Go:stdlib","fromFixed":"1.15.7","toFixed":"1.15.9","daysApart":43}]}},{"cve":"CVE-2021-27918","published":"2021-03-10","fixed":"1.16.1","kev":false},{"cve":"CVE-2021-27919","published":"2021-03-11","fixed":"1.16.1","kev":false},{"cve":"CVE-2021-31525","published":"2021-05-27","fixed":"1.16.4","kev":false,"link":{"from":"CVE-2021-27918","to":"CVE-2021-31525","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Go:stdlib","fromFixed":"1.15.9","toFixed":"1.15.12","daysApart":78}]}},{"cve":"CVE-2021-33195","published":"2021-08-02","fixed":"1.16.5","kev":false}],"package":"Go:stdlib"}}