CVE-2023-45288 — Vulnerability in golang.org/x/net/http2 — CVE Details
net/http, x/net/http2: close connections when receiving too many headers
What Should I Do?
Address in Next Maintenance Window
Low exploitation probability (3.35%). Schedule for your next planned update.
Does your project use an affected golang.org/x/net/http2 version?
Paste your go.sum to check it for CVE-2023-45288 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 may cause an HTTP/2 endpoint to read arbitrary amounts of header data by sending an excessive number of CONTINUATION frames. Maintaining HPACK state requires parsing and processing all HEADERS and CONTINUATION frames on a connection. When a request's headers exceed MaxHeaderBytes, no memory is allocated to store the excess headers, but they are still parsed. This permits an attacker to cause an HTTP/2 endpoint to read arbitrary amounts of header data, all associated with a request which is going to be rejected. These headers can include Huffman-encoded data which is significantly more expensive for the receiver to decode than for an attacker to send. The fix sets a limit on the amount of excess header frames we will process before closing a connection.
Advisory Timeline
- First published April 4, 2024 (966 days ago).
- Last revised September 10, 2026 — 888 days after initial publication.
Remediation
Upgrade to the fixed version using your package manager.
go get golang.org/x/net/http2@v0.23.0
go get net/http@v1.22.2
go get golang.org/x/net@v0.23.0
go get net/http@v1.21.9
After upgrading, scan your dependencies again to confirm the vulnerability is resolved.
Affected Packages (4)
Affects 1 ecosystem: Go (3).
| Package | Fixed In |
|---|---|
| golang.org/x/net/http2 Go · Affected: All versions | 0.23.0 |
| net/http Go · Affected: All versions | 1.22.2 |
| golang.org/x/net Go · Affected: All versions | 0.23.0 |
| net/http Go · Affected: All versions | 1.21.9 |
Vulnerability Classification
Common Weakness Enumeration (CWE) identifiers for this vulnerability type.
- CWE-400Uncontrolled Resource ConsumptionMITRE
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-2023-45288ADVISORY
- https://go.dev/cl/576155WEB
- https://go.dev/issue/65051WEB
- https://groups.google.com/g/golang-announce/c/YgW0sx8mN3MWEB
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/QRYFHIQ6XRKRYBI2F5UESH67BJBQXUPTWEB
- https://nowotarski.info/http2-continuation-flood-technical-detailsWEB
- https://pkg.go.dev/vuln/GO-2024-2687WEB
- https://security.netapp.com/advisory/ntap-20240419-0009WEB
- https://www.kb.cert.org/vuls/id/421644WEB
- https://www.openwall.com/lists/oss-security/2024/04/03/16WEB
- https://www.openwall.com/lists/oss-security/2024/04/05/4WEB
Frequently Asked Questions
- What is CVE-2023-45288?
- net/http, x/net/http2: close connections when receiving too many headers. 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-2023-45288?
- CVE-2023-45288 affects golang.org/x/net/http2, net/http and golang.org/x/net. It has a 3.4% probability of exploitation within 30 days (EPSS score). Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2023-45288 and 200,000+ other known vulnerabilities.
Severity & Exploitability
Exploitation requires specific conditions, or the impact is limited.
This places it in the top quartile of EPSS-scored vulnerabilities — 89.4% of tracked vulnerabilities score at or below it, so it is more likely to be exploited than most of the tracked corpus.
Also Known As
Related CVEs
- CVE-2022-27664HIGH
golang.org/x/net/http2 Denial of Service vulnerability
- CVE-2022-41717MEDIUM
golang.org/x/net/http2 vulnerable to possible excessive memory growth
- CVE-2022-41717
Excessive memory growth 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-2024-45338
Non-linear parsing of case-insensitive content in golang.org/x/net/html
- CVE-2025-22870
HTTP Proxy bypass using IPv6 Zone IDs in golang.org/x/net