{"id":"CVE-2020-14040","details":"The x/text package before 0.3.3 for Go has a vulnerability in encoding/unicode that could lead to the UTF-16 decoder entering an infinite loop, causing the program to crash or run out of memory. An attacker could provide a single byte to a UTF16 decoder instantiated with UseBOM or ExpectBOM to trigger an infinite loop if the String function on the Decoder is called, or the Decoder is passed to golang.org/x/text/transform.String.","aliases":["GHSA-5rcv-m4m3-hfh7","GO-2020-0015"],"modified":"2026-03-14T10:11:44.224813Z","published":"2020-06-17T20:15:09.993Z","related":["ALSA-2020:4694","CGA-36h4-wcvc-55j4"],"references":[{"type":"WEB","url":"https://groups.google.com/forum/#%21topic/golang-announce/bXVeAmGOqz0"},{"type":"WEB","url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/TACQFZDPA7AUR6TRZBCX2RGRFSDYLI7O/"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/golang/text","events":[{"introduced":"0"},{"fixed":"23ae387dee1f90d29a23c0e87ee0b46038fbed0e"}],"database_specific":{"versions":[{"introduced":"0"},{"fixed":"0.3.3"}]}}],"versions":["v0.1.0","v0.2.0","v0.3.0","v0.3.1","v0.3.2"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2020-14040.json","unresolved_ranges":[{"events":[{"introduced":"0"},{"last_affected":"32"}]}]}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"}]}