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-5569: CWE-835 Loop with Unreachable Exit Condition in jaraco jaraco/zipp

0
Medium
VulnerabilityCVE-2024-5569cvecve-2024-5569cwe-835
Published: Tue Jul 09 2024 (07/09/2024, 00:00:14 UTC)
Source: CVE Database V5
Vendor/Project: jaraco
Product: jaraco/zipp

Description

A Denial of Service (DoS) vulnerability exists in the jaraco/zipp library, affecting all versions prior to 3.19.1. The vulnerability is triggered when processing a specially crafted zip file that leads to an infinite loop. This issue also impacts the zipfile module of CPython, as features from the third-party zipp library are later merged into CPython, and the affected code is identical in both projects. The infinite loop can be initiated through the use of functions affecting the `Path` module in both zipp and zipfile, such as `joinpath`, the overloaded division operator, and `iterdir`. Although the infinite loop is not resource exhaustive, it prevents the application from responding. The vulnerability was addressed in version 3.19.1 of jaraco/zipp.

AI-Powered Analysis

AILast updated: 10/15/2025, 13:31:43 UTC

Technical Analysis

CVE-2024-5569 is a Denial of Service vulnerability classified under CWE-835 (Loop with Unreachable Exit Condition) found in the jaraco/zipp Python library, affecting all versions prior to 3.19.1. The vulnerability is triggered when the library processes a specially crafted zip file that causes an infinite loop in path-related functions such as joinpath, the overloaded division operator (/), and iterdir. These functions manipulate Path objects within the library and the infinite loop prevents the application from progressing, effectively causing it to hang. The vulnerability also affects the zipfile module in CPython because features from jaraco/zipp have been merged into it, and the vulnerable code is identical. The infinite loop is not resource exhaustive, meaning it does not consume excessive CPU or memory but still causes the application to become unresponsive. Exploitation does not require authentication or user interaction, and the attack vector is local (AV:L), meaning the attacker must have local access to the system or the ability to supply crafted zip files to the application. The CVSS v3.0 base score is 6.2, indicating a medium severity level. The issue was addressed in jaraco/zipp version 3.19.1 by fixing the loop condition to ensure proper exit. No known exploits have been reported in the wild, but the vulnerability poses a risk to applications that rely on these libraries for zip file handling, especially those that process untrusted zip files.

Potential Impact

For European organizations, this vulnerability can lead to denial of service conditions in applications that use jaraco/zipp or the Python zipfile module for handling zip files. This may affect web services, automation scripts, or backend systems that process uploaded zip archives, potentially causing application hangs and service unavailability. Although the infinite loop is not resource exhaustive, the unresponsiveness can disrupt business operations, degrade user experience, and increase operational costs due to downtime or manual intervention. Organizations in sectors with high reliance on Python-based automation, cloud services, or data processing pipelines are particularly at risk. Additionally, industries such as finance, healthcare, and government, which often handle large volumes of compressed data, may face operational disruptions. The lack of known exploits reduces immediate risk, but the ease of triggering the infinite loop with crafted zip files means attackers with local access or the ability to upload files could exploit this vulnerability to cause service interruptions.

Mitigation Recommendations

European organizations should immediately upgrade jaraco/zipp to version 3.19.1 or later to remediate this vulnerability. For applications using the Python standard library zipfile module, ensure that the Python runtime is updated to a version that includes the patched code from jaraco/zipp. Implement strict input validation and sanitization for all zip files processed by applications, especially those uploaded by untrusted users. Employ sandboxing or resource-limiting techniques to isolate processes handling zip files, preventing a single hung process from impacting overall system availability. Monitor application logs and performance metrics for signs of unresponsiveness or infinite loops during zip file processing. Where feasible, restrict the ability to upload or process zip files to trusted users or systems. Additionally, consider implementing timeout mechanisms for file processing operations to recover from potential hangs. Finally, maintain an inventory of all Python dependencies and regularly scan for vulnerable versions to ensure timely patching.

Need more detailed analysis?Get Pro

Technical Details

Data Version
5.1
Assigner Short Name
@huntr_ai
Date Reserved
2024-05-31T16:33:31.197Z
Cvss Version
3.0
State
PUBLISHED

Threat ID: 68ef9b28178f764e1f470ca0

Added to database: 10/15/2025, 1:01:28 PM

Last enriched: 10/15/2025, 1:31:43 PM

Last updated: 12/3/2025, 10:26:06 AM

Views: 24

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