HTTP/2 Rapid Reset (CVE-2023-44487): the stream cancellation DDoS
In August 2023 Google, Cloudflare and Amazon saw denial-of-service attacks larger than any they had seen before; Google measured a peak above 398 million requests per second. The attackers used a feature of the HTTP/2 protocol itself: a client may cancel a request right after sending it. On 2023-10-10 the vendors disclosed the technique as CVE-2023-44487, and CISA added it to the KEV catalog the same day.
What broke
HTTP/2 sends many requests ("streams") over one TCP connection. The server announces how many streams may be open at the same time, typically around 100. That limit was meant to bound the work one connection can cause.
A client can cancel a stream at any time with a RST_STREAM frame. The protocol does not require the client to wait for the server, and a cancelled stream no longer counts against the limit.
The CVE record: "The HTTP/2 protocol allows a denial of service (server resource consumption) because request cancellation can reset many streams quickly, as exploited in the wild in August through October 2023."
How the attack worked
The attacker sends a request and cancels it at once, then the next one, and so on, on many connections. The open-stream limit is never reached, because every stream is cancelled right away. The number of requests per connection is then bounded by bandwidth, not by round trips.
The server still does work for each request: allocating a stream, decompressing headers, parsing the request and routing it. A reverse proxy may even forward it to a backend before it processes the cancellation. The client spends almost nothing, and since the requests are cancelled, the server does not send responses that would use the bandwidth of the attacker.
Google also described a variant that opens a batch of streams, waits, cancels them and opens the next batch, to get around defences that only count resets per second.
The CVSS v3.1 score from CISA is 7.5 (AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H): availability only, no data loss.
Who was affected
Every HTTP/2 server implementation had to be checked, because the behaviour follows from the protocol. Each server and library shipped its own fix.
Go fixed it in net/http and golang.org/x/net/http2 as CVE-2023-39325, in Go 1.20.10 and 1.21.3 and in golang.org/x/net 0.17.0. The fixed server bounds the number of running handlers to the stream limit (250 by default) and closes connections whose queue grows too long. Go programs embed the standard library, so every Go server (Caddy, Traefik, your own services) needed a rebuild with a fixed Go version.
nginx 1.25.3 (2023-10-24) "improved detection of misbehaving clients when using HTTP/2".
The CVE record links to more than a hundred vendor notices and fixes, among them Apache Tomcat, Apache Traffic Server and Microsoft. Distribution packages carry the fixes under their own version numbers; check the tracker of your distribution for CVE-2023-44487 and the server package.
How to check a server today
Check whether a site speaks HTTP/2:
curl -s --http2 -o /dev/null -w '%{http_version}\n' https://your-site.example/
2 means HTTP/2. Then check that the server software is current:
nginx -v
apache2 -v || httpd -v
caddy version
For Go programs, check the Go version they were built with. With a Go toolchain:
go version /usr/bin/caddy
Container images often contain Go binaries that the package manager does not know about. Image scanners that read Go build information report the version of the Go standard library in each binary; reading a Trivy report shows where it appears.
If you cannot update a server soon, turn off HTTP/2 for that service, or put it behind a CDN or proxy that has the fix.
How it was fixed
The fixes leave the protocol as it is. Fixed servers track how many streams a client cancels, cap the work in progress per connection, and close connections that cancel too much.
What to take from it
No single program had a bug. The weakness was a protocol feature, and every implementation had to add limits.
A fixed Go compiler does nothing for binaries already built. After Go security releases, rebuild Go programs and update the images that contain them.
KEV lists denial-of-service bugs as well as remote code execution, and a public web service is a target for them.
Sources
- CVE-2023-44487 record (description, CVSS from CISA ADP)
- Google Cloud: How it works, the novel HTTP/2 Rapid Reset DDoS attack (mechanism, 398 million requests per second, variant)
- CVE-2023-39325 record and GO-2023-2102 (Go fixed versions, 250 streams default)
- nginx CHANGES, 1.25.3
- CISA KEV catalog, version 2026.11.25 (added 2023-10-10)
Check your servers every day
The Vulnpocalypse agent reports the packages and settings of a server once a day, and the digest lists what to fix, most urgent first.