CVE-2021-38561: golang text Out-of-bounds Read
Vulnerability summary
CVE-2021-38561 is a high (CVSS 7.5) Out-of-bounds Read vulnerability in golang text. EPSS estimates a 1.48% chance of exploitation in the next 30 days, higher than 74% of scored vulnerabilities.
Severe, CVSS 7.5 (CVE.org); no exploitation reported by the 5 checked sources; EPSS 1% (FIRST, 03-11-2026)
Source freshness unavailable
How is this decided?Advisory lineage
Upstream 0 · Downstream 4 · Related 14Timeline
- 26-12-2022PublishedVulnerability first disclosed.
- 14-04-2025Last modifiedVulnerability information updated.
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 metrics
8 scores · 8 sources · 1 version- OSV · UbuntuEcosystem advisory · calculated7.5HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- OSV · DebianEcosystem advisory · calculated7.5HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- OSV · WolfiEcosystem advisory · calculated7.5HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- OSV · GoEcosystem advisory · calculated7.5HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- OSV · ChainguardEcosystem advisory · calculated7.5HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- NVDNIST7.5HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- OSV · AlpineEcosystem advisory · calculated7.5HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
EPSS trend
Probability
1.48%
Chance of exploitation in the next 30 days
Percentile
74%
Versus all other CVEs
30-day change
Increase +0.12 pp
From 1.37% on 04-10-2026
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root causeAffected systems
Known conditions: network-reachable, no authentication, no user interaction (CVSS vector). Other conditions: not stated in public data.
Chainguard12 products
- dex-k8s-authenticatorAll versions (No fix recorded)
- dynamic-localpv-provisioner< 3.4.1-r3
- dynamic-localpv-provisioner-fips< 3.5.0-r0
- gitleaks< 8.18.2-r1
- hey< 0.1.4-r3
Wolfi8 products
- dynamic-localpv-provisioner< 3.4.1-r3
- gitleaks< 8.18.2-r1
- hey< 0.1.4-r3
- k3d< 5.6.0-r11
- k3d-proxy< 5.6.0-r11
Ubuntu2 products
- golang-golang-x-text< 0.3.2-4ubuntu0.1 | < 0.3.7-1
- golang-x-textAll versions (No fix recorded) | < 0.0~git20170627.0.6353ef0-1ubuntu2.1
Alpine1 product
- git-lfs< 3.1.2-r3
Debian1 product
- golang-golang-x-text< 0.3.7-1
Golang1 product
- text< 0.3.7
Golang.org/x1 product
- text< 0.3.7
Opensuse1 product
- cni&distro=openSUSE Tumbleweed< 1.1.2-2.1
8 vendors · 27 products
References
13 links- go.googlesource.com/text/+/383b2e75a7a4198c42f8f87833eefb772868a56fFIXWEBMailing ListPatchVendor Advisory