Skip to main content
← All vulnerabilities
CVE-2021-27918GO-2021-0234BIT-GOLANG-2021-27918

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

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 1.15.9, 1.16.1
None on Exploit-DB, Metasploit or GitHub

Summary

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.

Timeline

  1. CVE published
  2. Record last updated

Affected versions

  • n/a n/a

    Version range not reported

  • stdlibGo

    fixed in 1.15.9; From 1.16.0-0 · fixed in 1.16.1

References 2

groups.google.com

security.gentoo.org