# CVE-2023-44487: HTTP/2 Stream Cancellation Attack

> CVE-2023-44487 (GitHub advisory GHSA-qppj-fm5r-hxr3) is a medium-severity vulnerability with a CVSS 4.0 base score of 6.9, classed as Uncontrolled Resource Consumption (CWE-400), in 12 packages, including github.com/apple/swift-nio-http2 (SwiftURL) and golang.org/x/net (Go). Fixed versions: github.com/apple/swift-nio-http2 1.28.0; golang.org/x/net 0.17.0; and 9 more packages. CISA lists it as a known exploited vulnerability (added 10 Oct 2023).

Canonical page: https://cveminer.com/vulnerabilities/CVE-2023-44487

| Field | Value |
| --- | --- |
| CVE | CVE-2023-44487 |
| GHSA | GHSA-qppj-fm5r-hxr3 |
| Severity | Medium |
| CVSS 4.0 | 6.9 `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` (GitHub Advisory Database) |
| CVSS 3.1 | 5.3 `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L/E:H` (GitHub Advisory Database) |
| CVSS 3.1 | 7.5 `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H` (CVE.org) |
| CWE | CWE-400 Uncontrolled Resource Consumption |
| EPSS | 99.99% (higher than 99.9% of CVEs) |
| CISA KEV | Listed 10 Oct 2023, due 31 Oct 2023 |
| SSVC | exploitation active, automatable yes, technical impact partial |
| Published | 10 Oct 2023 |
| Modified | 14 Jul 2026 |

## 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 | Ecosystem | PURL | Vulnerable versions | Fixed in |
| --- | --- | --- | --- | --- |
| github.com/apple/swift-nio-http2 | SwiftURL | `pkg:swift/github.com/apple/swift-nio-http2` | < 1.28.0 | 1.28.0 |
| golang.org/x/net | Go | `pkg:golang/golang.org/x/net` | < 0.17.0 | 0.17.0 |
| org.apache.tomcat:tomcat-coyote | Maven | `pkg:maven/org.apache.tomcat/tomcat-coyote` | >= 11.0.0-M1, < 11.0.0-M12; >= 10.0.0, < 10.1.14; >= 9.0.0, < 9.0.81; >= 8.5.0, < 8.5.94 | 11.0.0-M12, 10.1.14, 9.0.81, 8.5.94 |
| org.apache.tomcat.embed:tomcat-embed-core | Maven | `pkg:maven/org.apache.tomcat.embed/tomcat-embed-core` | >= 11.0.0-M1, < 11.0.0-M12; >= 10.0.0, < 10.1.14; >= 9.0.0, < 9.0.81; >= 8.5.0, < 8.5.94 | 11.0.0-M12, 10.1.14, 9.0.81, 8.5.94 |
| org.eclipse.jetty.http2:http2-common | Maven | `pkg:maven/org.eclipse.jetty.http2/http2-common` | >= 9.3.0, < 9.4.53; >= 10.0.0, < 10.0.17; >= 11.0.0, < 11.0.17 | 9.4.53, 10.0.17, 11.0.17 |
| org.eclipse.jetty.http2:http2-server | Maven | `pkg:maven/org.eclipse.jetty.http2/http2-server` | >= 9.3.0, < 9.4.53; >= 10.0.0, < 10.0.17; >= 11.0.0, < 11.0.17 | 9.4.53, 10.0.17, 11.0.17 |
| org.eclipse.jetty.http2:jetty-http2-common | Maven | `pkg:maven/org.eclipse.jetty.http2/jetty-http2-common` | >= 12.0.0, < 12.0.2 | 12.0.2 |
| org.eclipse.jetty.http2:jetty-http2-server | Maven | `pkg:maven/org.eclipse.jetty.http2/jetty-http2-server` | >= 12.0.0, < 12.0.2 | 12.0.2 |
| com.typesafe.akka:akka-http-core | Maven | `pkg:maven/com.typesafe.akka/akka-http-core` | < 10.5.3 | 10.5.3 |
| com.typesafe.akka:akka-http-core_2.13 | Maven | `pkg:maven/com.typesafe.akka/akka-http-core_2.13` | < 10.5.3 | 10.5.3 |
| com.typesafe.akka:akka-http-core_2.12 | Maven | `pkg:maven/com.typesafe.akka/akka-http-core_2.12` | < 10.5.3 | 10.5.3 |
| com.typesafe.akka:akka-http-core_2.11 | Maven | `pkg:maven/com.typesafe.akka/akka-http-core_2.11` | <= 10.1.15 | no fix |

## Fix commits

