# CVE-2022-32149: Denial of service via crafted Accept-Language header in golang.org/x/text/language

> An attacker can cause a denial of service by sending a crafted Accept-Language header that consumes excessive CPU time during parsing.

- **Severity:** High 7.5 (`CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`)
- **Exploited in the wild:** Not known
- **Login needed:** Not needed
- **Attackable:** Over the internet
- **Victim action needed:** Not needed
- **Fix available:** Yes
- **Published:** 14 Oct 2022
- **Updated:** 15 May 2025
- **Also known as:** AZL-31972, AZL-33565, AZL-33572, AZL-33575, AZL-33583, AZL-33586, AZL-33589, AZL-33598, AZL-33605, AZL-33608, AZL-33628, AZL-33632, AZL-33643, AZL-33646, AZL-34839, AZL-34903, AZL-35016, AZL-35041, AZL-35285, AZL-37089, AZL-39609, AZL-43735, AZL-43954, AZL-43963, AZL-44613, AZL-45108, AZL-45162, AZL-66915, CLEANSTART-2024-IK84393, CLEANSTART-2026-CA06112, CLEANSTART-2026-PS41921, DEBIAN-CVE-2022-32149, GHSA-69ch-w2m2-3vjp, GO-2022-1059, MINI-4jw7-p4jv-m4c4, OESA-2024-1527, OESA-2024-1528, RHSA-2024:1994, UBUNTU-CVE-2022-32149, openSUSE-SU-2024:12426-1

## What is CVE-2022-32149?

CVE-2022-32149 is a high-severity denial of service vulnerability in golang.org/x/text/language, published on 14 Oct 2022. An attacker can exploit it over the internet without logging in, with no action from the victim.

### Official description

An attacker may cause a denial of service by crafting an Accept-Language header which ParseAcceptLanguage will take significant time to parse.

Weakness: CWE-772 (Missing Release of Resource after Effective Lifetime)

## Which versions are affected by CVE-2022-32149?

3 open source packages ship an affected version, including golang.org/x/text. It affects 1 product.


