Skip to content
CVE PROGRAM SOURCE RECORD8.7 High

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.

Affected products

Version statuses are supplied by the assigning organization. Consult the original record for detailed ranges and platform conditions.

Python Software Foundation CPython

Default version status: unaffected

  • 0 to < 3.8.20affected
  • 3.9.0 to < 3.9.20affected
  • 3.10.0 to < 3.10.15affected
  • 3.11.0 to < 3.11.10affected
  • 3.12.0 to < 3.12.6affected
  • 3.13.0a1 to < 3.13.0rc2affected

References