CVE-2021-38561
HIGH7.5EPSS 0.05%Out-of-bounds read in golang.org/x/text/language
Published: 12/26/2022Modified: 4/28/2026
Also known as:GHSA-ppp9-7jff-5vj2RHSA-2023:0407CGA-rxmv-qq37-m2jcDEBIAN-CVE-2021-38561GO-2021-0113RHBA-2023:1649
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.
Affected packages (3)
- Debian/golang-golang-x-textfrom 0
- Go/golang.org/x/textfrom 0, < 0.3.7
- Go/golang.org/x/textfrom 0, < 0.3.7
CVSS scores
| Source | Version | Severity | Vector |
|---|---|---|---|
| osv | CVSS 3.1 | HIGH7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
References (8)
- ADVISORYhttps://nvd.nist.gov/vuln/detail/CVE-2021-38561
- ADVISORYhttps://security-tracker.debian.org/tracker/CVE-2021-38561
- WEBhttps://deps.dev/advisory/OSV/GO-2021-0113
- WEBhttps://go.dev/cl/340830
- WEBhttps://go.googlesource.com/text/+/383b2e75a7a4198c42f8f87833eefb772868a56f
- WEBhttps://groups.google.com/g/golang-announce
- WEBhttps://pkg.go.dev/golang.org/x/text/language
- WEBhttps://pkg.go.dev/vuln/GO-2021-0113