Skip to content

GHSA-qppj-fm5r-hxr3 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 CVE-2023-44487

HTTP/2 Stream Cancellation Attack

Medium Known exploited GoMavenSwiftURL
Severity
6.9 / 10
Medium · CVSS 4.0
Exploit chance (EPSS)
100.00%
Chance of exploitation in the next 30 days. Higher than 100.00% of scored vulnerabilities.
Known exploited
Yes
In CISA's catalog since Oct 10, 2023
Weakness
CWE-400 Uncontrolled Resource Consumption
Fix
Available
11 packages have a fixed version
Exploited in the wild. HTTP/2 Rapid Reset Attack Vulnerability (IETF HTTP/2). Required action: Apply mitigations per vendor instructions, follow applicable BOD 22-01 guidance for cloud services, or discontinue use of the product if mitigations are unavailable. Due for U.S. federal agencies by Oct 31, 2023.

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 Channels 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 versions

Go

PackageVulnerableFixed in
golang.org/x/net
< 0.17.0
0.17.0
golang.org/x/net
< 0.17.0
0.17.0

Maven

PackageVulnerableFixed in
com.typesafe.akka:akka-http-core
< 10.5.3
10.5.3
com.typesafe.akka:akka-http-core
< 10.5.3
10.5.3
com.typesafe.akka:akka-http-core_2.11
<= 10.1.15
No fix yet
com.typesafe.akka:akka-http-core_2.11
<= 10.1.15
No fix yet
com.typesafe.akka:akka-http-core_2.12
< 10.5.3
10.5.3
com.typesafe.akka:akka-http-core_2.12
< 10.5.3
10.5.3
com.typesafe.akka:akka-http-core_2.13
< 10.5.3
10.5.3
com.typesafe.akka:akka-http-core_2.13
< 10.5.3
10.5.3
org.apache.tomcat.embed:tomcat-embed-core
>= 11.0.0-M1, < 11.0.0-M12
11.0.0-M12
org.apache.tomcat.embed:tomcat-embed-core
>= 10.0.0, < 10.1.14
10.1.14
org.apache.tomcat.embed:tomcat-embed-core
>= 9.0.0, < 9.0.81
9.0.81
org.apache.tomcat.embed:tomcat-embed-core
>= 8.5.0, < 8.5.94
8.5.94
org.apache.tomcat.embed:tomcat-embed-core
>= 11.0.0-M1, < 11.0.0-M12
11.0.0-M12
org.apache.tomcat.embed:tomcat-embed-core
>= 10.0.0, < 10.1.14
10.1.14
org.apache.tomcat.embed:tomcat-embed-core
>= 9.0.0, < 9.0.81
9.0.81
org.apache.tomcat.embed:tomcat-embed-core
>= 8.5.0, < 8.5.94
8.5.94
org.apache.tomcat:tomcat-coyote
>= 11.0.0-M1, < 11.0.0-M12
11.0.0-M12
org.apache.tomcat:tomcat-coyote
>= 10.0.0, < 10.1.14
10.1.14
org.apache.tomcat:tomcat-coyote
>= 9.0.0, < 9.0.81
9.0.81
org.apache.tomcat:tomcat-coyote
>= 8.5.0, < 8.5.94
8.5.94
org.apache.tomcat:tomcat-coyote
>= 11.0.0-M1, < 11.0.0-M12
11.0.0-M12
org.apache.tomcat:tomcat-coyote
>= 10.0.0, < 10.1.14
10.1.14
org.apache.tomcat:tomcat-coyote
>= 9.0.0, < 9.0.81
9.0.81
org.apache.tomcat:tomcat-coyote
>= 8.5.0, < 8.5.94
8.5.94
org.eclipse.jetty.http2:http2-common
>= 9.3.0, < 9.4.53
9.4.53
org.eclipse.jetty.http2:http2-common
>= 10.0.0, < 10.0.17
10.0.17
org.eclipse.jetty.http2:http2-common
>= 11.0.0, < 11.0.17
11.0.17
org.eclipse.jetty.http2:http2-common
>= 9.3.0, < 9.4.53
9.4.53
org.eclipse.jetty.http2:http2-common
>= 10.0.0, < 10.0.17
10.0.17
org.eclipse.jetty.http2:http2-common
>= 11.0.0, < 11.0.17
11.0.17
org.eclipse.jetty.http2:http2-server
>= 9.3.0, < 9.4.53
9.4.53
org.eclipse.jetty.http2:http2-server
>= 10.0.0, < 10.0.17
10.0.17
org.eclipse.jetty.http2:http2-server
>= 11.0.0, < 11.0.17
11.0.17
org.eclipse.jetty.http2:http2-server
>= 9.3.0, < 9.4.53
9.4.53
org.eclipse.jetty.http2:http2-server
>= 10.0.0, < 10.0.17
10.0.17
org.eclipse.jetty.http2:http2-server
>= 11.0.0, < 11.0.17
11.0.17
org.eclipse.jetty.http2:jetty-http2-common
>= 12.0.0, < 12.0.2
12.0.2
org.eclipse.jetty.http2:jetty-http2-common
>= 12.0.0, < 12.0.2
12.0.2
org.eclipse.jetty.http2:jetty-http2-server
>= 12.0.0, < 12.0.2
12.0.2
org.eclipse.jetty.http2:jetty-http2-server
>= 12.0.0, < 12.0.2
12.0.2

