
CVE catalog
CVE-2021-38561
golang-golang-x-text: CVE-2021-38561
- Severity
- High · CVSS 7.5
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H - Published
- Source
- [NVD] · [CVE record]
- EPSS
- 1.43% · Oct 25, 2026
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.
Vulnerable and fixed packages
Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.
| Distribution | Package | Release | Version | Status |
|---|---|---|---|---|
| Debian | golang-golang-x-text | sid | 0.43.0-1 | fixed |
| Debian | golang-golang-x-text | forky | 0.43.0-1 | fixed |
| Debian | golang-golang-x-text | trixie | 0.22.0-1 | fixed |
| Debian | golang-golang-x-text | bookworm | 0.7.0-1 | fixed |
| Ubuntu | golang-x-text | 16.04 | 0+git20151019.0fe7e68-0ubuntu1 | vulnerable |
| Ubuntu | golang-x-text | 16.04 | 0+git20151217.cf49866-0ubuntu1 | vulnerable |
| Ubuntu | golang-x-text | 18.04 | 0.0~git20170627.0.6353ef0-1ubuntu1 | vulnerable |
| Ubuntu | golang-x-text | 18.04 | 0.0~git20170627.0.6353ef0-1ubuntu2 | vulnerable |
| Ubuntu | golang-x-text | 18.04 | 0.0~git20170627.0.6353ef0-1ubuntu2.1 | fixed |
| Ubuntu | golang-golang-x-text | 20.04 | 0.3.2-3 | vulnerable |
| Ubuntu | golang-golang-x-text | 20.04 | 0.3.2-4 | vulnerable |
| Ubuntu | golang-golang-x-text | 20.04 | 0.3.2-4ubuntu0.1 | fixed |
| Ubuntu | golang-x-text | 20.04 | 0.3.2-1 | vulnerable |
| Ubuntu | golang-golang-x-text | 22.04 | 0.3.6-1 | vulnerable |
| Ubuntu | golang-golang-x-text | 22.04 | 0.3.7-1 | fixed |
| Opensuse | gitleaks | tumbleweed | 8.18.3-1.1 | fixed |
| Opensuse | cni | tumbleweed | 1.1.2-2.1 | fixed |
Fixed-version evidence
| Distribution | Package | Type | Release | Fixed version | Urgency | Origin | Bugs |
|---|---|---|---|---|---|---|---|
| Debian | golang-golang-x-text | source | sid | 0.3.7-1 | not yet assigned | Not reported | Not reported |
| Debian | golang-golang-x-text | source | forky | 0.3.7-1 | not yet assigned | Not reported | Not reported |
| Debian | golang-golang-x-text | source | trixie | 0.3.7-1 | not yet assigned | Not reported | Not reported |
| Debian | golang-golang-x-text | source | bookworm | 0.3.7-1 | not yet assigned | Not reported | Not reported |
| Ubuntu | golang-x-text | deb | 18.04 | 0.0~git20170627.0.6353ef0-1ubuntu2.1 | Not reported | UBUNTU-CVE-2021-38561 | Not reported |
| Ubuntu | golang-golang-x-text | deb | 20.04 | 0.3.2-4ubuntu0.1 | Not reported | UBUNTU-CVE-2021-38561 | Not reported |
| Ubuntu | golang-golang-x-text | deb | 22.04 | 0.3.7-1 | Not reported | UBUNTU-CVE-2021-38561 | Not reported |
| Opensuse | gitleaks | rpm | tumbleweed | 8.18.3-1.1 | Not reported | OPENSUSE-SU-2024:14015-1 | Not reported |
| Opensuse | cni | rpm | tumbleweed | 1.1.2-2.1 | Not reported | OPENSUSE-SU-2024:12599-1 | Not reported |
OpenFactory catalog packages
[openSUSE Tumbleweed]
- [gitleaks-bash-completion]Unknown
Source package: [gitleaks]
Details (1)
8.30.1-1.4· noarch · tumbleweedUnknown · Fixed:
8.18.3-1.1Version impact unknown
dsa · gitleaks · opensuse · tumbleweed
- [gitleaks-fish-completion]Unknown
Source package: [gitleaks]
Details (1)
8.30.1-1.4· noarch · tumbleweedUnknown · Fixed:
8.18.3-1.1Version impact unknown
dsa · gitleaks · opensuse · tumbleweed
- [gitleaks-zsh-completion]Unknown
Source package: [gitleaks]
Details (1)
8.30.1-1.4· noarch · tumbleweedUnknown · Fixed:
8.18.3-1.1Version impact unknown
dsa · gitleaks · opensuse · tumbleweed
- [cni]Fixed
Source package: [cni]
Details (1)
1.3.0-1.7· x86_64 · tumbleweedFixed · Fixed:
1.1.2-2.1dsa · cni · opensuse · tumbleweed
- [gitleaks]Fixed
Source package: [gitleaks]
Details (1)
8.30.1-1.4· x86_64 · tumbleweedFixed · Fixed:
8.18.3-1.1dsa · gitleaks · opensuse · tumbleweed
[Debian 12 (Bookworm)]
- [golang-golang-x-text-dev]Fixed
Source package: [golang-golang-x-text]
Details (4)
0.7.0-1· all · bookwormFixed · Fixed:
0.3.7-1dsa · golang-golang-x-text · debian · bookworm; dsa · golang-golang-x-text · debian · 12
0.7.0-1· all · bookwormFixed · Fixed:
0.3.7-1dsa · golang-golang-x-text · debian · bookworm; dsa · golang-golang-x-text · debian · 12
0.16.0-1~bpo12+1· all · bookworm-backportsFixed · Fixed:
0.3.7-1dsa · golang-golang-x-text · debian · bookworm; dsa · golang-golang-x-text · debian · 12
0.16.0-1~bpo12+1· all · bookworm-backportsFixed · Fixed:
0.3.7-1dsa · golang-golang-x-text · debian · bookworm; dsa · golang-golang-x-text · debian · 12
[Debian 13 (Trixie)]
- [golang-golang-x-text-dev]Fixed
Source package: [golang-golang-x-text]
Details (4)
0.22.0-1· all · trixieFixed · Fixed:
0.3.7-1dsa · golang-golang-x-text · debian · 13
0.22.0-1· all · trixieFixed · Fixed:
0.3.7-1dsa · golang-golang-x-text · debian · 13
0.36.0-1~bpo13+1· all · trixie-backportsFixed · Fixed:
0.3.7-1dsa · golang-golang-x-text · debian · 13
0.36.0-1~bpo13+1· all · trixie-backportsFixed · Fixed:
0.3.7-1dsa · golang-golang-x-text · debian · 13
Observed:
References
- [https://ftp.suse.com/pub/projects/security/csaf/opensuse-su-2024_12599-1.json]
- [https://osv.dev/vulnerability/DEBIAN-CVE-2021-38561]
- [https://osv.dev/vulnerability/UBUNTU-CVE-2021-38561]
- [https://osv.dev/vulnerability/openSUSE-SU-2024:12599-1]
- [https://osv.dev/vulnerability/openSUSE-SU-2024:14015-1]
- [https://security-tracker.debian.org/tracker/CVE-2021-38561]
- [https://security.access.redhat.com/data/csaf/v2/vex/2021/cve-2021-38561.json]
- [https://wid.cert-bund.de/.well-known/csaf/white/2022/wid-sec-w-2022-0515.json]
[CERT-Bund public advisories] · [Debian Security Tracker] · [FIRST EPSS] · [OSV Package Vulnerability Database] · [Red Hat security advisories and VEX] · [SUSE security advisories and VEX]