CVE-2021-38561
published 2022-12-26CVE-2021-38561: 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…
PriorityP335high7.5CVSS 3.1
AVNACLPRNUINSUCNINAH
EPSS
1.36%
68.2th percentile
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.
Affected
12 ranges
| Vendor | Product | Version range | Fixed in |
|---|---|---|---|
| debian | golang-golang-x-text | < golang-golang-x-text 0.3.7-1 (bookworm) | golang-golang-x-text 0.3.7-1 (bookworm) |
| golang.org | x_text | >= 0 < 0.3.7 | 0.3.7 |
| golang | text | < 0.3.7 | 0.3.7 |
| msrc | azl3_cni_1.1.2-2_on_azure_linux_3.0 | — | — |
| msrc | azl3_cni_1.1.2-4_on_azure_linux_3.0 | — | — |
| msrc | azl3_containernetworking-plugins_1.6.1-4_on_azure_linux_3.0 | — | — |
| msrc | azl3_keda_2.14.0-1_on_azure_linux_3.0 | — | — |
| msrc | azl3_keda_2.4.0-15_on_azure_linux_3.0 | — | — |
| msrc | azl3_multus_3.8-13_on_azure_linux_3.0 | — | — |
| msrc | azl3_multus_4.0.2-1_on_azure_linux_3.0 | — | — |
| msrc | azure_linux_3.0_arm | — | — |
| msrc | azure_linux_3.0_x64 | — | — |
CVSS provenance
nvdv3.17.5HIGHCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
osv7.5HIGH
vendor_debian7.5HIGH
vendor_msrc7.5HIGH
vendor_redhat7.5HIGH
vendor_ubuntu7.5HIGH
Stop checking back — get the weekly exploitation signal.
Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.
Ubuntu
Go Text vulnerabilities
vendor_ubuntu·2023-02-16·CVSS 7.5
CVE-2020-14040 [HIGH] Go Text vulnerabilities
Title: Go Text vulnerabilities
Summary: Several security issues were fixed in Go Text.
It was discovered that Go Text incorrectly handled certain encodings. An
attacker could possibly use this issue to cause a denial of service. This
issue only affected Ubuntu 18.04 LTS and Ubuntu 20.04 LTS. (CVE-2020-14040)
It was discovered that Go Text incorrectly handled certain BCP 47 language
tags. An attacker could possibly use this issue to cause a denial of service.
CVE-2020-28851, CVE-2020-28852 and CVE-2021-38561 affected only
Ubuntu 18.04 LTS and Ubuntu 20.04 LTS.
(CVE-2020-28851, CVE-2020-28852, CVE-2021-38561, CVE-2022-32149)
Instructions: In general, a standard system update will make all the necessary changes.
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 t
vendor_msrc·2022-12-13·CVSS 7.5
CVE-2021-38561 [HIGH] CWE-125 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 t
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.
FAQ: Is Azure Linux the only Microsoft product that includes this open-source library and is therefore potentially affected by this vulnerability?
One of the main benefits to our customers who choose to use the Azure Linux distro is the commitment to keep it up to date with the most recent and most secure versions of the open source libraries with which the distro is composed. Microsoft is committed to transparency in this work which is why we began publishing CSAF/VEX in October 2025. See this blog post for more information. If impa
Red Hat
golang: out-of-bounds read in golang.org/x/text/language leads to DoS
vendor_redhat·2021-08-12·CVSS 7.5
CVE-2021-38561 [HIGH] CWE-125 golang: out-of-bounds read in golang.org/x/text/language leads to DoS
golang: out-of-bounds read in golang.org/x/text/language leads to DoS
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.
A flaw was found in golang. The language package for go language can panic due to an out-of-bounds read when an incorrectly formatted language tag is being parsed. This flaw allows an attacker to cause applications using this package to parse untrusted input data to crash, leading to a denial of service of the affected component.
Statement: This flaw may be triggered only by accepting untrusted user input to the vulnerable golang's library. The overall DoS attac
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...
vendor_debian·2021·CVSS 7.5
CVE-2021-38561 [HIGH] 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...
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.
Scope: local
bookworm: resolved (fixed in 0.3.7-1)
bullseye: open
forky: resolved (fixed in 0.3.7-1)
sid: resolved (fixed in 0.3.7-1)
trixie: resolved (fixed in 0.3.7-1)
OSV
golang-golang-x-text, golang-x-text vulnerabilities
osv·2023-02-16·CVSS 7.5
CVE-2020-14040 [HIGH] golang-golang-x-text, golang-x-text vulnerabilities
golang-golang-x-text, golang-x-text vulnerabilities
It was discovered that Go Text incorrectly handled certain encodings. An
attacker could possibly use this issue to cause a denial of service. This
issue only affected Ubuntu 18.04 LTS and Ubuntu 20.04 LTS. (CVE-2020-14040)
It was discovered that Go Text incorrectly handled certain BCP 47 language
tags. An attacker could possibly use this issue to cause a denial of service.
CVE-2020-28851, CVE-2020-28852 and CVE-2021-38561 affected only
Ubuntu 18.04 LTS and Ubuntu 20.04 LTS.
(CVE-2020-28851, CVE-2020-28852, CVE-2021-38561, CVE-2022-32149)
OSV
CVE-2021-38561: golang
osv·2022-12-26·CVSS 7.5
CVE-2021-38561 [HIGH] CVE-2021-38561: golang
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.
OSV
golang.org/x/text/language Out-of-bounds Read vulnerability
osv·2022-12-26
CVE-2021-38561 [HIGH] golang.org/x/text/language Out-of-bounds Read vulnerability
golang.org/x/text/language Out-of-bounds Read vulnerability
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.
GHSA
golang.org/x/text/language Out-of-bounds Read vulnerability
ghsa·2022-12-26
CVE-2021-38561 [HIGH] CWE-125 golang.org/x/text/language Out-of-bounds Read vulnerability
golang.org/x/text/language Out-of-bounds Read vulnerability
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.
OSV
Out-of-bounds read in golang.org/x/text/language
osv·2021-10-06
CVE-2021-38561 Out-of-bounds read in golang.org/x/text/language
Out-of-bounds read in golang.org/x/text/language
Due to improper index calculation, an incorrectly formatted language tag can cause Parse to panic via an out of bounds read. If Parse is used to process untrusted user inputs, this may be used as a vector for a denial of service attack.
No detection rules found.
No public exploits indexed.
No writeups or analysis indexed.
https://deps.dev/advisory/OSV/GO-2021-0113https://go.googlesource.com/text/+/383b2e75a7a4198c42f8f87833eefb772868a56fhttps://groups.google.com/g/golang-announcehttps://pkg.go.dev/golang.org/x/text/languagehttps://deps.dev/advisory/OSV/GO-2021-0113https://go.googlesource.com/text/+/383b2e75a7a4198c42f8f87833eefb772868a56fhttps://groups.google.com/g/golang-announcehttps://pkg.go.dev/golang.org/x/text/language
2022-12-26
Published