Ecosyste.ms: Advisories
An open API service providing security vulnerability metadata for many open source software ecosystems.
Security Advisories: MDE2OlNlY3VyaXR5QWR2aXNvcnlHSFNBLTVyY3YtbTRtMy1oZmg3
golang.org/x/text Infinite loop
Go version v0.3.3 of the x/text package fixes 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.
Specific Go Packages Affected
golang.org/x/text/encoding/unicode
golang.org/x/text/transform
JSON: https://advisories.ecosyste.ms/api/v1/advisories/MDE2OlNlY3VyaXR5QWR2aXNvcnlHSFNBLTVyY3YtbTRtMy1oZmg3
Source: GitHub Advisory Database
Origin: Unspecified
Severity: Moderate
Classification: General
Published: over 3 years ago
Updated: 8 months ago
CVSS Score: 6.7
CVSS vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H/E:P/RL:O/RC:C
EPSS Percentage: 0.00116
EPSS Percentile: 0.46226
Identifiers: GHSA-5rcv-m4m3-hfh7, CVE-2020-14040
References:
- https://nvd.nist.gov/vuln/detail/CVE-2020-14040
- https://github.com/golang/go/issues/39491
- https://github.com/golang/text/commit/23ae387dee1f90d29a23c0e87ee0b46038fbed0e
- https://go-review.googlesource.com/c/text/+/238238
- https://groups.google.com/forum/#!topic/golang-announce/bXVeAmGOqz0
- https://groups.google.com/g/golang-announce/c/bXVeAmGOqz0
- https://go.dev/cl/238238
- https://go.dev/issue/39491
- https://go.googlesource.com/text/+/23ae387dee1f90d29a23c0e87ee0b46038fbed0e
- https://lists.fedoraproject.org/archives/list/[email protected]/message/TACQFZDPA7AUR6TRZBCX2RGRFSDYLI7O
- https://github.com/advisories/GHSA-5rcv-m4m3-hfh7
Blast Radius: 36.5
Affected Packages
go:golang.org/x/text
Dependent packages: 113,820Dependent repositories: 280,468
Downloads:
Affected Version Ranges: < 0.3.3
Fixed in: 0.3.3
All affected versions: 0.1.0, 0.2.0, 0.3.0, 0.3.1, 0.3.2
All unaffected versions: 0.3.3, 0.3.4, 0.3.5, 0.3.6, 0.3.7, 0.3.8, 0.4.0, 0.5.0, 0.6.0, 0.7.0, 0.8.0, 0.9.0, 0.10.0, 0.11.0, 0.12.0, 0.13.0, 0.14.0, 0.15.0, 0.16.0, 0.17.0, 0.18.0, 0.19.0, 0.20.0, 0.21.0