# CVE-2022-41717: Excessive memory growth in net/http and golang.org/x/net/http2

> An attacker can cause excessive memory growth in Go servers handling HTTP/2 requests, leading to denial of service.

- **Severity:** Medium 5.3 (`CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L`)
- **Exploited in the wild:** Not known
- **Login needed:** Not needed
- **Attackable:** Over the internet
- **Victim action needed:** Not needed
- **Fix available:** Yes
- **Published:** 8 Dec 2022
- **Updated:** 13 Feb 2025
- **Also known as:** ALSA-2023:2222, AZL-11582, AZL-33568, AZL-33573, AZL-33582, AZL-33617, AZL-33630, AZL-33645, AZL-34276, AZL-34750, AZL-35011, AZL-35113, AZL-35284, AZL-37311, AZL-37374, AZL-43744, AZL-44487, AZL-79004, AZL-98874, BIT-golang-2022-41717, CLEANSTART-2026-KM54068, CLEANSTART-2026-RW27001, DEBIAN-CVE-2022-41717, GHSA-xrjj-mj9h-534m, GO-2022-1144, MGASA-2022-0473, MINI-f353-3g64-mrvh, MINI-w6mc-2q74-3pcv, OESA-2023-1080, OESA-2023-1081, OESA-2023-1082, OESA-2023-1093, RHSA-2023:1179, RHSA-2023:1276, RHSA-2023:2222, UBUNTU-CVE-2022-41717, openSUSE-SU-2024:13299-1

## What is CVE-2022-41717?

CVE-2022-41717 is a medium-severity denial of service vulnerability in Fedoraproject Fedora, published on 8 Dec 2022. An attacker can exploit it over the internet without logging in, with no action from the victim.

### Official description

An attacker can cause excessive memory growth in a Go server accepting HTTP/2 requests. HTTP/2 server connections contain a cache of HTTP header keys sent by the client. While the total number of entries in this cache is capped, an attacker sending very large keys can cause the server to allocate approximately 64 MiB per open connection.

Weakness: CWE-770 (Allocation of Resources Without Limits or Throttling)

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

7 open source packages ship an affected version, including golang.org/x/net, golang and golang.org/x/net/http2. It affects 3 products.


| Package | Ecosystem | Affected | Fixed in |
| --- | --- | --- | --- |
| `golang.org/x/net` | Go | All versions | 0.4.0 |
| `golang.org/x/net` | Go | All versions | 0.4.0 |
| `golang.org/x/net` | Go | All versions | 0.4.0 |
| `golang` | Bitnami | All versions | 1.18.9, 1.19.4 |
| `golang.org/x/net/http2` | Go | All versions | 0.4.0 |
| `golang.org/x/net/http2` | Go | All versions | 0.4.0 |
| `stdlib` | Go | All versions | 1.18.9, 1.19.4 |
| `conmon` | AlmaLinux:9 | All versions | 2:2.1.7-1.el9_2 |
| `conmon` | Red Hat:enterprise_linux:9::appstream | All versions | 2:2.1.7-1.el9_2 |
| `conmon-debuginfo` | Red Hat:enterprise_linux:9::appstream | All versions | 2:2.1.7-1.el9_2 |
| `conmon-debugsource` | Red Hat:enterprise_linux:9::appstream | All versions | 2:2.1.7-1.el9_2 |
| `collectd-libpod-stats` | Red Hat:openstack:16.1::el8 | All versions | 0:1.0.4-3.el8ost |
| `collectd-libpod-stats` | Red Hat:openstack:16.2::el8 | All versions | 0:1.0.4-3.el8ost |
| `openshift-serverless-clients` | Red Hat:serverless:1.0::el8 | All versions | 0:1.6.1-2.el8 |

Products: Fedoraproject Fedora, Golang Go, Golang Http2.

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

Upgrade golang.org/x/net to 0.4.0 or later.

## Is CVE-2022-41717 being exploited?

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

Public exploit code:

- Exploit for CVE-2022-41717 (github_poc): https://github.com/domdom82/h2conn-exploit

## Other vulnerabilities in Fedoraproject Fedora

- [CVE-2024-4577](https://insights.sbomify.com/CVE-2024-4577/): PHP-CGI OS Command Injection (critical 9.8, exploited in the wild)
- [CVE-2021-39226](https://insights.sbomify.com/CVE-2021-39226/): Grafana Authentication Bypass (critical 9.8, exploited in the wild)
- [CVE-2019-5544](https://insights.sbomify.com/CVE-2019-5544/): VMware ESXi and Horizon DaaS OpenSLP Heap-Based Buffer Overflow (critical 9.8, exploited in the wild)
- [CVE-2024-4947](https://insights.sbomify.com/CVE-2024-4947/): Google Chromium V8 Type Confusion (critical 9.6, exploited in the wild)
- [CVE-2024-4671](https://insights.sbomify.com/CVE-2024-4671/): Google Chromium Visuals Use-After-Free (critical 9.6, exploited in the wild)

## Fix prompt for AI coding agents

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

What it is: CVE-2022-41717 is a medium-severity denial of service vulnerability in Fedoraproject Fedora, published on 8 Dec 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-41717 in the wild and no public exploit code.

Affected packages and fixed versions:
- golang.org/x/net (Go): affected all versions; fixed in 0.4.0
- golang.org/x/net (Go): affected all versions; fixed in 0.4.0
- golang.org/x/net (Go): affected all versions; fixed in 0.4.0
- golang (Bitnami): affected all versions; fixed in 1.18.9, 1.19.4
- golang.org/x/net/http2 (Go): affected all versions; fixed in 0.4.0
- golang.org/x/net/http2 (Go): affected all versions; fixed in 0.4.0
- stdlib (Go): affected all versions; fixed in 1.18.9, 1.19.4

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-41717/ (Markdown: https://insights.sbomify.com/CVE-2022-41717/index.md)
```

## Sources

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

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