Lucene search

K
githubGitHub Advisory DatabaseGHSA-RGGV-CV7R-MW98
HistoryFeb 26, 2024 - 8:13 p.m.

Connection leaking on idle timeout when TCP congested

2024-02-2620:13:46
CWE-400
GitHub Advisory Database
github.com
16
impact
idle timeout
tcp congested
goaway frame
file descriptors
server
http/1.x
jetty

7.5 High

CVSS3

Attack Vector

NETWORK

Attack Complexity

LOW

Privileges Required

NONE

User Interaction

NONE

Scope

UNCHANGED

Confidentiality Impact

NONE

Integrity Impact

NONE

Availability Impact

HIGH

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

0.0004 Low

EPSS

Percentile

15.5%

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

Affected configurations

Vulners
Node
github_advisory_databaseorg.eclipse.jetty.http3\Matchjetty-http3-common
OR
github_advisory_databaseorg.eclipse.jetty.http2\Matchjetty-http2-common
OR
org.eclipse.jetty.http3\http3Matchcommon
OR
org.eclipse.jetty.http2\http2Matchcommon
OR
org.eclipse.jetty.http3\http3Matchcommon
OR
org.eclipse.jetty.http2\http2Matchcommon
OR
org.eclipse.jetty.http2\http2Matchcommon

7.5 High

CVSS3

Attack Vector

NETWORK

Attack Complexity

LOW

Privileges Required

NONE

User Interaction

NONE

Scope

UNCHANGED

Confidentiality Impact

NONE

Integrity Impact

NONE

Availability Impact

HIGH

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

0.0004 Low

EPSS

Percentile

15.5%