CVE-2021-38561Out-of-bounds Read in X Text

CWE-125Out-of-bounds Read11 documents8 sources
Severity
7.5HIGHNVD
EPSS
0.1%
top 83.46%
CISA KEV
Not in KEV
Exploit
No known exploits
Timeline
PublishedDec 26
Latest updateFeb 16

Description

golang.org/x/text/language in golang.org/x/text before 0.3.7 can panic with an out-of-bounds read during BCP 47 language tag parsing. Index calculation is mishandled. If parsing untrusted user input, this can be used as a vector for a denial-of-service attack.

CVSS vector

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:HExploitability: 3.9 | Impact: 3.6

Affected Packages2 packages

NVDgolang/text< 0.3.7
Gogolang.org/x_text< 0.3.7

Patches

🔴Vulnerability Details

6
OSV
golang-golang-x-text, golang-x-text vulnerabilities2023-02-16
OSV
CVE-2021-38561: golang2022-12-26
CVEList
CVE-2021-38561: golang2022-12-26
OSV
golang.org/x/text/language Out-of-bounds Read vulnerability2022-12-26
GHSA
golang.org/x/text/language Out-of-bounds Read vulnerability2022-12-26

📋Vendor Advisories

4
Ubuntu
Go Text vulnerabilities2023-02-16
Microsoft
golang.org/x/text/language in golang.org/x/text before 0.3.7 can panic with an out-of-bounds read during BCP 47 language tag parsing. Index calculation is mishandled. If parsing untrusted user input t2022-12-13
Red Hat
golang: out-of-bounds read in golang.org/x/text/language leads to DoS2021-08-12
Debian
CVE-2021-38561: golang-golang-x-text - golang.org/x/text/language in golang.org/x/text before 0.3.7 can panic with an o...2021
CVE-2021-38561 — Out-of-bounds Read in X Text | cvebase