{"schema_version":"1.9.0","id":"BIT-golang-2021-27918","published":"2024-03-06T11:06:30Z","modified":"2026-09-08T08:47:46.714211584Z","aliases":["CVE-2021-27918","GO-2021-0234"],"details":"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.","affected":[{"package":{"name":"golang","ecosystem":"Bitnami","purl":"pkg:bitnami/golang"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"1.15.9"},{"introduced":"1.16.0"},{"fixed":"1.16.1"}]}],"database_specific":{"source":"https://github.com/bitnami/vulndb/tree/main/data/golang/BIT-golang-2021-27918.json"},"severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"}]}],"references":[{"type":"ADVISORY","url":"https://groups.google.com/g/golang-announce/c/MfiLYjG-RAw"},{"type":"ADVISORY","url":"https://security.gentoo.org/glsa/202208-02"},{"type":"WEB","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-27918"}],"database_specific":{"cpes":["cpe:2.3:a:golang:go:*:*:*:*:*:*:*:*"],"severity":"High"}}