CVE-2020-14040 golang.org/x/text Infinite loop
HighCVSS 7.5
EPSS 1.9%
- Published
- Updated
- Exploit status
- No public exploit known
- Technology
- UbuntuDebian
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.
Upgrade path
10 packages: 7 fixed, 2 with no fix yet.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| ubuntu/golang-x-text(Ubuntu 16.04) | = 0+git20151019.0fe7e68-0ubuntu1; = 0+git20151217.cf49866-0ubuntu1; All versions | No fix listed | No fix yet |
| ubuntu/golang-x-text(Ubuntu 20.04) | = 0.3.2-1; All versions | No fix listed | No fix yet |
| debian/golang-golang-x-text(Debian 12) | < 0.3.3-1 | 0.3.3-1 | Fixed |
| debian/golang-golang-x-text(Debian 13) | < 0.3.3-1 | 0.3.3-1 | Fixed |
| debian/golang-golang-x-text(Debian 14) | < 0.3.3-1 | 0.3.3-1 | Fixed |
| golang text | < 0.3.3 | 0.3.3 | Fixed |
| golang.org/x/text(Go) | < 0.3.3 | 0.3.3 | Fixed |
| ubuntu/golang-golang-x-text(Ubuntu 20.04) | < 0.3.2-4ubuntu0.1; = 0.3.2-3; = 0.3.2-4 | 0.3.2-4ubuntu0.1 | Fixed |
| ubuntu/golang-x-text(Ubuntu 18.04) | < 0.0~git20170627.0.6353ef0-1ubuntu2.1; = 0.0~git20170627.0.6353ef0-1ubuntu1; = 0.0~git20170627.0.6353ef0-1ubuntu2 | 0.0~git20170627.0.6353ef0-1ubuntu2.1 | Fixed |
| fedoraproject fedora | = 32 | No fix listed | Versions listed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| golang.org/x/text(Go) | < 0.3.3 | 0.3.3 |
| debian/golang-golang-x-text(Debian:12) | < 0.3.3-1 | 0.3.3-1 |
| debian/golang-golang-x-text(Debian:13) | < 0.3.3-1 | 0.3.3-1 |
| debian/golang-golang-x-text(Debian:14) | < 0.3.3-1 | 0.3.3-1 |
| golang text | < 0.3.3 | 0.3.3 |
| fedoraproject fedora | = 32 | No fix listed |
| ubuntu/golang-x-text(Ubuntu:16.04) | All versions | No fix listed |
| ubuntu/golang-x-text(Ubuntu:16.04) | = 0+git20151019.0fe7e68-0ubuntu1 | No fix listed |
| ubuntu/golang-x-text(Ubuntu:16.04) | = 0+git20151217.cf49866-0ubuntu1 | No fix listed |
| ubuntu/golang-x-text(Ubuntu:18.04) | < 0.0~git20170627.0.6353ef0-1ubuntu2.1 | 0.0~git20170627.0.6353ef0-1ubuntu2.1 |
| ubuntu/golang-x-text(Ubuntu:18.04) | = 0.0~git20170627.0.6353ef0-1ubuntu1 | No fix listed |
| ubuntu/golang-x-text(Ubuntu:18.04) | = 0.0~git20170627.0.6353ef0-1ubuntu2 | No fix listed |
| ubuntu/golang-golang-x-text(Ubuntu:20.04) | < 0.3.2-4ubuntu0.1 | 0.3.2-4ubuntu0.1 |
| ubuntu/golang-golang-x-text(Ubuntu:20.04) | = 0.3.2-3 | No fix listed |
| ubuntu/golang-golang-x-text(Ubuntu:20.04) | = 0.3.2-4 | No fix listed |
| ubuntu/golang-x-text(Ubuntu:20.04) | All versions | No fix listed |
| ubuntu/golang-x-text(Ubuntu:20.04) | = 0.3.2-1 | No fix listed |
References
- nvd.nist.gov third-party-advisory vendor-advisory
- github.com
- github.com patch
- go-review.googlesource.com
- go.dev patch
- go.dev issue-tracking
- go.googlesource.com patch
- groups.google.com issue-tracking
- groups.google.com
- lists.fedoraproject.org
- github.com
- Debian Security Tracker CVE-2020-14040 vendor-advisory
- FEDORA-2020-a55f130272 vendor-advisory
- bugs.debian.org issue-tracking
- ubuntu.com issue-tracking
- ubuntu.com vendor-advisory
- www.cve.org issue-tracking