CVE-2024-7885: Undertow vulnerable to Race Condition
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.
Published Aug 21, 2024 · Updated Jan 19, 2026
Affected packages
io.undertow:undertow-core
- Ecosystem
- Maven
- Affected
- < 2.2.36.Final
- Fixed in
- 2.2.36.Final
- Check
mvn dependency:tree -Dincludes=io.undertow:undertow-core
io.undertow:undertow-core
- Ecosystem
- Maven
- Affected
- >= 2.3.0.Alpha1, < 2.3.17.Final
- Fixed in
- 2.3.17.Final
- Check
mvn dependency:tree -Dincludes=io.undertow:undertow-core
Advisory details
From the GitHub Advisory Database (CC BY 4.0).
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.
Credited to jw123023.
References
- https://nvd.nist.gov/vuln/detail/CVE-2024-7885
- https://access.redhat.com/security/cve/CVE-2024-7885
- https://bugzilla.redhat.com/show_bug.cgi?id=2305290
- https://github.com/undertow-io/undertow/blob/182e4ca1543c52f438b0244c930dca3d8b6e68e3/core/src/main/java/io/undertow/server/protocol/proxy/ProxyProtocolReadListener.java
- https://access.redhat.com/errata/RHSA-2024:6508
- https://access.redhat.com/errata/RHSA-2024:6883
- https://access.redhat.com/errata/RHSA-2024:7441
- https://access.redhat.com/errata/RHSA-2024:7442
- https://access.redhat.com/errata/RHSA-2024:7735
- https://access.redhat.com/errata/RHSA-2024:7736
- https://github.com/undertow-io/undertow/commit/80c125e09068ac52ed0a9acde266ef12f8ed7ae1
- https://github.com/undertow-io/undertow/commit/ce5182c37376982ef0abee34fce0d8c0aab0fab8
- https://access.redhat.com/errata/RHSA-2024:11023
- https://security.netapp.com/advisory/ntap-20241011-0004
- https://access.redhat.com/errata/RHSA-2025:16667
- https://access.redhat.com/errata/RHSA-2026:0743
- https://access.redhat.com/errata/RHSA-2024:8080
- https://github.com/advisories/GHSA-9623-mqmm-5rcf
How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology
More Maven vulnerabilities
All Maven entriesCVE-2026-28367
Undertow is Vulnerable to HTTP Request/Response Smuggling
high8.7Mar 27, 2026CVE-2026-28368
Undertow is Vulnerable to HTTP Request/Response Smuggling
high8.7Mar 27, 2026CVE-2026-28369
Undertow is Vulnerable to HTTP Request/Response Smuggling
high8.7Mar 27, 2026CVE-2026-3260
Undertow: Denial of Service via Multipart/Form-Data Parsing on HTTP GET Requests
medium5.9No fixMar 24, 2026CVE-2024-4027
Undertow Servlets Vulnerable to Remote DoS via OutOfMemoryError when Passed Large Parameter Names
high7.5Jan 30, 2026CVE-2025-12543
Undertow HTTP server core doesn't properly validate the Host header in incoming HTTP requests
critical9.6No fixJan 7, 2026
