CVEfocus › CVE database › CVE-2024-1635

CVE-2024-1635Undertow: out-of-memory error after several closed connections with wildfly-http-client…

CVSS 7.5 HighEPSS 6.2% (higher than 94% of CVEs)Published 2024-02-19Updated 2026-11-04Assigner: redhat

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.

CWE-400

What to do

Fixed builds are available from Debian, Maven: see the table below for the fixed version per release.

Ubuntu has not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

2Fixed
5Fix pending
1Under investigation
2Will not fix

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 26.10undertowFix pendingUBUNTU-CVE-2024-1635
Ubuntu 26.04undertowUnder investigationUBUNTU-CVE-2024-1635
Ubuntu 25.10undertowWill not fix
Ubuntu decided not to fix this in this release
UBUNTU-CVE-2024-1635
Ubuntu 24.04undertowFix pendingUBUNTU-CVE-2024-1635
Ubuntu 22.04undertowFix pendingUBUNTU-CVE-2024-1635
Ubuntu 20.04undertowFix pendingUBUNTU-CVE-2024-1635
Ubuntu 18.04undertowFix pendingUBUNTU-CVE-2024-1635
Ubuntu 16.04undertowWill not fix
Ubuntu decided not to fix this in this release
UBUNTU-CVE-2024-1635
Debian 14undertowFixed2.3.18-1DEBIAN-CVE-2024-1635
Maven libraryio.undertow:undertow-coreFixed2.2.31.FinalGHSA-w6qf-42m7-vh68

What the vendor says

As published in the CVE record by redhat, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

Workaround: No mitigation is currently available for this vulnerability. However, there might be some protections, such as request limits by a load balancer in front of JBoss EAP/Wildfly or even Undertow, that could minimize the impact.

Vendor advisories:

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.