CVE-2024-1635

Undertow: out-of-memory error after several closed connections with wildfly-http-client protocol

Published Feb 19, 2024 CVSS 3.1 · 7.5 High EPSS 4.6% KEV · Not listed
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.

Remediation

Vendor 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.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
EUVD EUVD EUVD-2024-0747 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.
Github GHSA Github GHSA GHSA-w6qf-42m7-vh68 Undertow Uncontrolled Resource Consumption Vulnerability
History
Type Values Removed Values Added
First Time appeared Redhat camel K
Redhat jboss Bpms
CPEs cpe:/a:redhat:integration:1
cpe:/a:redhat:jboss_enterprise_bpms_platform:7
cpe:/a:redhat:camel_k:1
cpe:/a:redhat:jboss_bpms:7
Vendors & Products Redhat integration
Redhat jboss Enterprise Bpms Platform
Redhat camel K
Redhat jboss Bpms
Type Values Removed Values Added
CPEs cpe:/a:redhat:jboss_fuse:7.13
Type Values Removed Values Added
CPEs cpe:/a:redhat:quarkus:2
Type Values Removed Values Added
CPEs cpe:/a:redhat:apache_camel_spring_boot:4.4.1
Type Values Removed Values Added
CPEs cpe:/a:redhat:jboss_enterprise_application_platform_eus:7.3::el7
References
Type Values Removed Values Added
CPEs cpe:/a:redhat:apache_camel_spring_boot:4.4::el6
Type Values Removed Values Added
First Time appeared Netapp
Netapp active Iq Unified Manager
Netapp oncommand Workflow Automation
Redhat fuse
Redhat integration Camel For Spring Boot
Redhat openshift Container Platform
Redhat openshift Container Platform For Linuxone
Redhat openshift Container Platform For Power
Redhat single Sign-on
CPEs cpe:2.3:a:netapp:active_iq_unified_manager:-:*:*:*:*:linux:*:*
cpe:2.3:a:netapp:active_iq_unified_manager:-:*:*:*:*:vmware_vsphere:*:*
cpe:2.3:a:netapp:active_iq_unified_manager:-:*:*:*:*:windows:*:*
cpe:2.3:a:netapp:oncommand_workflow_automation:-:*:*:*:*:*:*:*
cpe:2.3:a:redhat:fuse:1.0:*:*:*:*:*:*:*
cpe:2.3:a:redhat:integration_camel_for_spring_boot:-:*:*:*:*:*:*:*
cpe:2.3:a:redhat:jboss_enterprise_application_platform:7.4:*:*:*:*:*:*:*
cpe:2.3:a:redhat:openshift_container_platform:4.11:*:*:*:*:*:*:*
cpe:2.3:a:redhat:openshift_container_platform:4.12:*:*:*:*:*:*:*
cpe:2.3:a:redhat:openshift_container_platform_for_linuxone:4.10:*:*:*:*:*:*:*
cpe:2.3:a:redhat:openshift_container_platform_for_linuxone:4.9:*:*:*:*:*:*:*
cpe:2.3:a:redhat:openshift_container_platform_for_power:4.10:*:*:*:*:*:*:*
cpe:2.3:a:redhat:openshift_container_platform_for_power:4.9:*:*:*:*:*:*:*
cpe:2.3:a:redhat:single_sign-on:-:*:*:*:text-only:*:*:*
cpe:2.3:a:redhat:single_sign-on:7.6:*:*:*:*:*:*:*
Vendors & Products Netapp
Netapp active Iq Unified Manager
Netapp oncommand Workflow Automation
Redhat fuse
Redhat integration Camel For Spring Boot
Redhat openshift Container Platform
Redhat openshift Container Platform For Linuxone
Redhat openshift Container Platform For Power
Redhat single Sign-on
Type Values Removed Values Added
First Time appeared Redhat jboss Enterprise Application Platform Eus
CPEs cpe:/a:redhat:jboss_enterprise_application_platform_eus:7.1::el7
Vendors & Products Redhat jboss Enterprise Application Platform Eus
References
Type Values Removed Values Added
First Time appeared Redhat apache Camel Spring Boot
CPEs cpe:/a:redhat:apache_camel_spring_boot:4.4.1
Vendors & Products Redhat apache Camel Spring Boot
References
Type Values Removed Values Added
CPEs cpe:/a:redhat:camel_spring_boot:4
Type Values Removed Values Added
References
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
CPEs cpe:/a:redhat:build_keycloak:22 cpe:/a:redhat:build_keycloak: