VDB

CVE-2020-14040

CVE-2020-14040 PUBLISHED CVSS 7.5 HIGH

golang.org/x/text Infinite loop

Reported by mitre · Published June 17, 2020

golang.org/x/text is fixed in v0.3.3 and 0.3.3 (Go Modules)

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.

Fixed versions

Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.

PackageEcosystemFixed in
golang.org/x/textGo Modulesv0.3.3, 0.3.3
golang.org/x/text/encoding/unicodeGo Modules0.3.3
golang-binAmazon Linux1.13.15-1.amzn2.0.1
golangAmazon Linux1.13.15-1.amzn2.0.1
vt-cliChainguard1.0.0-r3
vt-cliWolfi1.0.0-r3
k3dChainguard5.6.0-r11
golang-srcAmazon Linux1.13.15-1.amzn2.0.1
golang-testsAmazon Linux1.13.15-1.amzn2.0.1
golang-miscAmazon Linux1.13.15-1.amzn2.0.1
golang-raceAmazon Linux1.13.15-1.amzn2.0.1
k3dWolfi5.6.0-r11

4 more packages have a fixed version. See every fix in Lookup.

Risk scores

CVSS 3.1
7.5
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Affected products

VendorProductVersions
n/an/an/a
amazon:2golang-bin0
amazon:2golang0
chainguardvt-cli0
wolfivt-cli0
chainguardk3d0
amazon:2golang-src0
golang.orgx/text0
amazon:2golang-tests0
amazon:2golang-misc0
amazon:2golang-race0
chainguarddex-k8s-authenticator*
golang.orgx/text/encoding/unicode0
wolfik3d0
amazon:2golang-docs0
golangtext
n/an/a*

Timeline

  • Jun 17, 2020 CVE Published
  • Apr 14, 2021 EPSS Score (30 in total, the first dated here)
  • Mar 6, 2026 Distribution Patch (37 in total, the first dated here)
  • Mar 6, 2026 Security Advisory (40 in total, the first dated here)
  • Sep 5, 2026 Coalition ESS Score

Query this with the API

The same record, from the CLI:

vulnetix vdb vuln CVE-2020-14040
vulnetix vdb fixes CVE-2020-14040

Or with curl, using the org id and key from your account page:

curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
  "https://api.vdb.vulnetix.com/v2/vuln/CVE-2020-14040/fixes/registry"

The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›