CVE-2022-32149
Denial of service via crafted Accept-Language header in golang.org/x/text/language
Description
An attacker may cause a denial of service by crafting an Accept-Language header which ParseAcceptLanguage will take significant time to parse.
Severity (CVSS)
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- Attack vector
- network: an attacker can reach the vulnerable part over the network, often from the internet
- Attack complexity
- low: an attack works without special conditions
- Privileges required
- none: the attacker does not need an account
- User interaction
- none: nobody has to click or open anything
- Scope
- unchanged: the damage stays inside the vulnerable component
- Impact
- confidentiality none, integrity none, availability high: what an attacker can read (confidentiality), change (integrity) or stop (availability)
Exploitation
EPSS 1.71%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 77.7% of all scored CVEs. Scores of 26 Nov 2026.
The assessment of CISA (SSVC, 15 May 2025):
- Exploitation
- none: CISA did not find evidence of exploitation or a public proof of concept
- Automatable
- yes: an attacker can automate the attack across many targets
- Technical impact
- partial: limited control or limited data
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
|
golang.org/x/text/language
package
golang.org/x/text/language |
affected before 0.3.8
Other versions: unaffected
|
Is my server affected?
Find the installed version of the package (replace PACKAGE with its name) and compare it with the fixed version of your distribution. Distributions often fix a CVE in their own package version, so the version number of the upstream project can mislead.
Debian, Ubuntu
dpkg -l | grep -i PACKAGE
# packages whose changelog names the CVE (fixed in the installed version)
zgrep -l CVE-2022-32149 /usr/share/doc/*/changelog.Debian.gz
# Ubuntu
pro fix CVE-2022-32149RHEL, Rocky, Alma, Fedora
rpm -q PACKAGE
# lists the advisory while the fix is not installed
dnf updateinfo list --cve CVE-2022-32149Alpine
apk list --installed | grep -i PACKAGEWith Trivy, on the host and for a container image; it prints the installed and the fixed version when a package is affected:
trivy rootfs --scanners vuln / | grep CVE-2022-32149
trivy image --scanners vuln IMAGE | grep CVE-2022-32149
Patchbrief matches the package lists of your Linux servers and containers every day against the Trivy vulnerability database, which covers the packages of Linux distributions and language packages (npm, PyPI, Go, Maven and others), and sends one digest with the command that fixes each problem. Install the agent.
References
Other references
- https://go.dev/issue/56152 go.dev
- https://go.dev/cl/442235 go.dev
- https://groups.google.com/g/golang-announce/c/-hjNw559_tE/m/KlGTfid5CAAJ groups.google.com
- https://pkg.go.dev/vuln/GO-2022-1059 pkg.go.dev
- https://security.netapp.com/advisory/ntap-20230203-0006/ security.netapp.com
Guides
- Find vulnerable Go dependencies with govulncheck Scan Go modules and compiled binaries with govulncheck, read which findings your code calls, fix them with go get, and run the check in CI.
Source: the record CVE-2022-32149 of the CVE List (CVE Program), CVE Terms of Use; the CISA KEV catalog and the CISA ADP container; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.