CVE-2024-8088 Infinite loop when iterating over zip archive entry names from zipfile.Path
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- No known exploitation · automatable: yes · technical impact: partial
- Technology
- UbuntuDebian
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.
Upgrade path
19 packages: 17 fixed, 2 with no fix yet.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| debian/pypy3(Debian 12) | = 7.3.11+dfsg-2; = 7.3.11+dfsg-2+deb12u1; = 7.3.11+dfsg-2+deb12u2; = 7.3.11+dfsg-2+deb12u3 +29 more | No fix listed | No fix yet |
| ubuntu/python3.11(Ubuntu 22.04) | All versions | No fix listed | No fix yet |
| alpine/python3(Alpine v3.17) | < 3.10.14-r2 | 3.10.14-r2 | Fixed |
| alpine/python3(Alpine v3.18) | < 3.11.8-r1 | 3.11.8-r1 | Fixed |
| alpine/python3(Alpine v3.19) | < 3.11.9-r1 | 3.11.9-r1 | Fixed |
| alpine/python3(Alpine v3.20) | < 3.12.3-r2 | 3.12.3-r2 | Fixed |
| alpine/python3(Alpine v3.21) | < 3.12.5-r1 | 3.12.5-r1 | Fixed |
| alpine/python3(Alpine v3.22) | < 3.12.5-r1 | 3.12.5-r1 | Fixed |
| alpine/python3(Alpine v3.23) | < 3.12.5-r1 | 3.12.5-r1 | Fixed |
| alpine/python3(Alpine v3.24) | < 3.12.5-r1 | 3.12.5-r1 | Fixed |
| debian/pypy3(Debian 13) | < 7.3.18+dfsg-1 | 7.3.18+dfsg-1 | Fixed |
| debian/pypy3(Debian 14) | < 7.3.18+dfsg-1 | 7.3.18+dfsg-1 | Fixed |
| debian/python3.11(Debian 12) | < 3.11.2-6+deb12u3; = 3.11.2-6; = 3.11.2-6+deb12u1; = 3.11.2-6+deb12u2 | 3.11.2-6+deb12u3 | Fixed |
| debian/python3.13(Debian 13) | < 3.13.0~rc2-1 | 3.13.0~rc2-1 | Fixed |
| Microsoft azure linux | < 2.16.1-7; < 3.12.3-4 | 2.16.1-7, 3.12.3-4 | Fixed |
| Microsoft cbl mariner | < 3.9.19-5 | 3.9.19-5 | Fixed |
| Python Software Foundation CPython | < 3.8.20; <= 3.13.0; >= 3.9.0, < 3.9.20; >= 3.10.0, < 3.10.15 +3 more | 3.8.20, 3.9.20, 3.10.15, 3.11.10, 3.12.6, 3.13.0rc2 | Fixed |
| ubuntu/python3.10(Ubuntu 22.04) | < 3.10.12-1~22.04.6 | 3.10.12-1~22.04.6 | Fixed |
| ubuntu/python3.12(Ubuntu 24.04) | < 3.12.3-1ubuntu0.2 | 3.12.3-1ubuntu0.2 | Fixed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| Microsoft cbl mariner | < 3.9.19-5 | 3.9.19-5 |
| Microsoft azure linux | < 3.12.3-4 | 3.12.3-4 |
| Microsoft azure linux | < 2.16.1-7 | 2.16.1-7 |
| debian/pypy3(Debian:12) | All versions | No fix listed |
| debian/pypy3(Debian:12) | = 7.3.11+dfsg-2 | No fix listed |
| debian/pypy3(Debian:12) | = 7.3.11+dfsg-2+deb12u1 | No fix listed |
| debian/pypy3(Debian:12) | = 7.3.11+dfsg-2+deb12u2 | No fix listed |
| debian/pypy3(Debian:12) | = 7.3.11+dfsg-2+deb12u3 | No fix listed |
| debian/pypy3(Debian:12) | = 7.3.12+dfsg-1 | No fix listed |
| debian/pypy3(Debian:12) | = 7.3.12~rc1+dfsg-1 | No fix listed |
| debian/pypy3(Debian:12) | = 7.3.12~rc2+dfsg-1 | No fix listed |
| debian/pypy3(Debian:12) | = 7.3.13+dfsg-1 | No fix listed |
| debian/pypy3(Debian:12) | = 7.3.14+dfsg-1 | No fix listed |
| debian/pypy3(Debian:12) | = 7.3.15+dfsg-1 | No fix listed |
| debian/pypy3(Debian:12) | = 7.3.16+dfsg-1 | No fix listed |
| debian/pypy3(Debian:12) | = 7.3.16+dfsg-2 | No fix listed |
| debian/pypy3(Debian:12) | = 7.3.17+dfsg-1 | No fix listed |
| debian/pypy3(Debian:12) | = 7.3.17+dfsg-2 | No fix listed |
| debian/pypy3(Debian:12) | = 7.3.17+dfsg-3 | No fix listed |
| debian/pypy3(Debian:12) | = 7.3.18+dfsg-1 | No fix listed |
| debian/pypy3(Debian:12) | = 7.3.18+dfsg-2 | No fix listed |
| debian/pypy3(Debian:12) | = 7.3.19+dfsg-1 | No fix listed |
| debian/pypy3(Debian:12) | = 7.3.19+dfsg-2 | No fix listed |
| debian/pypy3(Debian:12) | = 7.3.20+dfsg-1 | No fix listed |
| debian/pypy3(Debian:12) | = 7.3.20+dfsg-2 | No fix listed |
Show 36 more
| Product | Affected versions | Fixed in |
|---|---|---|
| debian/pypy3(Debian:12) | = 7.3.20+dfsg-3 | No fix listed |
| debian/pypy3(Debian:12) | = 7.3.20+dfsg-4 | No fix listed |
| debian/pypy3(Debian:12) | = 7.3.21+dfsg-1 | No fix listed |
| debian/pypy3(Debian:12) | = 7.3.21+dfsg-2 | No fix listed |
| debian/pypy3(Debian:12) | = 7.3.21+dfsg-3 | No fix listed |
| debian/pypy3(Debian:12) | = 7.3.21+dfsg-4 | No fix listed |
| debian/pypy3(Debian:12) | = 7.3.22+dfsg-1 | No fix listed |
| debian/pypy3(Debian:12) | = 7.3.23+dfsg-1 | No fix listed |
| debian/pypy3(Debian:12) | = 7.3.23+dfsg-2 | No fix listed |
| debian/pypy3(Debian:12) | = 8.0.0+dfsg-1 | No fix listed |
| debian/pypy3(Debian:12) | = 8.0.1+dfsg-1 | No fix listed |
| debian/pypy3(Debian:13) | < 7.3.18+dfsg-1 | 7.3.18+dfsg-1 |
| debian/pypy3(Debian:14) | < 7.3.18+dfsg-1 | 7.3.18+dfsg-1 |
| debian/python3.11(Debian:12) | < 3.11.2-6+deb12u3 | 3.11.2-6+deb12u3 |
| debian/python3.11(Debian:12) | = 3.11.2-6 | No fix listed |
| debian/python3.11(Debian:12) | = 3.11.2-6+deb12u1 | No fix listed |
| debian/python3.11(Debian:12) | = 3.11.2-6+deb12u2 | No fix listed |
| debian/python3.13(Debian:13) | < 3.13.0~rc2-1 | 3.13.0~rc2-1 |
| ubuntu/python3.10(Ubuntu:22.04) | < 3.10.12-1~22.04.6 | 3.10.12-1~22.04.6 |
| ubuntu/python3.11(Ubuntu:22.04) | All versions | No fix listed |
| Python Software Foundation CPython | < 3.8.20 | 3.8.20 |
| Python Software Foundation CPython | >= 3.9.0, < 3.9.20 | 3.9.20 |
| Python Software Foundation CPython | >= 3.10.0, < 3.10.15 | 3.10.15 |
| Python Software Foundation CPython | >= 3.11.0, < 3.11.10 | 3.11.10 |
| Python Software Foundation CPython | >= 3.12.0, < 3.12.6 | 3.12.6 |
| Python Software Foundation CPython | >= 3.13.0a1, < 3.13.0rc2 | 3.13.0rc2 |
| Python Software Foundation CPython | <= 3.13.0 | No fix listed |
| alpine/python3(Alpine:v3.17) | < 3.10.14-r2 | 3.10.14-r2 |
| alpine/python3(Alpine:v3.18) | < 3.11.8-r1 | 3.11.8-r1 |
| alpine/python3(Alpine:v3.19) | < 3.11.9-r1 | 3.11.9-r1 |
| alpine/python3(Alpine:v3.20) | < 3.12.3-r2 | 3.12.3-r2 |
| alpine/python3(Alpine:v3.21) | < 3.12.5-r1 | 3.12.5-r1 |
| alpine/python3(Alpine:v3.22) | < 3.12.5-r1 | 3.12.5-r1 |
| alpine/python3(Alpine:v3.23) | < 3.12.5-r1 | 3.12.5-r1 |
| alpine/python3(Alpine:v3.24) | < 3.12.5-r1 | 3.12.5-r1 |
| ubuntu/python3.12(Ubuntu:24.04) | < 3.12.3-1ubuntu0.2 | 3.12.3-1ubuntu0.2 |
References
- MSRC Security Update Guide vendor-advisory
- python3 vendor-advisory
- Debian Security Tracker CVE-2024-8088 vendor-advisory
- Ubuntu CVE tracker vendor-advisory
- USN-7015-1 vendor-advisory
- www.cve.org
- mail.python.org vendor-advisory
- github.com patch
- github.com issue-tracking
- github.com patch
- github.com patch
- github.com patch
- github.com patch
- github.com issue-tracking
- github.com patch
- github.com patch
- github.com patch
- github.com patch
- github.com patch
- github.com patch
- github.com patch
- github.com patch
- www.openwall.com
- www.openwall.com
- www.openwall.com
- www.openwall.com
- security.netapp.com
- lists.debian.org
- security.alpinelinux.org vendor-advisory