SwiftURL

PackageVulnerableFixed in
github.com/apple/swift-nio-http2
< 1.28.0
1.28.0
github.com/apple/swift-nio-http2
< 1.28.0
1.28.0

How to fix

Move to the fixed version or later with your package manager, update the lockfile, and run your tests. If the package only arrives through another dependency, upgrade that dependency first. If none of its releases pulls a fixed version yet, force the version with your package manager's override.

golang.org/x/net Go → 0.17.0

go
go get golang.org/x/net@v0.17.0 && go mod tidy

com.typesafe.akka:akka-http-core Maven → 10.5.3

maven
<dependency><groupId>com.typesafe.akka</groupId><artifactId>akka-http-core</artifactId><version>10.5.3</version></dependency>
gradle
implementation("com.typesafe.akka:akka-http-core:10.5.3")

com.typesafe.akka:akka-http-core_2.12 Maven → 10.5.3

maven
<dependency><groupId>com.typesafe.akka</groupId><artifactId>akka-http-core_2.12</artifactId><version>10.5.3</version></dependency>
gradle
implementation("com.typesafe.akka:akka-http-core_2.12:10.5.3")

com.typesafe.akka:akka-http-core_2.13 Maven → 10.5.3

maven
<dependency><groupId>com.typesafe.akka</groupId><artifactId>akka-http-core_2.13</artifactId><version>10.5.3</version></dependency>
gradle
implementation("com.typesafe.akka:akka-http-core_2.13:10.5.3")

org.apache.tomcat.embed:tomcat-embed-core Maven → 11.0.0-M12

maven
<dependency><groupId>org.apache.tomcat.embed</groupId><artifactId>tomcat-embed-core</artifactId><version>11.0.0-M12</version></dependency>
gradle
implementation("org.apache.tomcat.embed:tomcat-embed-core:11.0.0-M12")

org.apache.tomcat:tomcat-coyote Maven → 11.0.0-M12

maven
<dependency><groupId>org.apache.tomcat</groupId><artifactId>tomcat-coyote</artifactId><version>11.0.0-M12</version></dependency>
gradle
implementation("org.apache.tomcat:tomcat-coyote:11.0.0-M12")

org.eclipse.jetty.http2:http2-common Maven → 9.4.53

maven
<dependency><groupId>org.eclipse.jetty.http2</groupId><artifactId>http2-common</artifactId><version>9.4.53</version></dependency>
gradle
implementation("org.eclipse.jetty.http2:http2-common:9.4.53")

org.eclipse.jetty.http2:http2-server Maven → 9.4.53

maven
<dependency><groupId>org.eclipse.jetty.http2</groupId><artifactId>http2-server</artifactId><version>9.4.53</version></dependency>
gradle
implementation("org.eclipse.jetty.http2:http2-server:9.4.53")

org.eclipse.jetty.http2:jetty-http2-common Maven → 12.0.2

maven
<dependency><groupId>org.eclipse.jetty.http2</groupId><artifactId>jetty-http2-common</artifactId><version>12.0.2</version></dependency>
gradle
implementation("org.eclipse.jetty.http2:jetty-http2-common:12.0.2")

org.eclipse.jetty.http2:jetty-http2-server Maven → 12.0.2