- Patch: https://github.com/linkerd/website/pull/1695/commits/4b9c6836471bc8270ab48aae6fd2181bc73fd632
- Patch: https://github.com/netty/netty/commit/58f75f665aa81a8cbcf6ffa74820042a285c5e61
- Patch: https://github.com/apache/tomcat/commit/944332bb15bd2f3bf76ec2caeb1ff0a58a3bc628
- Patch: https://github.com/kazu-yamamoto/http2/commit/f61d41a502bd0f60eb24e1ce14edc7b6df6722a1
- Pull request: https://github.com/microsoft/CBL-Mariner/pull/6381
- Pull request: https://github.com/line/armeria/pull/5232
- Pull request: https://github.com/kubernetes/kubernetes/pull/121120
- Pull request: https://github.com/apache/httpd-site/pull/10
- Pull request: https://github.com/projectcontour/contour/pull/5826
- Pull request: https://github.com/apache/trafficserver/pull/10564
- Pull request: https://github.com/nghttp2/nghttp2/pull/1961
- Pull request: https://github.com/h2o/h2o/pull/3291
- Pull request: https://github.com/grpc/grpc-go/pull/6703
- Pull request: https://github.com/nodejs/node/pull/50121
- Pull request: https://github.com/envoyproxy/envoy/pull/30055
- Pull request: https://github.com/facebook/proxygen/pull/466
- Pull request: https://github.com/akka/akka-http/pull/4325
- Pull request: https://github.com/akka/akka-http/pull/4324
- Release: https://github.com/akka/akka-http/commit/1a3b131141fed9468d9da1167c7fcb37902935ed (10.5.3)
- Release: https://github.com/apache/trafficserver/commit/796ffd3a329b4b1f2ec0dd51158e62c94914c4ca (8.1.9)

## Questions

**What is the GHSA ID for CVE-2023-44487?**

GitHub tracks CVE-2023-44487 as GHSA-qppj-fm5r-hxr3.

**What is the CVSS score of CVE-2023-44487?**

CVE-2023-44487 has a CVSS 4.0 base score of 6.9 (Medium), vector 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. Other published scores: CVSS 3.1 5.3, CVSS 3.1 7.5.

**Which versions are affected by CVE-2023-44487?**

github.com/apple/swift-nio-http2 (SwiftURL): < 1.28.0. golang.org/x/net (Go): < 0.17.0. org.apache.tomcat:tomcat-coyote (Maven): >= 11.0.0-M1, < 11.0.0-M12; >= 10.0.0, < 10.1.14; >= 9.0.0, < 9.0.81; >= 8.5.0, < 8.5.94. org.apache.tomcat.embed:tomcat-embed-core (Maven): >= 11.0.0-M1, < 11.0.0-M12; >= 10.0.0, < 10.1.14; >= 9.0.0, < 9.0.81; >= 8.5.0, < 8.5.94. org.eclipse.jetty.http2:http2-common (Maven): >= 9.3.0, < 9.4.53; >= 10.0.0, < 10.0.17; >= 11.0.0, < 11.0.17. org.eclipse.jetty.http2:http2-server (Maven): >= 9.3.0, < 9.4.53; >= 10.0.0, < 10.0.17; >= 11.0.0, < 11.0.17. 6 more packages are listed on the page.

**How do I fix CVE-2023-44487?**

Upgrade each package to its fixed version: github.com/apple/swift-nio-http2 1.28.0; golang.org/x/net 0.17.0; org.apache.tomcat:tomcat-coyote 11.0.0-M12, 10.1.14, 9.0.81 or 8.5.94; org.apache.tomcat.embed:tomcat-embed-core 11.0.0-M12, 10.1.14, 9.0.81 or 8.5.94; and 7 more packages. The fix is in commits 4b9c683, 58f75f6 and 944332b and pull requests #6381, #5232 and #121120.

**What is the Package URL (PURL) for CVE-2023-44487?**

The affected packages' PURLs are pkg:swift/github.com/apple/swift-nio-http2, pkg:golang/golang.org/x/net, pkg:maven/org.apache.tomcat/tomcat-coyote, pkg:maven/org.apache.tomcat.embed/tomcat-embed-core, pkg:maven/org.eclipse.jetty.http2/http2-common and pkg:maven/org.eclipse.jetty.http2/http2-server and more.

**Is CVE-2023-44487 exploited in the wild?**

CISA lists it as a known exploited vulnerability (added 10 Oct 2023). CISA's SSVC assessment rates exploitation as "active". EPSS estimates a 99.99% chance of exploitation in the next 30 days, higher than 99.9% of CVEs.

## References