| Package | Ecosystem | Affected | Fixed in |
| --- | --- | --- | --- |
| `golang.org/x/text` | Go | All versions | 0.3.8 |
| `golang.org/x/text` | Go | All versions | 0.3.8 |
| `golang.org/x/text` | Go | All versions | 0.3.8 |
| `aardvark-dns` | Red Hat:rhel_eus:8.6::appstream | All versions | 2:1.0.1-40.module+el8.6.0+21266+3e24c7b3 |
| `buildah` | Red Hat:rhel_eus:8.6::appstream | All versions | 1:1.26.2-1.module+el8.6.0+21266+3e24c7b3 |
| `buildah-debuginfo` | Red Hat:rhel_eus:8.6::appstream | All versions | 1:1.26.2-1.module+el8.6.0+21266+3e24c7b3 |
| `buildah-debugsource` | Red Hat:rhel_eus:8.6::appstream | All versions | 1:1.26.2-1.module+el8.6.0+21266+3e24c7b3 |
| `buildah-tests` | Red Hat:rhel_eus:8.6::appstream | All versions | 1:1.26.2-1.module+el8.6.0+21266+3e24c7b3 |
| `buildah-tests-debuginfo` | Red Hat:rhel_eus:8.6::appstream | All versions | 1:1.26.2-1.module+el8.6.0+21266+3e24c7b3 |
| `cockpit-podman` | Red Hat:rhel_eus:8.6::appstream | All versions | 0:49.1-1.module+el8.6.0+21266+3e24c7b3 |
| `conmon` | Red Hat:rhel_eus:8.6::appstream | All versions | 2:2.1.4-1.module+el8.6.0+21266+3e24c7b3 |
| `conmon-debuginfo` | Red Hat:rhel_eus:8.6::appstream | All versions | 2:2.1.4-1.module+el8.6.0+21266+3e24c7b3 |
| `conmon-debugsource` | Red Hat:rhel_eus:8.6::appstream | All versions | 2:2.1.4-1.module+el8.6.0+21266+3e24c7b3 |
| `container-selinux` | Red Hat:rhel_eus:8.6::appstream | All versions | 2:2.189.0-1.module+el8.6.0+21266+3e24c7b3 |
| `containernetworking-plugins` | Red Hat:rhel_eus:8.6::appstream | All versions | 1:1.1.1-4.module+el8.6.0+21266+3e24c7b3 |
| `containernetworking-plugins-debuginfo` | Red Hat:rhel_eus:8.6::appstream | All versions | 1:1.1.1-4.module+el8.6.0+21266+3e24c7b3 |
| `containernetworking-plugins-debugsource` | Red Hat:rhel_eus:8.6::appstream | All versions | 1:1.1.1-4.module+el8.6.0+21266+3e24c7b3 |
| `containers-common` | Red Hat:rhel_eus:8.6::appstream | All versions | 2:1-40.module+el8.6.0+21266+3e24c7b3 |
| `crit` | Red Hat:rhel_eus:8.6::appstream | All versions | 0:3.15-3.module+el8.6.0+21266+3e24c7b3 |
| `criu` | Red Hat:rhel_eus:8.6::appstream | All versions | 0:3.15-3.module+el8.6.0+21266+3e24c7b3 |
| `criu-debuginfo` | Red Hat:rhel_eus:8.6::appstream | All versions | 0:3.15-3.module+el8.6.0+21266+3e24c7b3 |
| `criu-debugsource` | Red Hat:rhel_eus:8.6::appstream | All versions | 0:3.15-3.module+el8.6.0+21266+3e24c7b3 |
| `criu-devel` | Red Hat:rhel_eus:8.6::appstream | All versions | 0:3.15-3.module+el8.6.0+21266+3e24c7b3 |
| `criu-libs` | Red Hat:rhel_eus:8.6::appstream | All versions | 0:3.15-3.module+el8.6.0+21266+3e24c7b3 |
| `criu-libs-debuginfo` | Red Hat:rhel_eus:8.6::appstream | All versions | 0:3.15-3.module+el8.6.0+21266+3e24c7b3 |
| `crun` | Red Hat:rhel_eus:8.6::appstream | All versions | 0:1.5-1.module+el8.6.0+21266+3e24c7b3 |
| `crun-debuginfo` | Red Hat:rhel_eus:8.6::appstream | All versions | 0:1.5-1.module+el8.6.0+21266+3e24c7b3 |
| `crun-debugsource` | Red Hat:rhel_eus:8.6::appstream | All versions | 0:1.5-1.module+el8.6.0+21266+3e24c7b3 |
| `fuse-overlayfs` | Red Hat:rhel_eus:8.6::appstream | All versions | 0:1.9-1.module+el8.6.0+21266+3e24c7b3 |
| `fuse-overlayfs-debuginfo` | Red Hat:rhel_eus:8.6::appstream | All versions | 0:1.9-1.module+el8.6.0+21266+3e24c7b3 |
| `fuse-overlayfs-debugsource` | Red Hat:rhel_eus:8.6::appstream | All versions | 0:1.9-1.module+el8.6.0+21266+3e24c7b3 |
| `libslirp` | Red Hat:rhel_eus:8.6::appstream | All versions | 0:4.4.0-1.module+el8.6.0+21266+3e24c7b3 |
| `libslirp-debuginfo` | Red Hat:rhel_eus:8.6::appstream | All versions | 0:4.4.0-1.module+el8.6.0+21266+3e24c7b3 |
| `libslirp-debugsource` | Red Hat:rhel_eus:8.6::appstream | All versions | 0:4.4.0-1.module+el8.6.0+21266+3e24c7b3 |
| `libslirp-devel` | Red Hat:rhel_eus:8.6::appstream | All versions | 0:4.4.0-1.module+el8.6.0+21266+3e24c7b3 |
| `netavark` | Red Hat:rhel_eus:8.6::appstream | All versions | 2:1.0.1-40.module+el8.6.0+21266+3e24c7b3 |
| `oci-seccomp-bpf-hook` | Red Hat:rhel_eus:8.6::appstream | All versions | 0:1.2.6-1.module+el8.6.0+21266+3e24c7b3 |
| `oci-seccomp-bpf-hook-debuginfo` | Red Hat:rhel_eus:8.6::appstream | All versions | 0:1.2.6-1.module+el8.6.0+21266+3e24c7b3 |
| `oci-seccomp-bpf-hook-debugsource` | Red Hat:rhel_eus:8.6::appstream | All versions | 0:1.2.6-1.module+el8.6.0+21266+3e24c7b3 |
| `podman` | Red Hat:rhel_eus:8.6::appstream | All versions | 2:4.2.0-2.module+el8.6.0+21674+8010760f |

Products: Golang Text.

## How do I fix CVE-2022-32149?

Upgrade golang.org/x/text to 0.3.8 or later.

## Is CVE-2022-32149 being exploited?

There is no known exploitation of CVE-2022-32149 in the wild and no public exploit code.

## Other vulnerabilities in golang.org/x/text/language

- [CVE-2021-38561](https://insights.sbomify.com/CVE-2021-38561/): golang.org/x/text/language Out-of-bounds Read vulnerability (high 7.5)
- [CVE-2020-28852](https://insights.sbomify.com/CVE-2020-28852/): Denial of service in n/a (high 7.5)

## Fix prompt for AI coding agents

```text
Check this codebase for CVE-2022-32149 and fix it if it is affected.

What it is: CVE-2022-32149 is a high-severity denial of service vulnerability in golang.org/x/text/language, published on 14 Oct 2022. An attacker can exploit it over the internet without logging in, with no action from the victim.
Exploitation: There is no known exploitation of CVE-2022-32149 in the wild and no public exploit code.

Affected packages and fixed versions:
- golang.org/x/text (Go): affected all versions; fixed in 0.3.8
- golang.org/x/text (Go): affected all versions; fixed in 0.3.8
- golang.org/x/text (Go): affected all versions; fixed in 0.3.8

Task:
1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.
2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.
3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.
4. Run the tests and summarise what changed and why.
5. If nothing in the project is affected, say so and change nothing.

Reference: https://insights.sbomify.com/CVE-2022-32149/ (Markdown: https://insights.sbomify.com/CVE-2022-32149/index.md)
```

## Sources

- CVE record: https://www.cve.org/CVERecord?id=CVE-2022-32149
- NVD: https://nvd.nist.gov/vuln/detail/CVE-2022-32149
- OSV: https://osv.dev/vulnerability/CVE-2022-32149

---
From sbomify Insights: https://insights.sbomify.com/CVE-2022-32149/
Summaries are generated and may contain mistakes; the official description above is the record.