maven
<dependency><groupId>org.eclipse.jetty.http2</groupId><artifactId>jetty-http2-server</artifactId><version>12.0.2</version></dependency>
gradle
implementation("org.eclipse.jetty.http2:jetty-http2-server:12.0.2")

github.com/apple/swift-nio-http2 SwiftURL → 1.28.0

Set github.com/apple/swift-nio-http2 to 1.28.0 or later in your manifest.

Severity breakdown

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

Attack vector
Network
Attack complexity
Low
Attack requirements
None
Privileges required
None
User interaction
None
Confidentiality (vulnerable system)
None
Integrity (vulnerable system)
None
Availability (vulnerable system)
Low
Confidentiality (subsequent systems)
None
Integrity (subsequent systems)
None
Availability (subsequent systems)
None
Exploit maturity
Attacked

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

Attack vector
Network
Attack complexity
Low
Privileges required
None
User interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
None
Availability
Low
Exploit maturity
H

Weakness

CWE-400: Uncontrolled Resource Consumption

The product does not properly control the allocation and maintenance of a limited resource.

How to prevent it
  • Architecture and Design: Design throttling mechanisms into the system architecture. The best protection is to limit the amount of resources that an unauthorized user can cause to be expended. A strong authentication and access control model will help prevent such attacks from occurring in the first place. The login application should be protected against DoS attacks as much as possible. Limiting the database access, perhaps by caching result sets, can help minimize the resources expended. To further limit the potential for a DoS attack, consider tracking the rate of requests received from users and blocking requests that exceed a defined rate threshold.
  • Architecture and Design: Mitigation of resource exhaustion attacks requires that the target system either: recognizes the attack and denies that user further access for a given amount of time, or uniformly throttles all requests in order to make it more difficult to consume resources more quickly than they can again be freed. The first of these solutions is an issue in itself though, since it may allow attackers to prevent the use of the system by a particular valid user. If the attacker impersonates the valid user, they may be able to prevent the user from accessing the server in question. The second solution is simply difficult to effectively institute -- and even when properly done, it does not provide a full solution. It simply makes the attack require more resources on the part of the attacker.
  • Architecture and Design: Ensure that protocols have specific limits of scale placed on them.
  • Implementation: Ensure that all failures in resource allocation place the system into a safe posture.

References

Advisories

Fixes and patches

Packages

Other links

Timeline

  1. Added to CISA's Known Exploited Vulnerabilities catalog
  2. Published
  3. Remediation due for U.S. federal agencies
  4. Last updated by the source
  5. Latest EPSS score
AdvisorySeverityWhy it's related
GHSA-83qj-6fr2-vhqg
Apache Tomcat: Potential RCE and/or information disclosure and/or information corruption with partial PUT
Critical Known exploited Also affects org.apache.tomcat.embed:tomcat-embed-core
GHSA-4374-p667-p6c8
HTTP/2 rapid reset can cause excessive work in net/http
High Known exploited Also affects golang.org/x/net
GHSA-xjgh-84hx-56c5
Unrestricted Upload of File with Dangerous Type Apache Tomcat
High Known exploited Also affects org.apache.tomcat.embed:tomcat-embed-core
CVE-2020-1938
Improper Privilege Management in Tomcat
Critical Known exploited Also affects org.apache.tomcat.embed:tomcat-embed-core
GHSA-pjfr-qf3p-3q25
When running Apache Tomcat on Windows with HTTP PUTs enabled it was possible to upload a JSP file to the server
High Known exploited Also affects org.apache.tomcat.embed:tomcat-embed-core
GO-2026-6866
Check all ancestor namespace transitions when rendering raw text in html in golang.org/x/net
Not rated yet Also affects golang.org/x/net
GO-2026-6860
Avoid quadratic complexity when coalescing text nodes in html in golang.org/x/net
Not rated yet Also affects golang.org/x/net
GO-2026-6617
HTTP/2 server crash due to HPACK encoder race in net/http
High Also affects golang.org/x/net

Credits: DuyTran-TomTom, derekheld, ebickle, faroukfaiz10, joakime, westonsteimel

Is this in your code?

MergeHarbor checks every repository's dependencies against this database, ranks what matters by exploitability and reachability, routes it to the owning team and opens the fix pull request.

Check your repos with MergeHarbor