CVE-2024-8088
Infinite loop when iterating over zip archive entry names from zipfile.Path
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.
How to fix CVE-2024-8088
To remediate CVE-2024-8088, upgrade the affected package to a fixed version below.
- —upgrade to 3.10.14-r2 or later
- —upgrade to 3.8.20 or later
- —upgrade to 3.8.20 or later
- —upgrade to 3.8.20 or later
- —no fix listed
- —upgrade to 3.11.2-6+deb12u3 or later
- —upgrade to 3.13.0~rc2-1 or later
- —upgrade to 3.9.2-1+deb11u2 or later
Is CVE-2024-8088 being exploited?
Low — EPSS is 0.2%, meaning exploitation activity has not been observed at scale.
Affected packages (8)
- from 0, < 3.10.14-r2
- from 0, < 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
- from 0, < 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
- from 0, < 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
- from 0
- from 0, < 3.11.2-6+deb12u3
- from 0, < 3.13.0~rc2-1
- from 0, < 3.9.2-1+deb11u2
CVSS scores
| Source | Version | Severity | Vector |
|---|---|---|---|
| osv | CVSS 4.0 | — | 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/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 |