What’s Vulnerable › Vulnerabilities
CVE-2022-32149: Denial of service via crafted Accept-Language header in golang.org/x/text/language
- Severity: high (CVSS 7.5 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 1.8% probability of exploitation in the next 30 days
- Public exploit or detection template: none known
- Published: 2022-10-14 · updated 2026-06-17
- Weakness: CWE-772
Description
An attacker may cause a denial of service by crafting an Accept-Language header which ParseAcceptLanguage will take significant time to parse.
Affected products
- golang.org/x/text/language: before 0.3.8 — fixed in 0.3.8
- Golang.Org/X/Text: before 0.3.8 — fixed in 0.3.8
How to fix
Upgrade to a fixed version: golang.org/x/text/language 0.3.8; Golang.Org/X/Text 0.3.8. Check the vendor advisory for mitigations.
References
- https://go.dev/cl/442235
- https://go.dev/issue/56152
- https://groups.google.com/g/golang-announce/c/-hjNw559_tE/m/KlGTfid5CAAJ
- https://pkg.go.dev/vuln/GO-2022-1059
- https://go.dev/cl/442235
- https://go.dev/issue/56152
- https://groups.google.com/g/golang-announce/c/-hjNw559_tE/m/KlGTfid5CAAJ
- https://pkg.go.dev/vuln/GO-2022-1059
- https://security.netapp.com/advisory/ntap-20230203-0006/
Get alerted when CVE-2022-32149 or the next vulnerability affects your stack