CVE-2024-1635

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

HIGH 7.5

At a glance

Source
NVD
EPSS
EPSS 4.57 % · percentile 92 ()
State
PUBLISHED
Published
Updated
Assigner
redhat
NVD status
Modified

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.

Weaknesses (CWE)

  • CWE-400 — Uncontrolled Resource Consumption

References

Scores

VersionScoreVectorScored by
CVSS 3.1HIGH 7.5CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:Hredhat
CVSS 3.1HIGH 7.5CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:HNVD · secalert@redhat.com (Secondary)

Advisories

European references

Affected configurations (NVD CPE)

Affected products

ProductVersions
undertowaffected 1.31.0
Red Hat · Red Hat build of Apache Camel 4.4.1 for Spring Boot 3.2
Red Hat · Red Hat Fuse 7.13.0
Red Hat · Red Hat JBoss Enterprise Application Platform 7.1 EUS for RHEL 7unaffected 0:1.5.5.016-1.redhat_00001.1.ep7.el7 < *
Red Hat · Red Hat JBoss Enterprise Application Platform 7.1 EUS for RHEL 7unaffected 1:1.5.5.016-1.redhat_00001.1.ep7.el7 < *
Red Hat · Red Hat JBoss Enterprise Application Platform 7.1 EUS for RHEL 7unaffected 0:3.5.11-1.Final_redhat_00001.1.ep7.el7 < *
Red Hat · Red Hat JBoss Enterprise Application Platform 7.1 EUS for RHEL 7unaffected 0:1.14.2-1.redhat_00002.1.ep7.el7 < *
Red Hat · Red Hat JBoss Enterprise Application Platform 7.1 EUS for RHEL 7unaffected 0:1.4.18-14.SP13_redhat_00001.1.ep7.el7 < *
Red Hat · Red Hat JBoss Enterprise Application Platform 7.1 EUS for RHEL 7unaffected 0:7.1.10-2.GA_redhat_00002.1.ep7.el7 < *
Red Hat · Red Hat JBoss Enterprise Application Platform 7.1 EUS for RHEL 7unaffected 0:5.0.3-2.redhat_00002.1.ep7.el7 < *
Red Hat · Red Hat JBoss Enterprise Application Platform 7.1 EUS for RHEL 7unaffected 0:2.0.10-2.redhat_00002.1.ep7.el7 < *
Red Hat · Red Hat JBoss Enterprise Application Platform 7.3 EUS for RHEL 7unaffected 0:2.10.4-3.redhat_00006.1.el7eap < *
Red Hat · Red Hat JBoss Enterprise Application Platform 7.3 EUS for RHEL 7unaffected 0:2.10.4-3.redhat_00006.1.el7eap < *
Red Hat · Red Hat JBoss Enterprise Application Platform 7.3 EUS for RHEL 7unaffected 0:2.10.4-5.redhat_00006.1.el7eap < *
Red Hat · Red Hat JBoss Enterprise Application Platform 7.3 EUS for RHEL 7unaffected 0:2.10.4-3.redhat_00006.1.el7eap < *
Red Hat · Red Hat JBoss Enterprise Application Platform 7.3 EUS for RHEL 7unaffected 0:2.10.4-5.redhat_00006.1.el7eap < *
Red Hat · Red Hat JBoss Enterprise Application Platform 7.3 EUS for RHEL 7unaffected 0:2.10.4-2.redhat_00006.1.el7eap < *
Red Hat · Red Hat JBoss Enterprise Application Platform 7.3 EUS for RHEL 7unaffected 0:1.7.2-16.Final_redhat_00017.1.el7eap < *
Red Hat · Red Hat JBoss Enterprise Application Platform 7.3 EUS for RHEL 7unaffected 0:4.1.63-5.Final_redhat_00003.1.el7eap < *
Red Hat · Red Hat JBoss Enterprise Application Platform 7.3 EUS for RHEL 7unaffected 0:2.0.41-4.SP5_redhat_00001.1.el7eap < *

Sources

SourceLicence
CVE List (CVEProject cvelistV5)CVE Program Terms of Use
EPSS (FIRST.org)FIRST — attribution requested
ENISA EUVDENISA — reproduction authorised, source acknowledged
NVD (NIST) via fkie-cad/nvd-json-data-feedsPublic domain — this product uses data from the NVD API but is not endorsed or certified by the NVD