Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

CVE-2024-5971: Uncontrolled Recursion

0
High
VulnerabilityCVE-2024-5971cvecve-2024-5971
Published: Mon Jul 08 2024 (07/08/2024, 20:51:29 UTC)
Source: CVE Database V5

Description

A vulnerability was found in Undertow, where the chunked response hangs after the body was flushed. The response headers and body were sent but the client would continue waiting as Undertow does not send the expected 0\r\n termination of the chunked response. This results in uncontrolled resource consumption, leaving the server side to a denial of service attack. This happens only with Java 17 TLSv1.3 scenarios.

AI-Powered Analysis

AILast updated: 11/14/2025, 11:01:19 UTC

Technical Analysis

CVE-2024-5971 is a vulnerability discovered in the Undertow web server framework, specifically affecting its handling of HTTP chunked transfer encoding responses when running on Java 17 with TLSv1.3 enabled. Normally, chunked transfer encoding requires the server to send a terminating chunk of "0\r\n" to signal the end of the response body. Due to this flaw, Undertow sends the response headers and body but fails to send the terminating chunk, causing the client to wait indefinitely for the completion signal. This hanging state leads to uncontrolled resource consumption on the server side, as connections remain open and resources tied up, effectively enabling a denial of service (DoS) attack. The vulnerability is remotely exploitable without any authentication or user interaction, increasing its risk profile. It affects Undertow versions from 0 up to 2.3.0.Alpha1. The CVSS v3.1 base score is 7.5, reflecting high severity due to the impact on availability and ease of exploitation over the network. No known exploits have been reported in the wild yet, but the vulnerability poses a significant risk to services relying on Undertow in Java 17 TLSv1.3 environments. The issue is particularly relevant for applications that handle high volumes of HTTP requests and rely on chunked transfer encoding for streaming or large responses. The root cause lies in the improper handling of the chunked response termination sequence, which is a protocol-level defect. Until a patch is released, affected users must consider mitigation strategies to prevent resource exhaustion and service disruption.

Potential Impact

For European organizations, this vulnerability presents a serious risk to the availability of web services and applications using Undertow on Java 17 with TLSv1.3. The uncontrolled resource consumption can lead to denial of service conditions, potentially disrupting critical business operations, customer-facing portals, and internal services. Industries such as finance, healthcare, government, and telecommunications, which often deploy Java-based middleware and web servers, could experience outages or degraded performance. The lack of required authentication or user interaction for exploitation means attackers can remotely trigger the DoS condition, increasing the attack surface. Additionally, the vulnerability could be leveraged as part of a larger attack chain to distract or disable defenses. Given the widespread use of Java and Undertow in enterprise environments across Europe, the impact could be significant, especially for organizations with high traffic volumes or those that rely on TLSv1.3 for secure communications. The absence of known exploits in the wild provides a window for proactive mitigation, but the potential for rapid exploitation remains.

Mitigation Recommendations

1. Monitor Undertow project communications and promptly apply official patches or updates once released that address CVE-2024-5971. 2. If immediate patching is not possible, consider disabling TLSv1.3 temporarily or reverting to an earlier Java version where the issue does not manifest, understanding the trade-offs in security and compatibility. 3. Implement rate limiting and connection timeouts at the web server or network edge to limit the impact of hanging connections and resource exhaustion. 4. Use web application firewalls (WAFs) or intrusion prevention systems (IPS) to detect and block abnormal request patterns that could trigger the vulnerability. 5. Conduct thorough testing of Undertow-based applications in staging environments with Java 17 TLSv1.3 to identify if they are affected and to validate mitigation strategies. 6. Review and optimize server resource allocation and monitoring to quickly detect unusual resource consumption indicative of exploitation attempts. 7. Educate development and operations teams about the vulnerability to ensure rapid response and awareness. 8. Consider architectural changes to reduce reliance on chunked transfer encoding where feasible or implement alternative response handling mechanisms.

Need more detailed analysis?Get Pro

Technical Details

Data Version
5.1
Assigner Short Name
redhat
Date Reserved
2024-06-13T13:50:13.855Z
Cvss Version
3.1
State
PUBLISHED

Threat ID: 68faafd950358b89bd7bfd50

Added to database: 10/23/2025, 10:44:41 PM

Last enriched: 11/14/2025, 11:01:19 AM

Last updated: 12/11/2025, 7:17:39 PM

Views: 156

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need enhanced features?

Contact root@offseq.com for Pro access with improved analysis and higher rate limits.

Latest Threats