CVE-2024-8088

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

HIGH
8.7
CVSS Score
Published: August 22, 2024 at 06:45 PM UTC
Updated: June 17, 2026 at 08:21 AM UTC
1 product affected across 1 vendorPython

Using CPython by Python Software Foundation?

Get instant alerts when new vulnerabilities affect CPython - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
HIGH8.7
Exploit prediction
EPSS 1%
SSVC
No known exploit

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

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

v ≤ 3.13.0v < 3.8.203.10.0 ≤ v < 3.10.153.11.0 ≤ v < 3.11.103.12.0 ≤ v < 3.12.63.13.0a1 ≤ v < 3.13.0rc23.9.0 ≤ v < 3.9.203.10.03.11.03.12.03.13.0a13.9.0
Affected range stops below 3.10.15, so it looks safe — our inference, not a vendor statement
Affected range stops below 3.11.10, so it looks safe — our inference, not a vendor statement
Affected range stops below 3.12.6, so it looks safe — our inference, not a vendor statement
Affected range stops below 3.13.0rc2, so it looks safe — our inference, not a vendor statement
Affected range stops below 3.8.20, so it looks safe — our inference, not a vendor statement
Affected range stops below 3.9.20, so it looks safe — our inference, not a vendor statement

SSVC — Action Prioritization

SSVCNo known exploitAutomatablePartial impact

SSVC signals action urgency (what to patch first), separate from CVSS which measures severity.

CVSS

8.7HIGHPSF
Vector?

Quick Info

StatusDEFERRED
CWE
CWE-835

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card