CVE-2024-8088
Infinite loop when iterating over zip archive entry names from zipfile.Path
- Published
- Updated
- Reserved
- Assigned by
- PSF
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.
Timeline
ID reserved
By PSF
Published
- 15 months later
· 15 months later
Record updated
Changes after publication (a new score, a public exploit, EPSS crossing 1, 10 or 50 %, leaving KEV) are kept since November 2026; earlier ones are not known.
Scores
| Scored by | CVSS | Score | Vector |
|---|---|---|---|
| PSFCNA (assigner) | 4.0 | High8.7 | 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:L |
| NVDNVD · Deferred | 4.0 | High8.7 | 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/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 (exploitation in 30 days)
- 1.3% · top 30% of all CVEs (7 Nov 2026)
- CISA SSVC
- Exploitation: none · Automatable: yes · Technical impact: partial
The list uses the assigner's score when there is one, then CISA's, then NVD's: High 8.7.
Weakness
Affected products
Python Software Foundation · CPython
- affected < 3.8.20
- affected 3.9.0 – < 3.9.20
- affected 3.10.0 – < 3.10.15
- affected 3.11.0 – < 3.11.10
- affected 3.12.0 – < 3.12.6
- affected 3.13.0a1 – < 3.13.0rc2
References (22)
- https://mail.python.org/archives/list/[email protected]/thread/GNFCKVI4TCATKQLALJ5SN4L4CSPSMILU/ (opens in a new tab)vendor-advisory
- https://github.com/python/cpython/pull/122906 (opens in a new tab)patch
- https://github.com/python/cpython/issues/122905 (opens in a new tab)issue-tracking
- https://github.com/python/cpython/commit/795f2597a4be988e2bb19b69ff9958e981cb894e (opens in a new tab)patch
- https://github.com/python/cpython/commit/8c7348939d8a3ecd79d630075f6be1b0c5b41f64 (opens in a new tab)patch
- https://github.com/python/cpython/commit/dcc5182f27c1500006a1ef78e10613bb45788dea (opens in a new tab)patch
- https://github.com/python/cpython/commit/e0264a61119d551658d9445af38323ba94fc16db (opens in a new tab)patch
- https://github.com/python/cpython/issues/123270 (opens in a new tab)issue-tracking
- https://github.com/python/cpython/commit/2231286d78d328c2f575e0b05b16fe447d1656d6 (opens in a new tab)patch
- https://github.com/python/cpython/commit/7e8883a3f04d308302361aeffc73e0e9837f19d4 (opens in a new tab)patch
- https://github.com/python/cpython/commit/95b073bddefa6243effa08e131e297c0383e7f6a (opens in a new tab)patch
- https://github.com/python/cpython/commit/7bc367e464ce50b956dd232c1dfa1cad4e7fb814 (opens in a new tab)patch
- https://github.com/python/cpython/commit/962055268ed4f2ca1d717bfc8b6385de50a23ab7 (opens in a new tab)patch
- https://github.com/python/cpython/commit/fc0b8259e693caa8400fa8b6ac1e494e47ea7798 (opens in a new tab)patch
- https://github.com/python/cpython/commit/0aa1ee22ab6e204e9d3d0e9dd63ea648ed691ef1 (opens in a new tab)patch
- https://github.com/python/cpython/commit/9cd03263100ddb1657826cc4a71470786cab3932 (opens in a new tab)patch
- http://www.openwall.com/lists/oss-security/2024/08/22/1 (opens in a new tab)
- http://www.openwall.com/lists/oss-security/2024/08/22/4 (opens in a new tab)
- http://www.openwall.com/lists/oss-security/2024/08/23/1 (opens in a new tab)
- http://www.openwall.com/lists/oss-security/2024/08/23/2 (opens in a new tab)
- https://security.netapp.com/advisory/ntap-20241011-0010/ (opens in a new tab)
- https://lists.debian.org/debian-lts-announce/2024/12/msg00000.html (opens in a new tab)
Sources
The same CVE in the primary databases and aggregators, to check against.
- CVE.org record (opens in a new tab)
- CVE List JSON (GitHub) (opens in a new tab)
- NVD (opens in a new tab)
- FIRST EPSS (opens in a new tab)
- OSV.dev (opens in a new tab)
- GitHub Advisories (opens in a new tab)
- CIRCL Vulnerability-Lookup (opens in a new tab)
Badge for a README or a ticket
[](https://trackcve.app/cve/CVE-2024-8088)Record last updated .