CVE-2024-8088
published high CVSS 4.0 · 8.7Infinite loop when iterating over zip archive entry names from zipfile.Path
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Python Software Foundation | — | CPython0 to < 3.8.20 · 3.9.0 to < 3.9.20 · 3.10.0 to < 3.10.15 · 3.11.0 to < 3.11.10 · 3.12.0 to < 3.12.6 · 3.13.0a1 to < 3.13.0rc2 · Other versions: unaffected | Affected | Not stated | PSF |
| python_software_foundation | — | cpython0 through 3.13.0 · Other versions: unknown | Affected | Not stated | CISA-ADP |
| Amazon Linux | AL2 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
| Amazon Linux | AL2 | Release evaluationALAS2PYTHON3.8-2024-016 | Fixed | Not stated | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluationALAS2023-2024-788 | Fixed | Not stated | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluationALAS2023-2024-790 | Fixed | Not stated | Amazon Linux assessment |
| AlmaLinux | 8 | python3.11 | Advisory build | 3.11.9-7.el8_10 | ALSA-2024:6962 |
| Alpine Linux | edge | python3 | Fixed | 3.12.5-r1 | Package fix record |
Show 98 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| AlmaLinux | 8 | python3.11-debug | Advisory build | 3.11.9-7.el8_10 | ALSA-2024:6962 |
| AlmaLinux | 8 | python3.11-devel | Advisory build | 3.11.9-7.el8_10 | ALSA-2024:6962 |
| AlmaLinux | 8 | python3.11-idle | Advisory build | 3.11.9-7.el8_10 | ALSA-2024:6962 |
| AlmaLinux | 8 | python3.11-libs | Advisory build | 3.11.9-7.el8_10 | ALSA-2024:6962 |
| AlmaLinux | 8 | python3.11-rpm-macros | Advisory build | 3.11.9-7.el8_10 | ALSA-2024:6962 |
| AlmaLinux | 8 | python3.11-test | Advisory build | 3.11.9-7.el8_10 | ALSA-2024:6962 |
| AlmaLinux | 8 | python3.11-tkinter | Advisory build | 3.11.9-7.el8_10 | ALSA-2024:6962 |
| AlmaLinux | 8 | python3.12 | Advisory build | 3.12.5-2.el8_10 | ALSA-2024:6961 |
| AlmaLinux | 8 | python3.12-debug | Advisory build | 3.12.5-2.el8_10 | ALSA-2024:6961 |
| AlmaLinux | 8 | python3.12-devel | Advisory build | 3.12.5-2.el8_10 | ALSA-2024:6961 |
| AlmaLinux | 8 | python3.12-idle | Advisory build | 3.12.5-2.el8_10 | ALSA-2024:6961 |
| AlmaLinux | 8 | python3.12-libs | Advisory build | 3.12.5-2.el8_10 | ALSA-2024:6961 |
| AlmaLinux | 8 | python3.12-rpm-macros | Advisory build | 3.12.5-2.el8_10 | ALSA-2024:6961 |
| AlmaLinux | 8 | python3.12-test | Advisory build | 3.12.5-2.el8_10 | ALSA-2024:6961 |
| AlmaLinux | 8 | python3.12-tkinter | Advisory build | 3.12.5-2.el8_10 | ALSA-2024:6961 |
| AlmaLinux | 8 | python39 | Advisory build | 3.9.19-7.module_el8.10.0+3885+d986a391 | ALSA-2024:5962 |
| AlmaLinux | 8 | python39-Cython | Advisory build | 0.29.21-5.module_el8.6.0+2780+a40f65e1 | ALSA-2024:5962 |
| AlmaLinux | 8 | python39-Cython | Advisory build | 0.29.21-5.module_el8.6.0+3248+c431e88c | ALSA-2024:5962 |
| AlmaLinux | 8 | python39-PyMySQL | Advisory build | 0.10.1-2.module_el8.6.0+2780+a40f65e1 | ALSA-2024:5962 |
| AlmaLinux | 8 | python39-attrs | Advisory build | 20.3.0-2.module_el8.6.0+2780+a40f65e1 | ALSA-2024:5962 |
| AlmaLinux | 8 | python39-cffi | Advisory build | 1.14.3-2.module_el8.6.0+2780+a40f65e1 | ALSA-2024:5962 |
| AlmaLinux | 8 | python39-cffi | Advisory build | 1.14.3-2.module_el8.6.0+3248+c431e88c | ALSA-2024:5962 |
| AlmaLinux | 8 | python39-chardet | Advisory build | 3.0.4-19.module_el8.6.0+2780+a40f65e1 | ALSA-2024:5962 |
| AlmaLinux | 8 | python39-cryptography | Advisory build | 3.3.1-3.module_el8.10.0+3765+2f9a457d | ALSA-2024:5962 |
| AlmaLinux | 8 | python39-debug | Advisory build | 3.9.19-7.module_el8.10.0+3885+d986a391 | ALSA-2024:5962 |
| AlmaLinux | 8 | python39-devel | Advisory build | 3.9.19-7.module_el8.10.0+3885+d986a391 | ALSA-2024:5962 |
| AlmaLinux | 8 | python39-idle | Advisory build | 3.9.19-7.module_el8.10.0+3885+d986a391 | ALSA-2024:5962 |
| AlmaLinux | 8 | python39-idna | Advisory build | 2.10-4.module_el8.10.0+3849+a48d89aa | ALSA-2024:5962 |
| AlmaLinux | 8 | python39-iniconfig | Advisory build | 1.1.1-2.module_el8.6.0+2780+a40f65e1 | ALSA-2024:5962 |
| AlmaLinux | 8 | python39-libs | Advisory build | 3.9.19-7.module_el8.10.0+3885+d986a391 | ALSA-2024:5962 |
| AlmaLinux | 8 | python39-lxml | Advisory build | 4.6.5-1.module_el8.6.0+2780+a40f65e1 | ALSA-2024:5962 |
| AlmaLinux | 8 | python39-lxml | Advisory build | 4.6.5-1.module_el8.6.0+3248+c431e88c | ALSA-2024:5962 |
| AlmaLinux | 8 | python39-mod_wsgi | Advisory build | 4.7.1-7.module_el8.9.0+3634+fb2a896c | ALSA-2024:5962 |
| AlmaLinux | 8 | python39-more-itertools | Advisory build | 8.5.0-2.module_el8.6.0+2780+a40f65e1 | ALSA-2024:5962 |
| AlmaLinux | 8 | python39-numpy | Advisory build | 1.19.4-3.module_el8.6.0+2780+a40f65e1 | ALSA-2024:5962 |
| AlmaLinux | 8 | python39-numpy | Advisory build | 1.19.4-3.module_el8.6.0+3248+c431e88c | ALSA-2024:5962 |
| AlmaLinux | 8 | python39-numpy-doc | Advisory build | 1.19.4-3.module_el8.6.0+2780+a40f65e1 | ALSA-2024:5962 |
| AlmaLinux | 8 | python39-numpy-f2py | Advisory build | 1.19.4-3.module_el8.6.0+2780+a40f65e1 | ALSA-2024:5962 |
| AlmaLinux | 8 | python39-numpy-f2py | Advisory build | 1.19.4-3.module_el8.6.0+3248+c431e88c | ALSA-2024:5962 |
| AlmaLinux | 8 | python39-packaging | Advisory build | 20.4-4.module_el8.6.0+2780+a40f65e1 | ALSA-2024:5962 |
| AlmaLinux | 8 | python39-pip | Advisory build | 20.2.4-9.module_el8.10.0+3765+2f9a457d | ALSA-2024:5962 |
| AlmaLinux | 8 | python39-pip-wheel | Advisory build | 20.2.4-9.module_el8.10.0+3765+2f9a457d | ALSA-2024:5962 |
| AlmaLinux | 8 | python39-pluggy | Advisory build | 0.13.1-3.module_el8.6.0+2780+a40f65e1 | ALSA-2024:5962 |
| AlmaLinux | 8 | python39-ply | Advisory build | 3.11-10.module_el8.6.0+2780+a40f65e1 | ALSA-2024:5962 |
| AlmaLinux | 8 | python39-psutil | Advisory build | 5.8.0-4.module_el8.6.0+2780+a40f65e1 | ALSA-2024:5962 |
| AlmaLinux | 8 | python39-psutil | Advisory build | 5.8.0-4.module_el8.6.0+3248+c431e88c | ALSA-2024:5962 |
| AlmaLinux | 8 | python39-psycopg2 | Advisory build | 2.8.6-3.module_el8.10.0+3765+2f9a457d | ALSA-2024:5962 |
| AlmaLinux | 8 | python39-psycopg2-doc | Advisory build | 2.8.6-3.module_el8.10.0+3765+2f9a457d | ALSA-2024:5962 |
| AlmaLinux | 8 | python39-psycopg2-tests | Advisory build | 2.8.6-3.module_el8.10.0+3765+2f9a457d | ALSA-2024:5962 |
| AlmaLinux | 8 | python39-py | Advisory build | 1.10.0-1.module_el8.6.0+2780+a40f65e1 | ALSA-2024:5962 |
| AlmaLinux | 8 | python39-pybind11 | Advisory build | 2.7.1-1.module_el8.6.0+2780+a40f65e1 | ALSA-2024:5962 |
| AlmaLinux | 8 | python39-pybind11 | Advisory build | 2.7.1-1.module_el8.6.0+3248+c431e88c | ALSA-2024:5962 |
| AlmaLinux | 8 | python39-pybind11-devel | Advisory build | 2.7.1-1.module_el8.6.0+2780+a40f65e1 | ALSA-2024:5962 |
| AlmaLinux | 8 | python39-pybind11-devel | Advisory build | 2.7.1-1.module_el8.6.0+3248+c431e88c | ALSA-2024:5962 |
| AlmaLinux | 8 | python39-pycparser | Advisory build | 2.20-3.module_el8.6.0+2780+a40f65e1 | ALSA-2024:5962 |
| AlmaLinux | 8 | python39-pyparsing | Advisory build | 2.4.7-5.module_el8.6.0+2780+a40f65e1 | ALSA-2024:5962 |
| AlmaLinux | 8 | python39-pysocks | Advisory build | 1.7.1-4.module_el8.6.0+2780+a40f65e1 | ALSA-2024:5962 |
| AlmaLinux | 8 | python39-pytest | Advisory build | 6.0.2-2.module_el8.6.0+2780+a40f65e1 | ALSA-2024:5962 |
| AlmaLinux | 8 | python39-pyyaml | Advisory build | 5.4.1-1.module_el8.6.0+2780+a40f65e1 | ALSA-2024:5962 |
| AlmaLinux | 8 | python39-pyyaml | Advisory build | 5.4.1-1.module_el8.6.0+3248+c431e88c | ALSA-2024:5962 |
| AlmaLinux | 8 | python39-requests | Advisory build | 2.25.0-3.module_el8.9.0+3634+fb2a896c | ALSA-2024:5962 |
| AlmaLinux | 8 | python39-rpm-macros | Advisory build | 3.9.19-7.module_el8.10.0+3885+d986a391 | ALSA-2024:5962 |
| AlmaLinux | 8 | python39-scipy | Advisory build | 1.5.4-5.module_el8.9.0+3634+fb2a896c | ALSA-2024:5962 |
| AlmaLinux | 8 | python39-setuptools | Advisory build | 50.3.2-6.module_el8.10.0+3885+d986a391 | ALSA-2024:5962 |
| AlmaLinux | 8 | python39-setuptools-wheel | Advisory build | 50.3.2-6.module_el8.10.0+3885+d986a391 | ALSA-2024:5962 |
| AlmaLinux | 8 | python39-six | Advisory build | 1.15.0-3.module_el8.6.0+2780+a40f65e1 | ALSA-2024:5962 |
| AlmaLinux | 8 | python39-test | Advisory build | 3.9.19-7.module_el8.10.0+3885+d986a391 | ALSA-2024:5962 |
| AlmaLinux | 8 | python39-tkinter | Advisory build | 3.9.19-7.module_el8.10.0+3885+d986a391 | ALSA-2024:5962 |
| AlmaLinux | 8 | python39-toml | Advisory build | 0.10.1-5.module_el8.6.0+2780+a40f65e1 | ALSA-2024:5962 |
| AlmaLinux | 8 | python39-urllib3 | Advisory build | 1.25.10-5.module_el8.10.0+3765+2f9a457d | ALSA-2024:5962 |
| AlmaLinux | 8 | python39-wcwidth | Advisory build | 0.2.5-3.module_el8.6.0+2780+a40f65e1 | ALSA-2024:5962 |
| AlmaLinux | 8 | python39-wheel | Advisory build | 1:0.35.1-4.module_el8.6.0+2780+a40f65e1 | ALSA-2024:5962 |
| AlmaLinux | 8 | python39-wheel-wheel | Advisory build | 1:0.35.1-4.module_el8.6.0+2780+a40f65e1 | ALSA-2024:5962 |
| AlmaLinux | 9 | python-unversioned-command | Advisory build | 3.9.19-8.el9 | ALSA-2024:9371 |
| AlmaLinux | 9 | python3 | Advisory build | 3.9.19-8.el9 | ALSA-2024:9371 |
| AlmaLinux | 9 | python3-debug | Advisory build | 3.9.19-8.el9 | ALSA-2024:9371 |
| AlmaLinux | 9 | python3-devel | Advisory build | 3.9.19-8.el9 | ALSA-2024:9371 |
| AlmaLinux | 9 | python3-idle | Advisory build | 3.9.19-8.el9 | ALSA-2024:9371 |
| AlmaLinux | 9 | python3-libs | Advisory build | 3.9.19-8.el9 | ALSA-2024:9371 |
| AlmaLinux | 9 | python3-test | Advisory build | 3.9.19-8.el9 | ALSA-2024:9371 |
| AlmaLinux | 9 | python3-tkinter | Advisory build | 3.9.19-8.el9 | ALSA-2024:9371 |
| AlmaLinux | 9 | python3.11 | Advisory build | 3.11.9-7.el9 | ALSA-2024:9192 |
| AlmaLinux | 9 | python3.11-debug | Advisory build | 3.11.9-7.el9 | ALSA-2024:9192 |
| AlmaLinux | 9 | python3.11-devel | Advisory build | 3.11.9-7.el9 | ALSA-2024:9192 |
| AlmaLinux | 9 | python3.11-idle | Advisory build | 3.11.9-7.el9 | ALSA-2024:9192 |
| AlmaLinux | 9 | python3.11-libs | Advisory build | 3.11.9-7.el9 | ALSA-2024:9192 |
| AlmaLinux | 9 | python3.11-test | Advisory build | 3.11.9-7.el9 | ALSA-2024:9192 |
| AlmaLinux | 9 | python3.11-tkinter | Advisory build | 3.11.9-7.el9 | ALSA-2024:9192 |
| AlmaLinux | 9 | python3.12 | Advisory build | 3.12.5-2.el9 | ALSA-2024:9190 |
| AlmaLinux | 9 | python3.12-debug | Advisory build | 3.12.5-2.el9 | ALSA-2024:9190 |
| AlmaLinux | 9 | python3.12-devel | Advisory build | 3.12.5-2.el9 | ALSA-2024:9190 |
| AlmaLinux | 9 | python3.12-idle | Advisory build | 3.12.5-2.el9 | ALSA-2024:9190 |
| AlmaLinux | 9 | python3.12-libs | Advisory build | 3.12.5-2.el9 | ALSA-2024:9190 |
| AlmaLinux | 9 | python3.12-test | Advisory build | 3.12.5-2.el9 | ALSA-2024:9190 |
| AlmaLinux | 9 | python3.12-tkinter | Advisory build | 3.12.5-2.el9 | ALSA-2024:9190 |
| Alpine Linux | v3.17 | python3 | Fixed | 3.10.14-r2 | Package fix record |
| Alpine Linux | v3.18 | python3 | Fixed | 3.11.8-r1 | Package fix record |
| Alpine Linux | v3.19 | python3 | Fixed | 3.11.9-r1 | Package fix record |
Package entries are limited to the first 100 builds and 100 linked advisories.
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 4.0
- Base score
- 8.7 / 10
- Severity
- high
- Provider
- PSF · cna
- Vector string
- 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
- Scenarios
- en: GENERAL
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Python Software Foundation | CPython | 0 to < 3.8.20 (affected · python)3.9.0 to < 3.9.20 (affected · python)3.10.0 to < 3.10.15 (affected · python)3.11.0 to < 3.11.10 (affected · python)3.12.0 to < 3.12.6 (affected · python)3.13.0a1 to < 3.13.0rc2 (affected · python)Default: unaffected | PSF · cna |
| python_software_foundation | cpython | 0 through 3.13.0 (affected · custom)Default: unknown | CISA-ADP · adp |
Weaknesses
1- CWE-835 CWE-835 Loop with Unreachable Exit Condition ('Infinite Loop')
References
22- http://www.openwall.com/lists/oss-security/2024/08/22/1
- http://www.openwall.com/lists/oss-security/2024/08/22/4
- http://www.openwall.com/lists/oss-security/2024/08/23/1
- http://www.openwall.com/lists/oss-security/2024/08/23/2
- https://github.com/python/cpython/commit/0aa1ee22ab6e204e9d3d0e9dd63ea648ed691ef1
- https://github.com/python/cpython/commit/2231286d78d328c2f575e0b05b16fe447d1656d6
- https://github.com/python/cpython/commit/795f2597a4be988e2bb19b69ff9958e981cb894e
- https://github.com/python/cpython/commit/7bc367e464ce50b956dd232c1dfa1cad4e7fb814
- https://github.com/python/cpython/commit/7e8883a3f04d308302361aeffc73e0e9837f19d4
- https://github.com/python/cpython/commit/8c7348939d8a3ecd79d630075f6be1b0c5b41f64
- https://github.com/python/cpython/commit/95b073bddefa6243effa08e131e297c0383e7f6a
- https://github.com/python/cpython/commit/962055268ed4f2ca1d717bfc8b6385de50a23ab7
- https://github.com/python/cpython/commit/9cd03263100ddb1657826cc4a71470786cab3932
- https://github.com/python/cpython/commit/dcc5182f27c1500006a1ef78e10613bb45788dea
- https://github.com/python/cpython/commit/e0264a61119d551658d9445af38323ba94fc16db
- https://github.com/python/cpython/commit/fc0b8259e693caa8400fa8b6ac1e494e47ea7798
- https://github.com/python/cpython/issues/122905
- https://github.com/python/cpython/issues/123270
- https://github.com/python/cpython/pull/122906
- https://lists.debian.org/debian-lts-announce/2024/12/msg00000.html
- https://mail.python.org/archives/list/[email protected]/thread/GNFCKVI4TCATKQLALJ5SN4L4CSPSMILU/
- https://security.netapp.com/advisory/ntap-20241011-0010/
Provider assertions
3PSF · cna
Infinite loop when iterating over zip archive entry names from zipfile.Path
CISA-ADP · adp
CISA ADP Vulnrichment
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 8dc995fdfff999cdd94793bb10fe0114f6e5bfd1654a996dcc460afb6885456f
- Ingested
- 23 Sep 2026, 08:34:06 UTC
- Source record
- Official CVE record