CVE-2024-1635Undertow: out-of-memory error after several closed connections with wildfly-http-client…
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.
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
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.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 26.10 | undertow | Fix pending | UBUNTU-CVE-2024-1635 | |
| Ubuntu 26.04 | undertow | Under investigation | UBUNTU-CVE-2024-1635 | |
| Ubuntu 25.10 | undertow | Will not fix Ubuntu decided not to fix this in this release | UBUNTU-CVE-2024-1635 | |
| Ubuntu 24.04 | undertow | Fix pending | UBUNTU-CVE-2024-1635 | |
| Ubuntu 22.04 | undertow | Fix pending | UBUNTU-CVE-2024-1635 | |
| Ubuntu 20.04 | undertow | Fix pending | UBUNTU-CVE-2024-1635 | |
| Ubuntu 18.04 | undertow | Fix pending | UBUNTU-CVE-2024-1635 | |
| Ubuntu 16.04 | undertow | Will not fix Ubuntu decided not to fix this in this release | UBUNTU-CVE-2024-1635 | |
| Debian 14 | undertow | Fixed | 2.3.18-1 | DEBIAN-CVE-2024-1635 |
| Maven library | io.undertow:undertow-core | Fixed | 2.2.31.Final | GHSA-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.
- undertow: affected: 1.31.0
- Red Hat build of Apache Camel 4.4.1 for Spring Boot 3.2
- Red Hat Fuse 7.13.0
- Red Hat JBoss Enterprise Application Platform 7.1 EUS for RHEL 7
- Red Hat JBoss Enterprise Application Platform 7.3 EUS for RHEL 7
- Red Hat JBoss Enterprise Application Platform 7.4.16
- Red Hat JBoss Enterprise Application Platform 7.4 for RHEL 8
- Red Hat JBoss Enterprise Application Platform 7.4 for RHEL 9
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:
- https://access.redhat.com/errata/RHSA-2024:1674 (vendor-advisory)
- https://access.redhat.com/errata/RHSA-2024:1675 (vendor-advisory)
- https://access.redhat.com/errata/RHSA-2024:1676 (vendor-advisory)
- https://access.redhat.com/errata/RHSA-2024:1677 (vendor-advisory)
- https://access.redhat.com/errata/RHSA-2024:1860 (vendor-advisory)
- https://access.redhat.com/errata/RHSA-2024:1861 (vendor-advisory)
References
- https://access.redhat.com/errata/RHSA-2024:1674
- https://access.redhat.com/errata/RHSA-2024:1675
- https://access.redhat.com/errata/RHSA-2024:1676
- https://access.redhat.com/errata/RHSA-2024:1677
- https://access.redhat.com/errata/RHSA-2024:1860
- https://access.redhat.com/errata/RHSA-2024:1861
- https://access.redhat.com/errata/RHSA-2024:1862
- https://access.redhat.com/errata/RHSA-2024:1864
- https://access.redhat.com/errata/RHSA-2024:1866
- https://access.redhat.com/errata/RHSA-2024:3354
- https://access.redhat.com/errata/RHSA-2024:4884
- https://access.redhat.com/errata/RHSA-2025:4226
- https://access.redhat.com/errata/RHSA-2025:9583
- https://access.redhat.com/security/cve/CVE-2024-1635
- https://bugzilla.redhat.com/show_bug.cgi?id=2264928
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.