CVE-2022-27664 — Vulnerability in golang.org/x/net — CVE Details
golang.org/x/net/http2 Denial of Service vulnerability
What Should I Do?
Address in Next Maintenance Window
Low exploitation probability (2.72%). 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-27664 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
In net/http in Go before 1.18.6 and 1.19.x before 1.19.1, attackers can cause a denial of service because an HTTP/2 connection can hang during closing if shutdown were preempted by a fatal error.
Advisory Timeline
- First published September 7, 2022 (1541 days ago).
- Last revised September 10, 2026 — 1464 days after initial publication.
Remediation
Upgrade to the fixed version using your package manager.
go get golang.org/x/net@v0.0.0-20220906165146-f3363e06e74c
go get golang.org/x/net/http2@v0.0.0-20220906165146-f3363e06e74c
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.0.0-20220906165146-f3363e06e74c |
| golang.org/x/net/http2 Go · Affected: All versions | 0.0.0-20220906165146-f3363e06e74c |
CVSS Score Breakdown
What the CVSS (Common Vulnerability Scoring System) 7.5 score means for each attack dimension.
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
References
- https://nvd.nist.gov/vuln/detail/CVE-2022-27664ADVISORY
- https://cs.opensource.google/go/x/netPACKAGE
- https://go.dev/cl/428735WEB
- https://go.dev/issue/54658WEB
- https://groups.google.com/g/golang-announceWEB
- https://groups.google.com/g/golang-announce/c/x49AQzIVX-sWEB
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/JXKTHIGE5F576MAPFYCIJXNRGBSPISUFWEB
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/TXS2OQ57KZC5XZKK5UW4SYKPVQAHIOJXWEB
- https://pkg.go.dev/vuln/GO-2022-0969WEB
- https://security.gentoo.org/glsa/202209-26WEB
- https://security.netapp.com/advisory/ntap-20220923-0004WEB
Frequently Asked Questions
- What is CVE-2022-27664?
- golang.org/x/net/http2 Denial of Service vulnerability. This vulnerability has been assigned a severity rating of HIGH (CVSS score: 7.5/10).
- How do I check if my project is affected by CVE-2022-27664?
- CVE-2022-27664 affects golang.org/x/net and golang.org/x/net/http2. It has a 2.7% probability of exploitation within 30 days (EPSS score). Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2022-27664 and 200,000+ other known vulnerabilities.
Severity & Exploitability
Significant impact if exploited, or exploitable with modest effort.
This places it in the top quartile of EPSS-scored vulnerabilities — 86.8% 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-2023-45288MEDIUM
net/http, x/net/http2: close connections when receiving too many headers
- CVE-2022-41717MEDIUM
golang.org/x/net/http2 vulnerable to possible excessive memory growth
- 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
- 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