CVE-2024-7885
Undertow vulnerable to Race Condition
Description
A vulnerability was found in Undertow where the ProxyProtocolReadListener reuses the same StringBuilder instance across multiple requests. This issue occurs when the parseProxyProtocolV1 method processes multiple requests on the same HTTP connection. As a result, different requests may share the same StringBuilder instance, potentially leading to information leakage between requests or responses. In some cases, a value from a previous request or response may be erroneously reused, which could lead to unintended data exposure. This issue primarily results in errors and connection termination but creates a risk of data leakage in multi-request environments.
Affected Maven artifacts (1)
| Artifact | Affected versions | Fixed in |
|---|---|---|
| io.undertow » undertow-core | < 2.2.36.Final>= 2.3.0.Alpha1, < 2.3.17.Final | 2.2.36.Final, 2.3.17.Final |
Blast radius
67% of the dependent artifacts (3,478) still pull an affected version in their latest release.
| Depth | Dependent versions |
|---|---|
| Direct | 32,579 |
| 2 hops | 55,250 |
| 3 hops | 46,531 |
| 4 hops | 23,756 |
| 5 hops | 8,409 |
| 6 hops | 4,242 |
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-7885 | nvd.nist.gov |
| Package | undertow-io/undertow | github.com |
| Web | undertow-io/undertow commit ce5182c | github.com |
| Web | undertow-io/undertow commit 80c125e | github.com |
| Web | advisory/ntap-20241011-0004 | security.netapp.com |
| Web | undertow-io/undertow ProxyProtocolReadListener.java | github.com |
| Web | show_bug.cgi | bugzilla.redhat.com |
| Web | security/cve/CVE-2024-7885 | access.redhat.com |
| Web | errata/RHSA-2026:0743 | access.redhat.com |
| Web | errata/RHSA-2025:16667 | access.redhat.com |
| Web | errata/RHSA-2024:8080 | access.redhat.com |
| Web | errata/RHSA-2024:7736 | access.redhat.com |
| Web | errata/RHSA-2024:7735 | access.redhat.com |
| Web | errata/RHSA-2024:7442 | access.redhat.com |
| Web | errata/RHSA-2024:7441 | access.redhat.com |
| Web | errata/RHSA-2024:6883 | access.redhat.com |
| Web | errata/RHSA-2024:6508 | access.redhat.com |
| Web | errata/RHSA-2024:11023 | access.redhat.com |
