CVE-2024-8088: Infinite loop when iterating over zip archive entry names from zipfile.Path
Vulnerability summary
CVE-2024-8088 is a high (CVSS 8.7) Loop with Unreachable Exit Condition vulnerability in python software foundation cpython. EPSS estimates a 1.27% chance of exploitation in the next 30 days, higher than 69.9% of scored vulnerabilities.
Severe, CVSS 8.7 (CVE.org); no exploitation reported by the 5 checked sources; EPSS 1% (FIRST, 03-11-2026)
Source freshness unavailable
How is this decided?Advisory lineage
Upstream 0 · Downstream 24 · Related 21Timeline
- 22-08-2024PublishedVulnerability first disclosed.
- 03-11-2025Last modifiedVulnerability information updated.
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.
CVSS metrics
8 scores · 8 sources · 2 versions- OSV · AlpineEcosystem advisory · calculated8.7HighCVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:N/AU:N/R:U/V:X/RE:L/U:X
- OSV · UbuntuEcosystem advisory · calculated8.7HighCVSS: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:L
- OSV · DebianEcosystem advisory · calculated8.7HighCVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:N/AU:N/R:U/V:X/RE:L/U:X
- OSV · WolfiEcosystem advisory · calculated8.7HighCVSS: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:L
- OSV · ChainguardEcosystem advisory · calculated8.7HighCVSS: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:L
- NVDNIST8.7HighCVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:N/AU:N/R:U/V:X/RE:L/U:X
EPSS trend
Probability
1.27%
Chance of exploitation in the next 30 days
Percentile
70%
Versus all other CVEs
30-day change
No change 0.00 pp
From 1.27% on 04-10-2026
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root causeAffected systems
Known conditions: network-reachable, no authentication, no user interaction (CVSS vector). Other conditions: not stated in public data.
Redhat11 products
- python-unversioned-command< 0:3.9.19-8.el9
- python3< 0:3.9.19-8.el9
- python3-debug< 0:3.9.19-8.el9
- python3-devel< 0:3.9.19-8.el9
- python3-idle< 0:3.9.19-8.el9
Opensuse6 products
- python310&distro=openSUSE Tumbleweed< 3.10.14-7.1
- python311&distro=openSUSE Tumbleweed< 3.11.9-7.1
- python312&distro=openSUSE Tumbleweed< 3.12.5-2.1
- python313&distro=openSUSE Tumbleweed< 3.13.0~rc1-3.1
- python38&distro=openSUSE Tumbleweed< 3.8.19-8.1
Ubuntu5 products
- python3.10< 3.10.12-1~22.04.6
- python3.11All versions (No fix recorded)
- python3.12< 3.12.3-1ubuntu0.2
- python3.8All versions (No fix recorded) | < 3.8.10-0ubuntu1~20.04.12
- python3.9All versions (No fix recorded)
Chainguard4 products
- python-3.10< 3.10.14-r6
- python-3.11< 3.11.9-r8
- python-3.12< 3.12.5-r1
- python-3.9< 3.9.20-r0
Debian3 products
- pypy3All versions (No fix recorded) | < 7.3.18+dfsg-1
- python3.11< 3.11.2-6+deb12u3
- python3.13< 3.13.0~rc2-1
Wolfi3 products
- python-3.10< 3.10.14-r6
- python-3.11< 3.11.9-r8
- python-3.12< 3.12.5-r1
Alpine1 product
- python3< 3.10.14-r2 | < 3.11.8-r1 | < 3.11.9-r1 | < 3.12.3-r2 | < 3.12.5-r1
Python software foundation1 product
- cpython< 3.8.20 | ≥ 3.9.0, < 3.9.20 | ≥ 3.10.0, < 3.10.15 | ≥ 3.11.0, < 3.11.10 | ≥ 3.12.0, < 3.12.6 | ≥ 3.13.0a1, < 3.13.0rc2
8 vendors · 34 products
References
38 links- mail.python.org/archives/list/security-announce@python.org/thread/GNFCKVI4TCATKQLALJ5SN4L4CSPSMILU/Vendor AdvisoryARTICLEREPORTAdvisory
Show all 38 references
- github.com/python/cpythonPACKAGE