- https://github.com/microsoft/CBL-Mariner/pull/6381 (fix)
- https://github.com/linkerd/website/pull/1695/commits/4b9c6836471bc8270ab48aae6fd2181bc73fd632 (fix)
- https://github.com/line/armeria/pull/5232 (fix)
- https://github.com/kubernetes/kubernetes/pull/121120 (fix)
- https://github.com/apache/httpd-site/pull/10 (fix)
- https://github.com/projectcontour/contour/pull/5826 (fix)
- https://github.com/apache/trafficserver/pull/10564 (fix)
- https://github.com/nghttp2/nghttp2/pull/1961 (fix)
- https://github.com/h2o/h2o/pull/3291 (fix)
- https://github.com/grpc/grpc-go/pull/6703 (fix)
- https://github.com/nodejs/node/pull/50121 (fix)
- https://github.com/envoyproxy/envoy/pull/30055 (fix)
- https://github.com/facebook/proxygen/pull/466 (fix)
- https://github.com/akka/akka-http/pull/4325 (fix)
- https://github.com/akka/akka-http/pull/4324 (fix)
- https://github.com/netty/netty/commit/58f75f665aa81a8cbcf6ffa74820042a285c5e61 (fix)
- https://github.com/apache/tomcat/commit/944332bb15bd2f3bf76ec2caeb1ff0a58a3bc628 (fix)
- https://github.com/kazu-yamamoto/http2/commit/f61d41a502bd0f60eb24e1ce14edc7b6df6722a1 (fix)
- https://github.com/apple/swift-nio-http2/security/advisories/GHSA-qppj-fm5r-hxr3 (advisory)
- https://github.com/h2o/h2o/security/advisories/GHSA-2m7v-gc89-fjqf (advisory)
- https://nvd.nist.gov/vuln/detail/CVE-2023-44487 (advisory)
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/FNA62Q767CFAFHBCDKYNPBMZWB7TWYVU (advisory)
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/E72T67UPDRXHIDLO3OROR25YAMN4GGW5 (advisory)
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/CLB4TW7KALB3EEQWNWCN7OUIWWVWWCG2 (advisory)
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/BFQD3KUEMFBHPAPBGLWQC34L4OWL5HAZ (advisory)
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/3N4NJ7FR4X4FPZUGNTQAPSTVB2HB2Y4A (advisory)
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/2MBEPPC36UBVOZZNAXFHKLFGSLCMN5LI (advisory)
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/ZLU6U2R2IC2K64NDPNMV55AUAO65MAF4 (advisory)
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/ZKQSIKIAT5TJ3WSLU3RDBQ35YX4GY4V3 (advisory)
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/ZB43REMKRQR62NJEI7I5NQ4FSXNLBKRT (advisory)
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/XFOIBB4YFICHDM7IBOP7PWXW3FX4HLL2 (advisory)
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/X6QXN4ORIVF6XBW4WWFE7VNPVC74S45Y (advisory)
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/WLPRQ5TWUQQXYWBJM7ECYDAIL2YVKIUH (advisory)
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/WE2I52RHNNU42PX6NZ2RBUHSFFJ2LVZX (advisory)
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/ZLU6U2R2IC2K64NDPNMV55AUAO65MAF4 (advisory)
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/ZKQSIKIAT5TJ3WSLU3RDBQ35YX4GY4V3 (advisory)
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/ZB43REMKRQR62NJEI7I5NQ4FSXNLBKRT (advisory)
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/XFOIBB4YFICHDM7IBOP7PWXW3FX4HLL2 (advisory)
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/X6QXN4ORIVF6XBW4WWFE7VNPVC74S45Y (advisory)
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/WLPRQ5TWUQQXYWBJM7ECYDAIL2YVKIUH (advisory)
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/WE2I52RHNNU42PX6NZ2RBUHSFFJ2LVZX (advisory)
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/VSRDIV77HNKUSM7SJC5BKE5JSHLHU2NK (advisory)
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/VHUHTSXLXGXS7JYKBXTA3VINUPHTNGVU (advisory)
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/LNMZJCDHGLJJLXO4OXWJMTVQRNWOC7UL (advisory)
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/LKYHSZQFDNR7RSA7LHVLLIAQMVYCUGBG (advisory)
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/KSEGD2IWKNUO3DWY4KQGUQM5BISRWHQE (advisory)
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/JMEXY22BFG5Q64HQCM5CK2Q7KDKVV4TY (advisory)
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/JIZSEFC3YKCGABA2BZW6ZJRMDZJMB7PJ (advisory)
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/HT7T2R4MQKLIF4ODV4BDLPARWFPCJ5CZ (advisory)
- https://www.debian.org/security/2023/dsa-5521 (advisory)
- https://www.debian.org/security/2023/dsa-5522 (advisory)
- https://www.debian.org/security/2023/dsa-5540 (advisory)
- https://www.debian.org/security/2023/dsa-5549 (advisory)
- https://www.debian.org/security/2023/dsa-5558 (advisory)
- https://www.debian.org/security/2023/dsa-5570 (advisory)
- https://security.gentoo.org/glsa/202311-09 (advisory)
- https://security.netapp.com/advisory/ntap-20231016-0001 (advisory)
- https://security.netapp.com/advisory/ntap-20240426-0007 (advisory)
- https://security.netapp.com/advisory/ntap-20240621-0006 (advisory)
- https://security.netapp.com/advisory/ntap-20240621-0007 (advisory)

---

Source: CVEminer (https://cveminer.com/vulnerabilities/CVE-2023-44487), compiled from OSV (GitHub advisory), GitHub Advisory Database, OSV (CVE record), CVE.org, CISA KEV catalog. OSV and GitHub Advisory Database content is licensed CC BY 4.0.
