Live threats

All CVEs / Golang

CVE-2020-14040Golang Text

High 7.5 No auth needed

Priority
60
CVSS 3.1
7.5
EPSS
1.9%
probability of exploitation in 30 days · percentile 80
Auth required
No
Published
Jun 17, 2020
Updated
Jun 17, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-835
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

What happens

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Text.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
Go golang.org/x/text < 0.3.3 0.3.3 go get golang.org/x/text@v0.3.3
Go golang.org/x/text < 0.3.3 0.3.3 go get golang.org/x/text@v0.3.3

Per OSV / GitHub Advisories (GHSA-5rcv-m4m3-hfh7, GO-2020-0015). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
golangtext< 0.3.3
fedoraprojectfedora32

Official advisories

Vendor, CERT and distribution advisories that name this CVE. Original titles.

Official sources

References

Links published by the sources. Open them with care.