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-0450: CWE-405 in Python Software Foundation CPython

0
Medium
VulnerabilityCVE-2024-0450cvecve-2024-0450cwe-405
Published: Tue Mar 19 2024 (03/19/2024, 15:12:07 UTC)
Source: CVE Database V5
Vendor/Project: Python Software Foundation
Product: CPython

Description

An issue was found in the CPython `zipfile` module affecting versions 3.12.1, 3.11.7, 3.10.13, 3.9.18, and 3.8.18 and prior. The zipfile module is vulnerable to “quoted-overlap” zip-bombs which exploit the zip format to create a zip-bomb with a high compression ratio. The fixed versions of CPython makes the zipfile module reject zip archives which overlap entries in the archive.

AI-Powered Analysis

AILast updated: 11/03/2025, 23:11:40 UTC

Technical Analysis

CVE-2024-0450 is a vulnerability in the CPython zipfile module affecting multiple Python versions including 3.8.18 through 3.12.1 and earlier. The issue arises from the zipfile module's improper handling of zip archives containing overlapping entries, a technique known as a 'quoted-overlap' zip-bomb. Zip-bombs are maliciously crafted compressed files that exploit compression algorithms to expand massively upon decompression, overwhelming system resources such as CPU, memory, and disk space. This specific variant leverages overlapping file entries within the zip archive to achieve a high compression ratio, making detection and mitigation more difficult. When a vulnerable Python application processes such a zip file, it can lead to denial of service (DoS) by exhausting resources, potentially causing application crashes or system instability. The vulnerability does not allow for unauthorized data access or modification, focusing its impact solely on availability. Exploitation requires an attacker to supply a malicious zip file to an application using the vulnerable zipfile module, with no authentication or user interaction needed. The Python Software Foundation addressed this vulnerability by updating the zipfile module to reject zip archives with overlapping entries, effectively preventing this attack vector. No known exploits are currently in the wild, but the medium CVSS score of 6.2 reflects the significant availability impact and ease of exploitation. This vulnerability is classified under CWE-405, which relates to improper initialization leading to resource exhaustion or similar issues.

Potential Impact

For European organizations, the primary impact of CVE-2024-0450 is denial of service, which can disrupt critical applications that rely on Python's zipfile module to process compressed data. Industries such as finance, healthcare, government, and technology that use Python for data processing, automation, or web services may experience service outages or degraded performance if targeted with malicious zip files. This can lead to operational downtime, loss of productivity, and potential reputational damage. Since the vulnerability does not compromise confidentiality or integrity, data breaches are not a direct concern; however, availability issues can indirectly affect business continuity and compliance with service-level agreements. Organizations that accept or process user-uploaded zip files or integrate third-party data feeds compressed in zip format are particularly at risk. The vulnerability's ease of exploitation without authentication increases the threat surface, especially in environments where untrusted data is handled. European entities with extensive Python usage in software development, cloud services, and automation are more exposed. The lack of known active exploits reduces immediate risk but does not eliminate the potential for future attacks.

Mitigation Recommendations

To mitigate CVE-2024-0450, European organizations should prioritize upgrading to the fixed CPython versions where the zipfile module rejects overlapping zip entries. Specifically, updating to versions beyond 3.12.1, 3.11.7, 3.10.13, 3.9.18, or 3.8.18 is essential. For environments where immediate upgrading is not feasible, implement additional validation layers to inspect zip files for overlapping entries or abnormal compression ratios before processing. Employ sandboxing or resource-limiting techniques when decompressing zip files to contain potential resource exhaustion. Incorporate monitoring and alerting for unusual CPU, memory, or disk usage spikes during file processing. Educate developers and system administrators about the risks of processing untrusted zip files and enforce strict input validation policies. Where possible, restrict the acceptance of zip files from untrusted or anonymous sources. Finally, maintain an incident response plan to quickly address denial of service conditions arising from malicious file processing.

Need more detailed analysis?Get Pro

Technical Details

Data Version
5.2
Assigner Short Name
PSF
Date Reserved
2024-01-11T22:16:41.964Z
Cvss Version
3.1
State
PUBLISHED

Threat ID: 69092613fe7723195e0b3035

Added to database: 11/3/2025, 10:00:51 PM

Last enriched: 11/3/2025, 11:11:40 PM

Last updated: 11/5/2025, 1:01:37 PM

Views: 1

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