CVE-2022-41717 — Vulnerability in golang.org/x/net — CVE Details
golang.org/x/net/http2 vulnerable to possible excessive memory growth
What Should I Do?
Address in Next Maintenance Window
Low exploitation probability (5.52%). Schedule for your next planned update.
Does your project use an affected golang.org/x/net version?
Paste your go.sum to check it for CVE-2022-41717 and every other known vulnerability, with CISA KEV and EPSS on each finding. Free with no signup for up to 10 packages, or up to 500 per scan with a free account, which also keeps up to 200 packages in saved projects.
Summary
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.
Advisory Timeline
- First published December 8, 2022 (1449 days ago).
- Last revised September 10, 2026 — 1371 days after initial publication.
Remediation
Upgrade to the fixed version using your package manager.
go get golang.org/x/net@v0.4.0
go get golang.org/x/net/http2@v0.4.0
After upgrading, scan your dependencies again to confirm the vulnerability is resolved.
Affected Packages (2)
Affects 1 ecosystem: Go (2).
| Package | Fixed In |
|---|---|
| golang.org/x/net Go · Affected: All versions | 0.4.0 |
| golang.org/x/net/http2 Go · Affected: All versions | 0.4.0 |
Vulnerability Classification
Common Weakness Enumeration (CWE) identifiers for this vulnerability type.
- CWE-770Allocation of Resources Without LimitsMITRE
CVSS Score Breakdown
What the CVSS (Common Vulnerability Scoring System) 5.3 score means for each attack dimension.
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
References
- https://nvd.nist.gov/vuln/detail/CVE-2022-41717ADVISORY
- https://security.gentoo.org/glsa/202311-09WEB
- https://pkg.go.dev/vuln/GO-2022-1144WEB
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/ZSVEMQV5ROY5YW5QE3I57HT3ITWG5GCVWEB
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/WPEIZ7AMEJCZXU3FEJZMVRNHQZXX5P3IWEB
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/T7N5GV4CHH6WAGX3GFMDD3COEOVCZ4RIWEB
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/REMHVVIBDNKSRKNOTV7EQSB7CYQWOUOUWEB
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/QBKBAZBIOXZV5QCFHZNSVXULR32XJCYDWEB
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/Q52IQI754YAE4XPR4QBRWPIVZWYGZ4FSWEB
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/PW3XC47AUW5J5M2ULJX7WCCL3B2ETLMTWEB
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/PUM4DIVOLJCBK5ZDP4LJOL24GXT3YSIRWEB
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/NQGNAXK3YBPMUP3J4TECIRDHFGW37522WEB
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/KEOTKBUPZXHE3F352JBYNTSNRXYLWD6PWEB
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/CSVIS6MTMFVBA7JPMRAUNKUOYEVSJYSBWEB
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/CHHITS4PUOZAKFIUBQAQZC7JWXMOYE4BWEB
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/ANIOPUXWIHVRA6CEWXCGOMX3YYS6KFHGWEB
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/5RSKA2II6QTD4YUKUNDVJQSRYSFC4VFRWEB
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/56B2FFESRYYP6IY2AZ3UWXLWKZ5IYZN4WEB
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/4SBIUECMLNC572P23DDOKJNKPJVX26SPWEB
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/4BUK2ZIAGCULOOYDNH25JPU6JBES5NF2WEB
- https://groups.google.com/g/golang-announce/c/L_3rmdT0BMU/m/yZDrXjIiBQAJWEB
- https://go.dev/issue/56350WEB
- https://go.dev/cl/455717WEB
- https://go.dev/cl/455635WEB
- https://cs.opensource.google/go/x/netPACKAGE
Frequently Asked Questions
- What is CVE-2022-41717?
- golang.org/x/net/http2 vulnerable to possible excessive memory growth. This vulnerability has been assigned a severity rating of MEDIUM (CVSS score: 5.3/10).
- How do I check if my project is affected by CVE-2022-41717?
- CVE-2022-41717 affects golang.org/x/net and golang.org/x/net/http2. It has a 5.5% probability of exploitation within 30 days (EPSS score). Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2022-41717 and 200,000+ other known vulnerabilities.
Severity & Exploitability
Exploitation requires specific conditions, or the impact is limited.
This places it in the top 10% of EPSS-scored vulnerabilities — 93.6% of tracked vulnerabilities score at or below it, so it is substantially more likely to be exploited than most tracked vulnerabilities.
Also Known As
Related CVEs
- CVE-2022-27664HIGH
golang.org/x/net/http2 Denial of Service vulnerability
- CVE-2023-45288MEDIUM
net/http, x/net/http2: close connections when receiving too many headers
- CVE-2021-44716
Unbounded memory growth in net/http and golang.org/x/net/http2
- CVE-2022-27664
Denial of service in net/http and golang.org/x/net/http2
- CVE-2022-41723
Denial of service via crafted HTTP/2 stream in net/http and golang.org/x/net
- CVE-2023-3978
Improper rendering of text nodes in golang.org/x/net/html
- CVE-2023-39325
HTTP/2 rapid reset can cause excessive work in net/http
- CVE-2023-45288
HTTP/2 CONTINUATION flood in net/http