CVE-2024-8088

Summary

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 Software

VendorProductVersion RangeStatus
Python Software FoundationCPython0 < 3.8.20affected
Python Software FoundationCPython3.9.0 < 3.9.20affected
Python Software FoundationCPython3.10.0 < 3.10.15affected
Python Software FoundationCPython3.11.0 < 3.11.10affected
Python Software FoundationCPython3.12.0 < 3.12.6affected
Python Software FoundationCPython3.13.0a1 < 3.13.0rc2affected

Weaknesses

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

ADP Enrichment

CVE Program Container

Additional References

CISA ADP Vulnrichment

  • SSVC:
  • Exploitation: none
    • Automatable: yes
    • Technical Impact: partial

References