CVE-2024-8088
Vulnerability Summary
Timeline
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.
CVSS Metrics
- v4.0•HIGH•Score: 8.7CVSS: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
- v4.0•HIGH•Score: 8.7CVSS: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 Trends
Current EPSS score: 1.27%• Percentile: 69%
Techniques & Countermeasures
- CWE-835•Loop with Unreachable Exit Condition ('Infinite Loop')
The product contains an iteration or loop with an exit condition that cannot be reached, i.e., an infinite loop.
Affected Systems
- alpine•python3
< 3.10.14-r2 | < 3.11.8-r1 | < 3.11.9-r1 | < 3.12.3-r2 | < 3.12.5-r1 | < 3.12.5-r1 | < 3.12.5-r1 | < 3.12.5-r1
- chainguard•python-3.10
< 3.10.14-r6
- chainguard•python-3.11
< 3.11.9-r8
- chainguard•python-3.12
< 3.12.5-r1
- chainguard•python-3.9
< 3.9.20-r0
- wolfi•python-3.10
< 3.10.14-r6
- wolfi•python-3.11
< 3.11.9-r8
- wolfi•python-3.12
< 3.12.5-r1
- debian•pypy3
all | < 7.3.18+dfsg-1 | < 7.3.18+dfsg-1
- debian•python3.11
< 3.11.2-6+deb12u3
- debian•python3.13
< 3.13.0~rc2-1 | < 3.13.0~rc2-1
- debian•python3.9
< 3.9.2-1+deb11u2
- ubuntu•python3.10
< 3.10.12-1~22.04.6
- ubuntu•python3.11
all | all
- ubuntu•python3.12
< 3.12.3-1ubuntu0.2
- ubuntu•python3.8
all | < 3.8.10-0ubuntu1~20.04.12
- ubuntu•python3.9
all
- python software foundation•cpython
< 3.8.20 | ≥ 3.9.0, < 3.9.20 | ≥ 3.10.0, < 3.10.15 | ≥ 3.11.0, < 3.11.10 | ≥ 3.12.0, < 3.12.6 | ≥ 3.13.0a1, < 3.13.0rc2
References (30)
- https://mail.python.org/archives/list/security-announce@python.org/thread/GNFCKVI4TCATKQLALJ5SN4L4CSPSMILU/
- https://github.com/python/cpython/pull/122906
- https://github.com/python/cpython/issues/122905
- 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/issues/123270
- 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
- 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://security.netapp.com/advisory/ntap-20241011-0010/
- https://lists.debian.org/debian-lts-announce/2024/12/msg00000.html
- https://security-tracker.debian.org/tracker/CVE-2024-8088
- https://ubuntu.com/security/CVE-2024-8088
- https://www.cve.org/CVERecord?id=CVE-2024-8088
- https://ubuntu.com/security/notices/USN-7015-1
- https://security.alpinelinux.org/vuln/CVE-2024-8088
- https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/8xxx/CVE-2024-8088.json
- https://nvd.nist.gov/vuln/detail/CVE-2024-8088
- https://github.com/python/cpython