CVE-2024-8088: Python Software Foundation Cpython

High severity, CVSS 8.7. EPSS: 1.3% chance of exploitation in the next 30 days.

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 products

  • Python Software Foundation Cpython: before 3.8.20 (fixed in 3.8.20); from 3.9.0, before 3.9.20 (fixed in 3.9.20); from 3.10.0, before 3.10.15 (fixed in 3.10.15); from 3.11.0, before 3.11.10 (fixed in 3.11.10); from 3.12.0, before 3.12.6 (fixed in 3.12.6); from 3.13.0a1, before 3.13.0rc2 (fixed in 3.13.0rc2); …

Published 2024-08-22. Last modified 2026-06-17.