Vulnerability · Published Feb 19, 2024 · Assigned by redhat
CVE-2024-1635Undertow: out-of-memory error after several closed connections with wildfly-http-client protocol
High 7.5
In plain English
A high-severity uncontrolled resource consumption in undertow. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 4.6% (higher than 92% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official description
A vulnerability was found in Undertow. This vulnerability impacts a server that supports the wildfly-http-client protocol. Whenever a malicious user opens and closes a connection with the HTTP port of the server and then closes the connection immediately, the server will end with both memory and open file limits exhausted at some point, depending on the amount of memory available. At HTTP upgrade to remoting, the WriteTimeoutStreamSinkConduit leaks connections if RemotingConnection is closed by Remoting ServerConnectionOpenListener. Because the remoting connection originates in Undertow as part of the HTTP upgrade, there is an external layer to the remoting connection. This connection is unaware of the outermost layer when closing the connection during the connection opening procedure. Hence, the Undertow WriteTimeoutStreamSinkConduit is not notified of the closed connection in this scenario. Because WriteTimeoutStreamSinkConduit creates a timeout task, the whole dependency tree leaks via that task, which is added to XNIO WorkerThread. So, the workerThread points to the Undertow conduit, which contains the connections and causes the leak.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian:14 | undertow | 2.3.18-1 | DEBIAN-CVE-2024-1635 |
| Maven | io.undertow:undertow-core | 2.3.12.Final | GHSA-w6qf-42m7-vh68 |
| Maven | io.undertow:undertow-core | 2.2.31.Final | GHSA-w6qf-42m7-vh68 |
| Ubuntu:25.10 | undertow | no fix listed | UBUNTU-CVE-2024-1635 |
| Ubuntu:26.04:LTS | undertow | no fix listed | UBUNTU-CVE-2024-1635 |
| Ubuntu:26.10 | undertow | no fix listed | UBUNTU-CVE-2024-1635 |
Affected products (as reported)
Weakness: CWE-400 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
References
- RHSA-2024:1674 vendor-advisory, x_refsource_REDHAT
- RHSA-2024:1675 vendor-advisory, x_refsource_REDHAT
- RHSA-2024:1676 vendor-advisory, x_refsource_REDHAT
- RHSA-2024:1677 vendor-advisory, x_refsource_REDHAT
- RHSA-2024:1860 vendor-advisory, x_refsource_REDHAT
- RHSA-2024:1861 vendor-advisory, x_refsource_REDHAT
- RHSA-2024:1862 vendor-advisory, x_refsource_REDHAT
- RHSA-2024:1864 vendor-advisory, x_refsource_REDHAT
- RHSA-2024:1866 vendor-advisory, x_refsource_REDHAT
- RHSA-2024:3354 vendor-advisory, x_refsource_REDHAT
- RHSA-2024:4884 vendor-advisory, x_refsource_REDHAT
- RHSA-2025:4226 vendor-advisory, x_refsource_REDHAT
- RHSA-2025:9583 vendor-advisory, x_refsource_REDHAT
- https://access.redhat.com/security/cve/CVE-2024-1635 vdb-entry, x_refsource_REDHAT
- RHBZ#2264928 issue-tracking, x_refsource_REDHAT
- https://security.netapp.com/advisory/ntap-20240322-0007/ x_transferred