CVE-2024-7885: Undertow: improper state management in proxy protocol parsing causes information leakage
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.
Other sources
A vulnerability was found in Undertow where the ProxyProtocolReadListener reuses the same StringBuilder instance across multiple requests. This 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.
— Red Hat
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
maven/io.undertow:undertow-coreto a version that resolves this vulnerability.Fixed in 2.3.17.Final - Upgrade
Upgrade
maven/io.undertow:undertow-coreto a version that resolves this vulnerability.Fixed in 2.2.36.Final
Event History
Frequently Asked Questions
What is the severity of CVE-2024-7885?
The severity of CVE-2024-7885 is classified as high due to potential information disclosure risks.
How do I fix CVE-2024-7885?
To fix CVE-2024-7885, upgrade to Undertow version 2.3.17.Final or 2.2.36.Final.
Which versions are affected by CVE-2024-7885?
CVE-2024-7885 affects Undertow versions from 2.3.0.Alpha1 up to 2.3.17.Final, and any versions prior to 2.2.36.Final.
What type of vulnerability is CVE-2024-7885?
CVE-2024-7885 is a vulnerability related to improper handling of input due to the reuse of a StringBuilder instance.
What software packages are impacted by CVE-2024-7885?
CVE-2024-7885 impacts various Red Hat software packages including JBoss, Data Grid, and Keycloak.