CVE-2024-8088: Libpython · Infinite loop when iterating over zip archive entry names from zipfile.Path
Affects libpythonSource GCVE Database
Not known to be exploited · CVSS 8.7 High · fixed in 3.12.6 : patch libpython soon.
Data as of 4 Nov 2026, 18:27 UTC
Thin evidence
One scorer or none| CNA (PSF) | CVSS 4.0 | 8.7 |
|---|
- Patch
- Available – fixed in 3.12.6, 3.11.10, 3.10.15 +2
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
Weaponized: 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 4 Nov 2026.
What to do
Upgrade to a fixed release listed under Affected software.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
Bitnamilibpythonpkg:bitnami/libpythonOther threats | Affected
| Fixed in
|
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
Apply the official patches by upgrading to CPython versions 3.8.20, 3.9.20, 3.10.15, 3.11.10, or 3.12.6 or later. Avoid processing untrusted zip archives with zipfile.Path methods until patched. No other mitigations are specified.
Description
CVE-2024-8088 is a high severity vulnerability in the CPython zipfile module's zipfile.Path API. Iterating over entry names in a maliciously crafted zip archive can cause an infinite loop. This affects metadata reading and content extraction via zipfile.Path methods like namelist() and iterdir(). The more common zipfile.ZipFile class is not affected. Only programs processing untrusted zip archives are at risk. Fixed versions are available.
References
- 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)
- github.com/python/cpython/commit/0aa1ee22ab6e204e9d3d0e9dd63ea648ed691ef1 (opens in a new tab)
- github.com/python/cpython/commit/2231286d78d328c2f575e0b05b16fe447d1656d6 (opens in a new tab)
- github.com/python/cpython/commit/795f2597a4be988e2bb19b69ff9958e981cb894e (opens in a new tab)
- github.com/python/cpython/commit/7bc367e464ce50b956dd232c1dfa1cad4e7fb814 (opens in a new tab)
- github.com/python/cpython/commit/7e8883a3f04d308302361aeffc73e0e9837f19d4 (opens in a new tab)
- github.com/python/cpython/commit/8c7348939d8a3ecd79d630075f6be1b0c5b41f64 (opens in a new tab)
- github.com/python/cpython/commit/95b073bddefa6243effa08e131e297c0383e7f6a (opens in a new tab)
- github.com/python/cpython/commit/962055268ed4f2ca1d717bfc8b6385de50a23ab7 (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/commit/fc0b8259e693caa8400fa8b6ac1e494e47ea7798 (opens in a new tab)
- github.com/python/cpython/issues/122905 (opens in a new tab)
- github.com/python/cpython/issues/123270 (opens in a new tab)
- github.com/python/cpython/pull/122906 (opens in a new tab)
- mail.python.org/archives/list/security-announce@python.org/thread/GNFCKVI4TCATKQLALJ5SN4L4CSPSMILU/ (opens in a new tab)
- nvd.nist.gov/vuln/detail/CVE-2024-8088 (opens in a new tab)