CVE-2024-22201
Connection leaking on idle timeout when TCP congested
Description
Impact
If an HTTP/2 connection gets TCP congested, when an idle timeout occurs the HTTP/2 session is marked as closed, and then a GOAWAY frame is queued to be written. However it is not written because the connection is TCP congested. When another idle timeout period elapses, it is then supposed to hard close the connection, but it delegates to the HTTP/2 session which reports that it has already been closed so it does not attempt to hard close the connection.
This leaves the connection in ESTABLISHED state (i.e. not closed), TCP congested, and idle.
An attacker can cause many connections to end up in this state, and the server may run out of file descriptors, eventually causing the server to stop accepting new connections from valid clients.
The client may also be impacted (if the server does not read causing a TCP congestion), but the issue is more severe for servers.
Patches
Patched versions:
- 9.4.54
- 10.0.20
- 11.0.20
- 12.0.6
Workarounds
Disable HTTP/2 and HTTP/3 support until you can upgrade to a patched version of Jetty. HTTP/1.x is not affected.
References
- https://github.com/jetty/jetty.project/issues/11256.
Affected Maven artifacts (4)
| Artifact | Affected versions | Fixed in |
|---|---|---|
| org.eclipse.jetty.http2 » http2-common | >= 9.3.0, < 9.4.54>= 10.0.0, < 10.0.20>= 11.0.0, < 11.0.20 | 9.4.54, 10.0.20, 11.0.20 |
| org.eclipse.jetty.http2 » jetty-http2-common | >= 12.0.0, < 12.0.6 | 12.0.6 |
| org.eclipse.jetty.http3 » http3-common | >= 10.0.8, < 10.0.20>= 11.0.8, < 11.0.20 | 10.0.20, 11.0.20 |
| org.eclipse.jetty.http3 » jetty-http3-common | >= 12.0.0, < 12.0.6 | 12.0.6 |
Blast radius
46% of the dependent artifacts (1,427) still pull an affected version in their latest release.
| Depth | Dependent versions |
|---|---|
| Direct | 6,585 |
| 2 hops | 21,295 |
| 3 hops | 48,298 |
| 4 hops | 79,243 |
| 5 hops | 39,258 |
| 6 hops | 18,110 |
Most used dependents
- com.github.tomakehurst » wiremock1,838 usages
- com.github.tomakehurst » wiremock-jre81,180 usages
- org.apache.solr » solr-solrj784 usages
- org.wiremock » wiremock733 usages
- org.apache.camel.springboot » camel-core-starter558 usages
- org.apache.solr » solr-core500 usages
- org.apache.camel.springboot » camel-spring-boot-starter478 usages
- org.apache.hive » hive-jdbc404 usages
- org.apache.camel.quarkus » camel-quarkus-maven-plugin302 usages
- org.apache.hive » hive-service301 usages
- org.eclipse.jetty.http2 » http2-server285 usages
- org.neo4j » neo4j269 usages
- org.eclipse.jetty.aggregate » jetty-all208 usages
- com.atlassian.bamboo » atlassian-bamboo-web203 usages
- org.apache.nifi » nifi-standard-services-api-nar189 usages
Computed from the dependency graph of build 20261124.0621 (compile and runtime scopes, nearest version wins). Exclusions and dependency management in consuming projects are not applied, so dependents are potentially affected. When several artifacts are affected, a dependent version that pulls more than one of them is counted once per artifact.
References
- Webhttps://github.com/jetty/jetty.project/security/advisories/GHSA-rggv-cv7r-mw98
- Advisoryhttps://nvd.nist.gov/vuln/detail/CVE-2024-22201
- Webhttps://github.com/jetty/jetty.project/issues/11256
- Webhttps://github.com/jetty/jetty.project/issues/11259
- Webhttps://github.com/jetty/jetty.project/commit/0839a208cdc3fcfe25206a77af59ba9fda260188
- Webhttps://github.com/jetty/jetty.project/commit/b953871c9a5ff4fbca4a2499848f75182dbd9810
- Packagehttps://github.com/jetty/jetty.project
- Webhttps://lists.debian.org/debian-lts-announce/2024/04/msg00002.html
- Webhttps://security.netapp.com/advisory/ntap-20240329-0001
- Webhttp://www.openwall.com/lists/oss-security/2024/03/20/2
