Guides / Famous CVEs

HTTP/2 Rapid Reset (CVE-2023-44487): the stream cancellation DDoS

intermediateUpdated 26 Nov 2026791 words

In August 2023 Google, Cloudflare and Amazon saw denial-of-service attacks far larger than any 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, in plain terms

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 no longer bounded by round trips, only by bandwidth.

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. Fixes came as releases of each server and library:

  • Go (net/http and golang.org/x/net/http2), as CVE-2023-39325: fixed 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".
  • Others: the CVE record links to more than a hundred vendor notices and fixes, among them Apache Tomcat, Apache Traffic Server and Microsoft.

Your distribution packages carry the fixes under their own version numbers; check its tracker 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, the Go version they were built with matters. 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; the guide on reading a Trivy report shows where it appears.

If you cannot update a server soon, the options are limited: 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 do not change the protocol. Servers now track how many streams a client cancels, cap the work in progress per connection, and close connections that cancel too much. The details differ by implementation.

What to take from it

  • A protocol feature can be a vulnerability. No single program had a bug; every implementation had to add limits.
  • Go binaries carry their own fixes. A fixed Go compiler does nothing for binaries already built. Rebuild or update Go programs and images after Go security releases.
  • Denial of service is on KEV too. KEV lists more than remote code execution bugs. A public web service is a target for this kind of attack.

Sources

Check your servers every day

The agent of Patchbrief reports the packages and settings of a server once a day; the digest names what to fix first.

Start free