CVE-2020-14040
Vulnerability Summary
Timeline
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.
CVSS Metrics
- v3.1•HIGH•Score: 7.5CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- v3.1•HIGH•Score: 7.5CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H/E:P/RL:O/RC:C
- v2.0•MEDIUM•Score: 5AV:N/AC:L/Au:N/C:N/I:N/A:P
EPSS Trends
Current EPSS score: 1.84%• Percentile: 78%
Techniques & Countermeasures
- CWE-835•Loop with Unreachable Exit Condition ('Infinite Loop')
The product contains an iteration or loop with an exit condition that cannot be reached, i.e., an infinite loop.
Affected Systems
- chainguard•dex-k8s-authenticator
< 0
- chainguard•k3d
< 5.6.0-r11
- chainguard•k3d-proxy
< 5.6.0-r11
- chainguard•k3d-tools
< 5.6.0-r11
- chainguard•vt-cli
< 1.0.0-r3
- wolfi•k3d
< 5.6.0-r11
- wolfi•k3d-proxy
< 5.6.0-r11
- wolfi•k3d-tools
< 5.6.0-r11
- wolfi•vt-cli
< 1.0.0-r3
- debian•golang-golang-x-text
< 0.3.3-1 | < 0.3.3-1 | < 0.3.3-1 | < 0.3.3-1
- fedoraproject•fedora
32
- golang.org/x•text
< 0.3.3
- golang•text
< 0.3.3
- redhat•buildah
< 0:1.11.6-12.el7_9
- redhat•buildah-debuginfo
< 0:1.11.6-12.el7_9
- redhat•containers-common
< 1:0.1.40-12.el7_9
- redhat•skopeo
< 1:0.1.40-12.el7_9
- redhat•skopeo-debuginfo
< 1:0.1.40-12.el7_9
References (21)
- https://groups.google.com/forum/#%21topic/golang-announce/bXVeAmGOqz0
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/TACQFZDPA7AUR6TRZBCX2RGRFSDYLI7O/
- 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://go.dev/cl/238238
- https://go.dev/issue/39491
- https://go.googlesource.com/text/+/23ae387dee1f90d29a23c0e87ee0b46038fbed0e
- https://groups.google.com/forum/#!topic/golang-announce/bXVeAmGOqz0
- https://groups.google.com/g/golang-announce/c/bXVeAmGOqz0
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/TACQFZDPA7AUR6TRZBCX2RGRFSDYLI7O
- https://access.redhat.com/errata/RHSA-2020:5054
- https://access.redhat.com/security/updates/classification/#moderate
- https://bugzilla.redhat.com/show_bug.cgi?id=1853652
- https://security.access.redhat.com/data/csaf/v2/advisories/2020/rhsa-2020_5054.json
- https://access.redhat.com/security/cve/CVE-2020-14040
- https://www.cve.org/CVERecord?id=CVE-2020-14040
- https://access.redhat.com/errata/RHSA-2020:5055
- https://security.access.redhat.com/data/csaf/v2/advisories/2020/rhsa-2020_5055.json
- https://security-tracker.debian.org/tracker/CVE-2020-14040