Out-of-bounds Read in Golang Text
CVE-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 mishandled. If parsing untrusted user input, this can be used as a vector for a denial-of-service attack.
Vulnerability class: Buffer Overflow
Published · last modified .
CVSS v3 metric
CVSS v3 base score 7.5 (High). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H.
EPSS exploit prediction
EPSS: 0.014 (70.8th percentile), scored .
Low probability of exploitation in the next 30 days, but still tracked. 71st percentile — 70.8% of CVEs in the catalogue have a lower EPSS than this one. How to read EPSS.
EPSS over last 30 days · oldest: 0.014 · newest: 0.014 · change: +0.000
Affected products
Weakness classification (CWE)
Public proof-of-concept exploits
References
- groups.google.com/g/golang-announce (Mailing List, Third Party Advisory)
- go.googlesource.com/text/+/383b2e75a7a4198c42f8f87833eefb772868a56f (Patch, Mailing List, Vendor Advisory)
- deps.dev/advisory/OSV/GO-2021-0113 (Patch, Third Party Advisory)
- pkg.go.dev/golang.org/x/text/language (Product, Vendor Advisory)
Frequently asked questions
- What is CVE-2021-38561?
- CVE-2021-38561 is a high-severity vulnerability in Golang Text, classified under Out-of-bounds Read. CVSS score: 7.5/10. Published 2022-12-26.
- How severe is CVE-2021-38561?
- High severity. CVSS v3 base score is 7.5 out of 10.
- Is CVE-2021-38561 known to be exploited?
- 5 public proof-of-concept repositories are indexed. Not currently listed in the CISA KEV catalog.