CVE-2024-1635
Undertow Uncontrolled Resource Consumption Vulnerability
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.
Affected Maven artifacts (1)
| Artifact | Affected versions | Fixed in |
|---|---|---|
| io.undertow » undertow-core | < 2.2.31.Final>= 2.3.0.Final, < 2.3.12.Final | 2.2.31.Final, 2.3.12.Final |
Blast radius
66% of the dependent artifacts (3,381) still pull an affected version in their latest release.
| Depth | Dependent versions |
|---|---|
| Direct | 31,080 |
| 2 hops | 52,182 |
| 3 hops | 44,859 |
| 4 hops | 22,888 |
| 5 hops | 7,832 |
| 6 hops | 4,162 |
Most used dependents
- io.quarkus » quarkus-maven-plugin1,484 usages
- io.quarkus » quarkus-resteasy1,251 usages
- com.networknt » json-schema-validator837 usages
- org.springframework.boot » spring-boot-starter-undertow804 usages
- org.infinispan » infinispan-core644 usages
- org.apache.camel.springboot » camel-core-starter558 usages
- io.quarkus » quarkus-resteasy-jackson543 usages
- org.apache.camel.springboot » camel-spring-boot-starter478 usages
- org.wildfly.core » wildfly-server477 usages
- io.quarkus » quarkus-smallrye-health469 usages
- io.undertow » undertow-servlet443 usages
- org.wildfly.plugins » wildfly-maven-plugin430 usages
- io.quarkus » quarkus-smallrye-openapi419 usages
- org.wildfly » wildfly-feature-pack372 usages
- com.alibaba » dubbo337 usages
Computed from the dependency graph of build 20261124.0621 (compile and runtime scopes, nearest version wins). Exclusions and dependency management in consuming projects are not applied, so dependents are potentially affected. When several artifacts are affected, a dependent version that pulls more than one of them is counted once per artifact.
References
| Advisory | NVD CVE-2024-1635 | nvd.nist.gov |
| Package | undertow-io/undertow | github.com |
| Web | undertow-io/undertow commit 7d388c5 | github.com |
| Web | undertow-io/undertow commit 3cdb104 | github.com |
| Web | advisory/ntap-20240322-0007 | security.netapp.com |
| Web | show_bug.cgi | bugzilla.redhat.com |
| Web | security/cve/CVE-2024-1635 | access.redhat.com |
| Web | errata/RHSA-2025:4226 | access.redhat.com |
| Web | errata/RHSA-2024:4884 | access.redhat.com |
| Web | errata/RHSA-2024:3354 | access.redhat.com |
| Web | errata/RHSA-2024:1866 | access.redhat.com |
| Web | errata/RHSA-2024:1864 | access.redhat.com |
| Web | errata/RHSA-2024:1862 | access.redhat.com |
| Web | errata/RHSA-2024:1861 | access.redhat.com |
| Web | errata/RHSA-2024:1860 | access.redhat.com |
| Web | errata/RHSA-2024:1677 | access.redhat.com |
| Web | errata/RHSA-2024:1676 | access.redhat.com |
| Web | errata/RHSA-2024:1675 | access.redhat.com |
| Web | errata/RHSA-2024:1674 | access.redhat.com |
