CVE-2024-8088
Infinite loop when iterating over zip archive entry names from zipfile.Path
Reported by psf · Published August 22, 2024
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.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| python3.11-idle | Amazon Linux | 3.11.6-1.amzn2023.0.5 |
| python-3.10 | Wolfi | 3.10.14-r6 |
| python3 | Amazon Linux | 3.9.20-1.amzn2023.0.2 |
| python3 | Alpine | 3.12.5-r1, 3.12.3-r2, 3.11.9-r1, 3.11.8-r1, 3.10.14-r2 |
| python3-idle | Amazon Linux | 3.9.20-1.amzn2023.0.2 |
| python-3.12 | Chainguard | 3.12.5-r1 |
| python | Bitnami | 3.12.6, 3.11.10, 3.10.15, 3.9.20, 3.8.20 |
| python3.11-devel | Amazon Linux | 3.11.6-1.amzn2023.0.5 |
| python3-libs | Amazon Linux | 3.9.20-1.amzn2023.0.2 |
| python3-debug | Amazon Linux | 3.9.20-1.amzn2023.0.2 |
| python-3.8 | Chainguard | 3.8.19-r3 |
| python3.11-debug | Amazon Linux | 3.11.6-1.amzn2023.0.5 |
33 more packages have a fixed version. See every fix in Lookup.
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| Python Software Foundation | CPython | 0, 3.9.0, 3.10.0 |
| amazon:2023 | python3.11-idle | 0 |
| wolfi | python-3.10 | 0 |
| amazon:2023 | python3 | 0 |
| alpine | python3 | 0, 0, 0 |
| amazon:2023 | python3-idle | 0 |
| chainguard | python-3.12 | 0 |
| Python Software Foundation | CPython | |
| amazon:2023 | python3.11-devel | 0 |
| amazon:2023 | python3-libs | 0 |
| amazon:2023 | python3-debug | 0 |
| chainguard | python-3.8 | 0 |
| amazon:2023 | python3.11-debug | 0 |
| python_software_foundation | cpython | 0 |
| chainguard | python-3.9 | 0 |
| chainguard | python-3.10 | 0 |
| amazon:2023 | python3-tkinter | 0 |
| Python Software Foundation | CPython | 3.13.0a1, 0, 3.9.0 |
| amazon:2023 | python3.11-tkinter | 0 |
| amazon:2023 | python3.11-libs | 0 |
…and 8 more
Timeline
- Aug 22, 2024 CVE Published
- Aug 23, 2024 EPSS Score (30 in total, the first dated here)
- Oct 5, 2024 Coalition ESS Score (20 in total, the first dated here)
- Jun 2, 2026 Security Advisory (17 in total, the first dated here)
- Aug 10, 2026 Distribution Patch (12 in total, the first dated here)
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2024-8088
vulnetix vdb fixes CVE-2024-8088
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2024-8088/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- vendor-advisory
- patch
- issue-tracking
- patch
- patch
- patch
- patch
- issue-tracking
- patch
- patch
- patch
- patch
- patch
- patch
- patch
- patch
- http://www.openwall.com/lists/oss-security/2024/08/22/1 url
- http://www.openwall.com/lists/oss-security/2024/08/22/4 url
- http://www.openwall.com/lists/oss-security/2024/08/23/1 url
- http://www.openwall.com/lists/oss-security/2024/08/23/2 url
…and 2 more