CVE-2024-8088: Python Software Foundation CPython · Infinite Loop
Affects Python Software Foundation CPythonSource CVE Database V5
Not known to be exploited · CVSS 8.7 High.
Data as of 26 Oct 2026, 17:16 UTC
- EPSS
- 1.2% chance of exploitation in 30 days – higher than 69% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N/S:N/AU:N/R:U/RE:LExploitation evidence
Disclosed: evidence found.
CVE published 22 Aug 2024
Detectable: no evidence on record.
No public nuclei template indexed
Weaponised: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 26 Oct 2026.
What to do
Affected software
| Product | Affected | Fixed in |
|---|---|---|
| Python Software Foundation CPython | Affected
| Fixed in– |
AI-suggested
To mitigate CVE-2024-8088, European organizations should first identify all Python environments running versions 3.9.0 through 3.13.0a1 that utilize the zipfile.Path API. Until official patches are released, avoid using zipfile.Path methods such as namelist() and iterdir() on untrusted or user-supplied zip archives. Instead, use the unaffected zipfile.ZipFile class for archive processing where possible. Implement strict input validation and sandboxing for any service that accepts zip files, limiting resource consumption and execution time to prevent infinite loops from hanging processes. Employ runtime monitoring and alerting for unusually long or stuck Python processes handling zip files. Consider deploying application-layer firewalls or file scanning solutions to detect and block malicious zip archives before they reach vulnerable applications. Once patches become available from the Python Software Foundation, prioritize timely updates across all affected environments. Additionally, review and update incident response plans to include detection and mitigation steps for zip archive-based denial of service attempts. Educate developers and system administrators about this vulnerability to avoid inadvertent use of vulnerable APIs with untrusted data. Finally, maintain an inventory of third-party Python packages or tools that may internally use the vulnerable API and coordinate with vendors for updates.
Description
There is a HIGH severity vulnerability affecting the CPython "zipfile" module affecting "zipfile.Path". Note that the more common API "zipfile.ZipFile" class is unaffected. When iterating over names of entries in a zip archive (for example, methods of "zipfile.Path" like "namelist()", "iterdir()", etc) the process can be put into an infinite loop with a maliciously crafted zip archive. This defect applies when reading only metadata or extracting the contents of the zip archive. Programs that are not handling user-controlled zip archives are not affected.
References
- mail.python.org/archives/list/security-announce@python.org/thread/GNFCKVI4TCATKQLALJ5SN4L4CSPSMILU/ (opens in a new tab)
- github.com/python/cpython/pull/122906 (opens in a new tab)
- github.com/python/cpython/issues/122905 (opens in a new tab)
- github.com/python/cpython/commit/795f2597a4be988e2bb19b69ff9958e981cb894e (opens in a new tab)
- github.com/python/cpython/commit/8c7348939d8a3ecd79d630075f6be1b0c5b41f64 (opens in a new tab)
- github.com/python/cpython/commit/dcc5182f27c1500006a1ef78e10613bb45788dea (opens in a new tab)
- github.com/python/cpython/commit/e0264a61119d551658d9445af38323ba94fc16db (opens in a new tab)
- github.com/python/cpython/issues/123270 (opens in a new tab)
- github.com/python/cpython/commit/2231286d78d328c2f575e0b05b16fe447d1656d6 (opens in a new tab)
- github.com/python/cpython/commit/7e8883a3f04d308302361aeffc73e0e9837f19d4 (opens in a new tab)
- github.com/python/cpython/commit/95b073bddefa6243effa08e131e297c0383e7f6a (opens in a new tab)
- github.com/python/cpython/commit/7bc367e464ce50b956dd232c1dfa1cad4e7fb814 (opens in a new tab)
- github.com/python/cpython/commit/962055268ed4f2ca1d717bfc8b6385de50a23ab7 (opens in a new tab)
- github.com/python/cpython/commit/fc0b8259e693caa8400fa8b6ac1e494e47ea7798 (opens in a new tab)
- github.com/python/cpython/commit/0aa1ee22ab6e204e9d3d0e9dd63ea648ed691ef1 (opens in a new tab)
- github.com/python/cpython/commit/9cd03263100ddb1657826cc4a71470786cab3932 (opens in a new tab)
- openwall.com/lists/oss-security/2024/08/22/1 (opens in a new tab)
- openwall.com/lists/oss-security/2024/08/22/4 (opens in a new tab)
- openwall.com/lists/oss-security/2024/08/23/1 (opens in a new tab)
- openwall.com/lists/oss-security/2024/08/23/2 (opens in a new tab)
- security.netapp.com/advisory/ntap-20241011-0010/ (opens in a new tab)
- lists.debian.org/debian-lts-announce/2024/12/msg00000.html (opens in a new tab)