{"cve":"CVE-2020-14040","nvd":{"published":"2020-06-17T20:15:09.993","modified":"2026-06-17T02:54:08.710","status":"Modified","description":"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.","cvss_v4":null,"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5},"cwes":["CWE-835"],"references":["https://groups.google.com/forum/#%21topic/golang-announce/bXVeAmGOqz0","https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/TACQFZDPA7AUR6TRZBCX2RGRFSDYLI7O/","https://groups.google.com/forum/#%21topic/golang-announce/bXVeAmGOqz0","https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/TACQFZDPA7AUR6TRZBCX2RGRFSDYLI7O/"],"products":["fedoraproject:fedora","golang:text"],"source":"nvd","synced_at":"2026-10-19T21:05:42.039641217+00:00"},"epss":{"cve":"CVE-2020-14040","score":0.0184,"percentile":0.78986,"date":"2026-10-31"},"kev":null,"osv":[{"id":"GHSA-5rcv-m4m3-hfh7","url":"https://osv.dev/vulnerability/GHSA-5rcv-m4m3-hfh7","summary":"golang.org/x/text Infinite loop","modified":"2026-09-10T03:49:04.603920760Z","packages":[{"ecosystem":"Go","name":"golang.org/x/text","purl":"pkg:golang/golang.org/x/text","ranges":["<0.3.3"],"fixed":["0.3.3"]}]},{"id":"GO-2020-0015","url":"https://osv.dev/vulnerability/GO-2020-0015","summary":"Infinite loop when decoding some inputs in golang.org/x/text","modified":"2026-02-04T03:02:32.031255Z","packages":[{"ecosystem":"Go","name":"golang.org/x/text","purl":"pkg:golang/golang.org/x/text","ranges":["<0.3.3"],"fixed":["0.3.3"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}