Infinite loop when iterating over zip archive entry names from zipfile.Path
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Attack requirements
- None
- Impact type
- Denial of service
- Confidentiality · integrity · availability
- None · None · High
- Fix status
- Partial Red Hat: 6 fixed, 3 without a fix
Attack profile from CVSS 4.0 · CNA. Fix status from CNA and Red Hat. Impact type from CWE-835.
Summary
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- Yes
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| Python Software Foundation | CPython | before 3.8.20; 3.9.0 to before 3.9.20; 3.10.0 to before 3.10.15; 3.11.0 to before 3.11.10; 3.12.0 to before 3.12.6; 3.13.0a1 to before 3.13.0rc2 | 3.8.20, 3.9.20, 3.10.15, 3.11.10, 3.12.6, 3.13.0rc2 | Patch available | CNA |
- CPython VendorPython Software Foundation Affected before 3.8.20; 3.9.0 to before 3.9.20; 3.10.0 to before 3.10.15; 3.11.0 to before 3.11.10; 3.12.0 to before 3.12.6; 3.13.0a1 to before 3.13.0rc2 Fixed in 3.8.20, 3.9.20, 3.10.15, 3.11.10, 3.12.6, 3.13.0rc2 Patch available CNA
CPE names CISA-ADP · 1
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:a:python_software_foundation:cpython:*:*:*:*:*:*:*:* | — | — | Python Software Foundation |
- cpe:2.3:a:python_software_foundation:cpython:*:*:*:*:*:*:*:* Versions — — ·Python Software Foundation
Remediation
- Fix · CNA CPython (Python Software Foundation) Fixed in 3.8.20, 3.9.20, 3.10.15, 3.11.10, 3.12.6, 3.13.0rc2
Red Hat 7 advisories
- RHSA-2024:9371 Released 2024-11-12 · Red Hat rating Moderatepython3.9 security update
- Red Hat CodeReady Linux Builder (v. 9) python3-3.9.19-8.el9, python3-debug-3.9.19-8.el9, python3-idle-3.9.19-8.el9 +2
- Red Hat Enterprise Linux AppStream (v. 9) python-unversioned-command-3.9.19-8.el9, python3-devel-3.9.19-8.el9, python3-tkinter-3.9.19-8.el9
- Red Hat Enterprise Linux BaseOS (v. 9) python3-3.9.19-8.el9, python3-libs-3.9.19-8.el9, python3.9-3.9.19-8.el9
- RHSA-2024:9190 Released 2024-11-12 · Red Hat rating Moderatepython3.12 security update
- Red Hat CodeReady Linux Builder (v. 9) python3.12-3.12.5-2.el9, python3.12-debug-3.12.5-2.el9, python3.12-idle-3.12.5-2.el9 +2
- Red Hat Enterprise Linux AppStream (v. 9) python3.12-3.12.5-2.el9, python3.12-devel-3.12.5-2.el9, python3.12-libs-3.12.5-2.el9 +1
- RHSA-2024:9192 Released 2024-11-12 · Red Hat rating Moderatepython3.11 security update
- Red Hat CodeReady Linux Builder (v. 9) python3.11-3.11.9-7.el9, python3.11-debug-3.11.9-7.el9, python3.11-idle-3.11.9-7.el9 +2
- Red Hat Enterprise Linux AppStream (v. 9) python3.11-3.11.9-7.el9, python3.11-devel-3.11.9-7.el9, python3.11-libs-3.11.9-7.el9 +1
Show 4 more Red Hat advisories
- RHSA-2024:6962 Released 2024-09-24 · Red Hat rating Moderatepython3.11 security update
- Red Hat Enterprise Linux AppStream (v. 8) python3.11-3.11.9-7.el8_10, python3.11-devel-3.11.9-7.el8_10, python3.11-libs-3.11.9-7.el8_10 +2
- Red Hat Enterprise Linux CRB (v. 8) python3.11-3.11.9-7.el8_10, python3.11-debug-3.11.9-7.el8_10, python3.11-idle-3.11.9-7.el8_10 +2
- RHSA-2024:6961 Released 2024-09-24 · Red Hat rating Moderatepython3.12 security update
- Red Hat Enterprise Linux AppStream (v. 8) python3.12-3.12.5-2.el8_10, python3.12-devel-3.12.5-2.el8_10, python3.12-libs-3.12.5-2.el8_10 +2
- Red Hat Enterprise Linux CRB (v. 8) python3.12-3.12.5-2.el8_10, python3.12-debug-3.12.5-2.el8_10, python3.12-idle-3.12.5-2.el8_10 +2
- RHSA-2024:6163 Released 2024-09-03 · Red Hat rating Moderatepython3.9 security update
- Red Hat Enterprise Linux AppStream (v. 9) python-unversioned-command-3.9.18-3.el9_4.5, python3-devel-3.9.18-3.el9_4.5, python3-tkinter-3.9.18-3.el9_4.5
- Red Hat Enterprise Linux BaseOS (v. 9) python3-3.9.18-3.el9_4.5, python3-libs-3.9.18-3.el9_4.5, python3.9-3.9.18-3.el9_4.5
- Red Hat Enterprise Linux CRB (v. 9) python3-3.9.18-3.el9_4.5, python3-debug-3.9.18-3.el9_4.5, python3-idle-3.9.18-3.el9_4.5 +2
- RHSA-2024:5962 Released 2024-08-28 · Red Hat rating Moderatepython39:3.9 and python39-devel:3.9 security update
- Red Hat Enterprise Linux AppStream (v. 8) PyYAML-5.4.1-1.module+el8.9.0+19644+d68f775d.src::python39:3.9, mod_wsgi-4.7.1-7.module+el8.9.0+19644+d68f775d.src::python39:3.9, numpy-1.19.4-3.module+el8.9.0+19644+d68f775d.src::python39:3.9 +47
- Red Hat Enterprise Linux CRB (v. 8) Cython-0.29.21-5.module+el8.9.0+19644+d68f775d.src::python39-devel:3.9, pybind11-2.7.1-1.module+el8.9.0+19644+d68f775d.src::python39-devel:3.9, pytest-6.0.2-2.module+el8.9.0+19644+d68f775d.src::python39-devel:3.9 +33
Vendor assessments
Red Hat
Red Hat rating: Moderate. Red Hat's page for this CVE →
| Product | Status | Plan or fix |
|---|---|---|
| Red Hat Enterprise Linux 6 | Affected | No fix planned: Out of support scope |
| Red Hat Enterprise Linux 7 | Affected | No fix planned: Out of support scope |
| Red Hat Enterprise Linux 8 | Affected | No fix planned: Will not fix |
| Red Hat CodeReady Linux Builder (v. 9) | Fixed | RHSA-2024:9190, RHSA-2024:9192, RHSA-2024:9371 |
| Red Hat Enterprise Linux AppStream (v. 8) | Fixed | RHSA-2024:5962, RHSA-2024:6961, RHSA-2024:6962 |
| Red Hat Enterprise Linux AppStream (v. 9) | Fixed | RHSA-2024:6163, RHSA-2024:9190, RHSA-2024:9192, RHSA-2024:9371 |
| Red Hat Enterprise Linux BaseOS (v. 9) | Fixed | RHSA-2024:6163, RHSA-2024:9371 |
| Red Hat Enterprise Linux CRB (v. 8) | Fixed | RHSA-2024:5962, RHSA-2024:6961, RHSA-2024:6962 |
| Red Hat Enterprise Linux CRB (v. 9) | Fixed | RHSA-2024:6163 |
Not affected: 2 products
- Red Hat Enterprise Linux 10
- Red Hat Enterprise Linux 8
Timeline
- 2026-10-02 Threatist record created from CVE-2024-8088
- 2026-10-03 Alias added: GHSA-q98g-hxg3-268c
References
Patch 13
- https://github.com/python/cpython/pull/122906
- https://github.com/python/cpython/commit/795f2597a4be988e2bb19b69ff9958e981cb894e
- https://github.com/python/cpython/commit/8c7348939d8a3ecd79d630075f6be1b0c5b41f64
- https://github.com/python/cpython/commit/dcc5182f27c1500006a1ef78e10613bb45788dea
- https://github.com/python/cpython/commit/e0264a61119d551658d9445af38323ba94fc16db
- https://github.com/python/cpython/commit/2231286d78d328c2f575e0b05b16fe447d1656d6
- https://github.com/python/cpython/commit/7e8883a3f04d308302361aeffc73e0e9837f19d4
- https://github.com/python/cpython/commit/95b073bddefa6243effa08e131e297c0383e7f6a
- https://github.com/python/cpython/commit/7bc367e464ce50b956dd232c1dfa1cad4e7fb814
- https://github.com/python/cpython/commit/962055268ed4f2ca1d717bfc8b6385de50a23ab7
- https://github.com/python/cpython/commit/fc0b8259e693caa8400fa8b6ac1e494e47ea7798
- https://github.com/python/cpython/commit/0aa1ee22ab6e204e9d3d0e9dd63ea648ed691ef1
- https://github.com/python/cpython/commit/9cd03263100ddb1657826cc4a71470786cab3932
Advisory 1
More Python Software Foundation vulnerabilities
- TI-2024-07037 Quadratic complexity parsing cookies with backslashes CVSS 3.1HIGH 7.5
- TI-2024-11791 Bypass extraction filter to modify file metadata outside extraction directory CVSS 3.1MEDIUM 5.3
- TI-2024-00411 Quoted zip-bomb protection for zipfile CVSS 3.1MEDIUM 6.2
- TI-2026-13296 `HTTPPasswordMgr` can send saved HTTPS credentials via HTTP because of incorrect scheme matching CVSS 4.0MEDIUM 6.0
- TI-2024-06422 Email header injection due to unquoted newlines CVSS 3.1MEDIUM 5.5
- TI-2026-04606 Possible to hijack modules in current working directory CVSS 4.0MEDIUM 5.6
Sources
- CVE-2024-8088 · CVE Program
- CVE-2024-8088 · NVD
- FIRST EPSS
- GHSA-q98g-hxg3-268c · GitHub Advisory Database · CC BY 4.0
- CVE-2024-8088 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences