Vulnerabilities

CVE-2024-8088

High 8.7 CVSS 4.0

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.

Description as published by the source, in English.

Key facts

Published
2024-08-22
Last modified
2026-06-17
Assigned by
cna@python.org
CVSS vector
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:N/AU:N/R:
Scored by
cna@python.org
Probability of exploitation
1.3 % higher than 67 % of all known vulnerabilities
EPSS, next 30 days, model v2026.06.15
Fix available
Not registered in the sources

Affected products

Vendor Product Versions Status
Python Software Foundation CPython ≥ 0, < 3.8.20 Affected
Python Software Foundation CPython ≥ 3.10.0, < 3.10.15 Affected
Python Software Foundation CPython ≥ 3.11.0, < 3.11.10 Affected
Python Software Foundation CPython ≥ 3.12.0, < 3.12.6 Affected
Python Software Foundation CPython ≥ 3.13.0a1, < 3.13.0rc2 Affected
Python Software Foundation CPython ≥ 3.9.0, < 3.9.20 Affected

Weakness type

References

Does this affect you?

A vulnerability matters only if you run the product, in an affected version, somewhere an attacker can reach.

Check your asset list Browse all vulnerabilities