CVE-2021-38561
published high CVSS 3.1 · 7.5golang: out-of-bounds read in golang.org/x/text/language leads to DoS
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| n/a | — | n/an/a | Affected | Not stated | mitre |
| Alpine Linux | edge | git-lfs | Fixed | 3.1.2-r3 | Package fix record |
| SUSE / openSUSE | openSUSE-Tumbleweed | cniaarch64 | Advisory build | 1.1.2-2.1 | OPENSUSE-SU-2024:12599-1 |
| Ubuntu | bionic | golang-golang-x-text-dev | Advisory build | 0.0~git20170627.0.6353ef0-1ubuntu2.1 | USN-5873-1 |
| Alpine Linux | v3.16 | git-lfs | Fixed | 3.1.2-r3 | Package fix record |
| Alpine Linux | v3.17 | git-lfs | Fixed | 3.1.2-r3 | Package fix record |
| Alpine Linux | v3.18 | git-lfs | Fixed | 3.1.2-r3 | Package fix record |
| Alpine Linux | v3.19 | git-lfs | Fixed | 3.1.2-r3 | Package fix record |
Show 16 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Alpine Linux | v3.20 | git-lfs | Fixed | 3.1.2-r3 | Package fix record |
| Alpine Linux | v3.21 | git-lfs | Fixed | 3.1.2-r3 | Package fix record |
| Alpine Linux | v3.22 | git-lfs | Fixed | 3.1.2-r3 | Package fix record |
| Alpine Linux | v3.23 | git-lfs | Fixed | 3.1.2-r3 | Package fix record |
| Alpine Linux | v3.24 | git-lfs | Fixed | 3.1.2-r3 | Package fix record |
| SUSE / openSUSE | openSUSE-Tumbleweed | cnippc64le | Advisory build | 1.1.2-2.1 | OPENSUSE-SU-2024:12599-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | cnis390x | Advisory build | 1.1.2-2.1 | OPENSUSE-SU-2024:12599-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | cnix86_64 | Advisory build | 1.1.2-2.1 | OPENSUSE-SU-2024:12599-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | gitleaksaarch64 | Advisory build | 8.18.3-1.1 | OPENSUSE-SU-2024:14015-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | gitleaksppc64le | Advisory build | 8.18.3-1.1 | OPENSUSE-SU-2024:14015-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | gitleakss390x | Advisory build | 8.18.3-1.1 | OPENSUSE-SU-2024:14015-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | gitleaksx86_64 | Advisory build | 8.18.3-1.1 | OPENSUSE-SU-2024:14015-1 |
| Ubuntu | bionic | golang-x-text | Advisory build | 0.0~git20170627.0.6353ef0-1ubuntu2.1 | USN-5873-1 |
| Ubuntu | bionic | golang-x-text-dev | Advisory build | 0.0~git20170627.0.6353ef0-1ubuntu2.1 | USN-5873-1 |
| Ubuntu | focal | golang-golang-x-text | Advisory build | 0.3.2-4ubuntu0.1 | USN-5873-1 |
| Ubuntu | focal | golang-golang-x-text-dev | Advisory build | 0.3.2-4ubuntu0.1 | USN-5873-1 |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 7.5 / 10
- Severity
- high
- Provider
- CISA-ADP · adp
- Vector string
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| n/a | n/a | n/a (affected) | mitre · cna |
Weaknesses
2- n/a
- CWE-125 CWE-125 Out-of-bounds Read
References
4Provider assertions
3mitre · cna
CISA-ADP · adp
CISA ADP Vulnrichment
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- 9d3631e56570786f6b6f801ead119a8c9df4c60bb17de87dbde184b71cc5cf92
- Ingested
- 23 Sep 2026, 07:55:29 UTC
- Source record
- Official CVE record