CVE-2021-38561: Golang Text
High severity, CVSS 7.5. EPSS: 1.5% probability of exploitation activity in the next 30 days.
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.
What to do
The record states a fixed version for the versions it affects. If you run one, update to it.
- Golang Text, before 0.3.7: fixed in 0.3.7
Affected products
Affected packages
- golang.org/x/text (Go)
Published 2022-12-26. Last modified 2026-06-17.