GHSA-qppj-fm5r-hxr3
HTTP/2 Stream Cancellation Attack
At a glance
- Published
- Updated
- CVE
- CVE-2023-44487
- Aliases
- BIT-apisix-2023-44487, BIT-aspnet-core-2023-44487, BIT-contour-2023-44487, BIT-dotnet-2023-44487, BIT-dotnet-sdk-2023-44487, BIT-envoy-2023-44487, BIT-golang-2023-44487, BIT-jenkins-2023-44487, BIT-kong-2023-44487, BIT-nginx-2023-44487, BIT-nginx-gateway-2023-44487, BIT-node-2023-44487, BIT-node-min-2023-44487, BIT-solr-2023-44487, BIT-tomcat-2023-44487, BIT-varnish-2023-44487
- CVSS_V3
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L/E:H
- CVSS_V4
- CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N/E:A
Description
## HTTP/2 Rapid reset attack The HTTP/2 protocol allows clients to indicate to the server that a previous stream should be canceled by sending a RST_STREAM frame. The protocol does not require the client and server to coordinate the cancellation in any way, the client may do it unilaterally. The client may also assume that the cancellation will take effect immediately when the server receives the RST_STREAM frame, before any other data from that TCP connection is processed. Abuse of this feature is called a Rapid Reset attack because it relies on the ability for an endpoint to send a RST_STREAM frame immediately after sending a request frame, which makes the other endpoint start working and then rapidly resets the request. The request is canceled, but leaves the HTTP/2 connection open. The HTTP/2 Rapid Reset attack built on this capability is simple: The client opens a large number of streams at once as in the standard HTTP/2 attack, but rather than waiting for a response to each request stream from the server or proxy, the client cancels each request immediately. The ability to reset streams immediately allows each connection to have an indefinite number of requests in flight. By explicitly canceling the requests, the attacker never exceeds the limit on the number of concurrent open streams. The number of in-flight requests is no longer dependent on the round-trip time (RTT), but only on the available network bandwidth. In a typical HTTP/2 server implementation, the server will still have to do significant amounts of work for canceled requests, such as allocating new stream data structures, parsing the query and doing header decompression, and mapping the URL to a resource. For reverse proxy implementations, the request may be proxied to the backend server before the RST_STREAM frame is processed. The client on the other hand paid almost no costs for sending the requests. This creates an exploitable cost asymmetry between the server and the client. Multiple software artifacts implementing HTTP/2 are affected. This advisory was originally ingested from the `swift-nio-http2` repo advisory and their original conent follows. ## swift-nio-http2 specific advisory swift-nio-http2 is vulnerable to a denial-of-service vulnerability in which a malicious client can create and then reset a large number of HTTP/2 streams in a short period of time. This causes swift-nio-http2 to commit to a large amount of expensive work which it then throws away, including creating entirely new `Channel`s to serve the traffic. This can easily overwhelm an `EventLoop` and prevent it from making forward progress. swift-nio-http2 1.28 contains a remediation for this issue that applies reset counter using a sliding window. This constrains the number of stream resets that may occur in a given window of time. Clients violating this limit will have their connections torn down. This allows clients to continue to cancel streams for legitimate reasons, while constraining malicious actors.
Affected packages
| Package | Versions |
|---|---|
| SwiftURL · github.com/apple/swift-nio-http2 | introduced 0, fixed 1.28.0 |
| Go · golang.org/x/net | introduced 0, fixed 0.17.0 |
| Maven · org.apache.tomcat:tomcat-coyote | introduced 11.0.0-M1, fixed 11.0.0-M12 |
| Maven · org.apache.tomcat:tomcat-coyote | introduced 10.0.0, fixed 10.1.14 |
| Maven · org.apache.tomcat:tomcat-coyote | introduced 9.0.0, fixed 9.0.81 |
| Maven · org.apache.tomcat:tomcat-coyote | introduced 8.5.0, fixed 8.5.94 |
| Maven · org.apache.tomcat.embed:tomcat-embed-core | introduced 11.0.0-M1, fixed 11.0.0-M12 |
| Maven · org.apache.tomcat.embed:tomcat-embed-core | introduced 10.0.0, fixed 10.1.14 |
| Maven · org.apache.tomcat.embed:tomcat-embed-core | introduced 9.0.0, fixed 9.0.81 |
| Maven · org.apache.tomcat.embed:tomcat-embed-core | introduced 8.5.0, fixed 8.5.94 |
| Maven · org.eclipse.jetty.http2:http2-common | introduced 9.3.0, fixed 9.4.53 |
| Maven · org.eclipse.jetty.http2:http2-common | introduced 10.0.0, fixed 10.0.17 |
| Maven · org.eclipse.jetty.http2:http2-common | introduced 11.0.0, fixed 11.0.17 |
| Maven · org.eclipse.jetty.http2:http2-server | introduced 9.3.0, fixed 9.4.53 |
| Maven · org.eclipse.jetty.http2:http2-server | introduced 10.0.0, fixed 10.0.17 |
| Maven · org.eclipse.jetty.http2:http2-server | introduced 11.0.0, fixed 11.0.17 |
| Maven · org.eclipse.jetty.http2:jetty-http2-common | introduced 12.0.0, fixed 12.0.2 |
| Maven · org.eclipse.jetty.http2:jetty-http2-server | introduced 12.0.0, fixed 12.0.2 |
| Maven · com.typesafe.akka:akka-http-core | introduced 0, fixed 10.5.3 |
| Maven · com.typesafe.akka:akka-http-core_2.13 | introduced 0, fixed 10.5.3 |
| Maven · com.typesafe.akka:akka-http-core_2.12 | introduced 0, fixed 10.5.3 |
| Maven · com.typesafe.akka:akka-http-core_2.11 | introduced 0, last affected 10.1.15 |
References
- https://github.com/apple/swift-nio-http2/security/advisories/GHSA-qppj-fm5r-hxr3 WEB
- https://github.com/h2o/h2o/security/advisories/GHSA-2m7v-gc89-fjqf WEB
- https://nvd.nist.gov/vuln/detail/CVE-2023-44487 ADVISORY
- https://github.com/alibaba/tengine/issues/1872 WEB
- https://github.com/apache/apisix/issues/10320 WEB
- https://github.com/akka/akka-http/issues/4323 WEB
- https://github.com/varnishcache/varnish-cache/issues/3996 WEB
- https://github.com/tempesta-tech/tempesta/issues/1986 WEB
- https://github.com/Azure/AKS/issues/3947 WEB
- https://github.com/opensearch-project/data-prepper/issues/3474 WEB
- https://github.com/caddyserver/caddy/issues/5877 WEB
- https://github.com/openresty/openresty/issues/930 WEB
- https://github.com/dotnet/announcements/issues/277 WEB
- https://github.com/eclipse/jetty.project/issues/10679 WEB
- https://github.com/etcd-io/etcd/issues/16740 WEB
- https://github.com/golang/go/issues/63417 WEB
- https://github.com/ninenines/cowboy/issues/1615 WEB
- https://github.com/haproxy/haproxy/issues/2312 WEB
- https://github.com/hyperium/hyper/issues/3337 WEB
- https://github.com/kazu-yamamoto/http2/issues/93 WEB
- https://github.com/junkurihara/rust-rpxy/issues/97 WEB
- https://github.com/microsoft/CBL-Mariner/pull/6381 WEB
- https://github.com/linkerd/website/pull/1695/commits/4b9c6836471bc8270ab48aae6fd2181bc73fd632 WEB
- https://github.com/line/armeria/pull/5232 WEB
- https://github.com/kubernetes/kubernetes/pull/121120 WEB
- https://github.com/apache/httpd-site/pull/10 WEB
- https://github.com/projectcontour/contour/pull/5826 WEB
- https://github.com/apache/trafficserver/pull/10564 WEB
- https://github.com/nghttp2/nghttp2/pull/1961 WEB
- https://github.com/h2o/h2o/pull/3291 WEB
- https://github.com/grpc/grpc-go/pull/6703 WEB
- https://github.com/nodejs/node/pull/50121 WEB
- https://github.com/envoyproxy/envoy/pull/30055 WEB
- https://github.com/facebook/proxygen/pull/466 WEB
- https://github.com/akka/akka-http/pull/4325 WEB
- https://github.com/akka/akka-http/pull/4324 WEB
- https://github.com/netty/netty/commit/58f75f665aa81a8cbcf6ffa74820042a285c5e61 WEB
- https://github.com/apache/tomcat/commit/944332bb15bd2f3bf76ec2caeb1ff0a58a3bc628 WEB
- https://github.com/kazu-yamamoto/http2/commit/f61d41a502bd0f60eb24e1ce14edc7b6df6722a1 WEB
- https://lists.w3.org/Archives/Public/ietf-http-wg/2023OctDec/0025.html WEB
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/FNA62Q767CFAFHBCDKYNPBMZWB7TWYVU WEB
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/E72T67UPDRXHIDLO3OROR25YAMN4GGW5 WEB
- https://martinthomson.github.io/h2-stream-limits/draft-thomson-httpbis-h2-stream-limits.html WEB
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/CLB4TW7KALB3EEQWNWCN7OUIWWVWWCG2 WEB
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/BFQD3KUEMFBHPAPBGLWQC34L4OWL5HAZ WEB
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/3N4NJ7FR4X4FPZUGNTQAPSTVB2HB2Y4A WEB
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/2MBEPPC36UBVOZZNAXFHKLFGSLCMN5LI WEB
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/ZLU6U2R2IC2K64NDPNMV55AUAO65MAF4 WEB
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/ZKQSIKIAT5TJ3WSLU3RDBQ35YX4GY4V3 WEB
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/ZB43REMKRQR62NJEI7I5NQ4FSXNLBKRT WEB
Sources
| Source | Licence |
|---|---|
| OSV.dev | CC-BY 4.0 — GitHub Advisory Database |