CVE-2022-41723: Denial of service via crafted HTTP/2 stream in net/http and golang.org/x/net
Summary
CVE-2022-41723: Denial of service via crafted HTTP/2 stream in net/http and golang.org/x/net. Affects stdlib across 2 version ranges.
< 1.19.6
>= 1.20.0-0, < 1.20.1
Fixed in 1.19.6 or 1.20.1, depending on the release line you run. How to fix ↓
Also tracked for
- golang · Bitnami
- golang-1.15 · Debian:11
- golang.org/x/net · Go
The same CVE-2022-41723 is tracked separately for each ecosystem and vendor. Its fix information is the same; the package and affected versions differ.
Check if this vulnerability affects your application
Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.
No signup required · Results in about 60 seconds
Background
The 'net/http' package in the Go standard library provides a set of functions and types for building HTTP clients and servers. The 'golang.org/x/net' package is a collection of additional networking libraries for Go. These packages are widely used in Go applications for handling HTTP requests and responses. However, a vulnerability has been discovered in these packages that could allow an attacker to cause a denial of service (DoS) by sending a specially crafted HTTP/2 stream. This vulnerability affects versions 0.0.0 to 1.19.6 of the 'net/http' package and versions 0.0.0 to 0.7.0 of the 'golang.org/x/net' package.
Vulnerability Detail
The vulnerability arises from a flaw in the HPACK decoder used in the HTTP/2 implementation of the affected packages. By sending a maliciously crafted HTTP/2 stream, an attacker can trigger excessive CPU consumption in the HPACK decoder. This can lead to a DoS condition, even with a small number of small requests. The impact of this vulnerability is the unavailability of the affected Go application due to high CPU usage, potentially affecting the availability of other services running on the same system.
How To Fix
Latest published version: go1.25.5 as of 22 Oct 2026
go get stdlib@vgo1.25.5
Upgrading to it may include breaking changes; the versions below are the minimum fixed release for this vulnerability.
If you can't move to the latest
The minimum fixed version depends on the release line you run.
-
< 1.19.61.19.6go get stdlib@v1.19.6 -
>= 1.20.0-0, < 1.20.11.20.1go get stdlib@v1.20.1
Tip — Not sure which release line you're on? Vulert can find the fix for the version you are using. Scan free →
Workaround
There is no known workaround for this vulnerability. It is necessary to update the affected packages to the fixed versions.
Conclusion
The vulnerability in the 'net/http' and 'golang.org/x/net' packages can be exploited by sending a specially crafted HTTP/2 stream, leading to excessive CPU consumption and a denial of service. To mitigate this vulnerability, it is crucial to update the affected packages to the fixed versions. For further support on vulnerability remediation, please contact DevNack.com.
See every vulnerability recorded for stdlib →
FAQ
The vulnerability can cause a denial of service (DoS) by consuming excessive CPU resources, leading to the unavailability of the affected Go application.
You can use the Vulert Playground at Vulert Scanner to check if your application is affected by this vulnerability. It requires no signup and uses Gopkg.lock to monitor and alert in real-time for open-source vulnerabilities.
No, only versions 0.0.0 to 1.19.6 of the 'net/http' package and versions 0.0.0 to 0.7.0 of the 'golang.org/x/net' package are affected. It is recommended to update to the fixed versions.
No, there is no known workaround. Updating the affected packages to the fixed versions is necessary.
You can find more information about this vulnerability in the Go vulnerability database at https://pkg.go.dev/vuln/GO-2023-1571.
References
Related vulnerabilities
Recent vulnerabilities recorded for stdlib.