CVE-2020-14040Golang Text
High 7.5 No auth needed
Follow: this CVE · Golang · Golang Text We alert you by email or Slack (account required).
- 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.
What to do
- Apply the vendor's security update for Text.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How 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)
| Vendor | Product | Versions |
|---|---|---|
| golang | text | < 0.3.3 |
| fedoraproject | fedora | 32 |
Official advisories
- Red Hat Security Advisory: Red Hat OpenShift Service Mesh security update · Red Hat · RHSA-2020:3369 · Nov 23, 2026 Medium
Vendor, CERT and distribution advisories that name this CVE. Original titles.
Official sources
References
Links published by the sources. Open them with care.