The x/text package before 0.3.3 for Go has a vulnerability in encoding/unicode that could lead to the UTF-16…
Historical advisory recorded 24 Oct 2026 16:17:20 UTC. Read the latest advisory.
nvd · CVE-2020-14040
PublishedThe 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.
Read the publisher's advisoryAffected versions, risk and source history
nvd · CVE-2020-14040
PublishedNVD analysis and CPE criteria are source context, not proof that a package or your environment is affected. Complete affected data, logical configurations and SSVC are retained in the original JSON.
Source analysis status: Modified
Weakness classifications: CWE-835
Original publisher date fields
published: 2020-06-17T20:15:09.993
lastModified: 2026-06-17T02:54:08.710
2 source CPE criteria · context only
- cpe:2.3:a:golang:text:*:*:*:*:*:*:*:*
- cpe:2.3:o:fedoraproject:fedora:32:*:*:*:*:*:*:*
The original JSON retains the logical configuration operators, exclusions and version bounds.
No normalized affected-package data is projected for this source revision. The original publisher record may contain additional product and version evidence; this does not establish that a package is unaffected.
Original source record · Cite this exact observation · Complete original publisher JSON