Infinite loop when iterating over zip archive entry names from zipfile.Path
No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 1%. Fixed in 3.8.20, 3.10.15, 3.11.10 and 3 more.
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.
Affected
Vendors, products and packages with version ranges
| Vendor | Product | Versions | Fixed |
|---|---|---|---|
| Python Software Foundation | <3.8.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, >=3.9.0 <3.9.20 | 3.8.20, 3.10.15, 3.11.10, 3.12.6, 3.13.0rc2, 3.9.20 |
Timeline
Every event on this vulnerability
Embed
A live severity badge for an advisory, README or ticket