CVE-2024-1635 Undertow: out-of-memory error after several closed connections with wildfly-http-client protocol
An attacker can exhaust server memory and file limits by rapidly opening and closing connections, causing a denial of service in Undertow.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2024-1635?
CVE-2024-1635 is a high-severity denial of service vulnerability in Netapp Active Iq Unified Manager, published on 19 Feb 2024. An attacker can exploit it over the internet without logging in, with no action from the victim.
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.
Weakness: CWE-400
Which versions are affected by CVE-2024-1635?
4 open source packages ship an affected version, including io.undertow:undertow-core. It affects 9 products.
| Package | Affected | Fixed in |
|---|---|---|
io.undertow:undertow-core Maven | All versions | 2.2.31.Final |
io.undertow:undertow-core Maven | All versions | 2.2.31.Final |
io.undertow:undertow-core Maven | From 2.3.0.Final | 2.3.12.Final |
io.undertow:undertow-core Maven | From 2.3.0.Final | 2.3.12.Final |
Products include Netapp Active Iq Unified Manager, Netapp Oncommand Workflow Automation, Redhat Fuse, Redhat Integration Camel for Spring Boot, Redhat Jboss Enterprise Application Platform, Redhat Openshift Container Platform and 3 more.
How do I fix CVE-2024-1635?
Upgrade io.undertow:undertow-core to a fixed version for your release line: 2.2.31.Final or 2.3.12.Final.
Upgrade, then put limits on request size, rate and nesting depth so one client cannot exhaust the service. More about Denial of service.
Is CVE-2024-1635 being exploited?
There is no known exploitation of CVE-2024-1635 in the wild and no public exploit code.
Other vulnerabilities in Netapp Active Iq Unified Manager
Sources
Also known as CLSA-2026-1781139194, DEBIAN-CVE-2024-1635, GHSA-w6qf-42m7-vh68, UBUNTU-CVE-2024-1635.