CVE-2024-7885: Undertow vulnerable to Race Condition
(updated )
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.
References
- access.redhat.com/errata/RHSA-2024:6508
- access.redhat.com/errata/RHSA-2024:6883
- access.redhat.com/errata/RHSA-2024:7441
- access.redhat.com/errata/RHSA-2024:7442
- access.redhat.com/errata/RHSA-2024:7735
- access.redhat.com/errata/RHSA-2024:7736
- access.redhat.com/security/cve/CVE-2024-7885
- bugzilla.redhat.com/show_bug.cgi?id=2305290
- github.com/advisories/GHSA-9623-mqmm-5rcf
- github.com/undertow-io/undertow
- github.com/undertow-io/undertow/blob/182e4ca1543c52f438b0244c930dca3d8b6e68e3/core/src/main/java/io/undertow/server/protocol/proxy/ProxyProtocolReadListener.java
- github.com/undertow-io/undertow/commit/80c125e09068ac52ed0a9acde266ef12f8ed7ae1
- github.com/undertow-io/undertow/commit/ce5182c37376982ef0abee34fce0d8c0aab0fab8
- nvd.nist.gov/vuln/detail/CVE-2024-7885
Detect and mitigate CVE-2024-7885 with GitLab Dependency Scanning
Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →