CVE-2024-8088

Infinite loop when iterating over zip archive entry names from zipfile.Path

State
Published
Severity
8.7 High
Published
Aug 22, 2024
Updated
Nov 3, 2025
Reserved
Aug 22, 2024

Read the record on cve.org

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.

Scores

CVSSScoreVectorSource
4.08.7 HighCVSS: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:LPSF

Weaknesses

  • CWE-835 Loop with Unreachable Exit Condition ('Infinite Loop')

Affected Products

ProductVersions
CPythonPython Software Foundation
  • before 3.8.20Affected
  • 3.9.0 to before 3.9.20Affected
  • 3.10.0 to before 3.10.15Affected
  • 3.11.0 to before 3.11.10Affected
  • 3.12.0 to before 3.12.6Affected
  • 3.13.0a1 to before 3.13.0rc2Affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.