CVE-2024-8088: Infinite loop when iterating over zip archive entry names from zipfile.Path

Published Aug 22, 2024
·
Updated

Last updated 11 March 2025

Other sources

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.

NVD

There is a HIGH severity vulnerability affecting the CPython "zipfile" module.

When iterating over names of entries in a zip archive (for example, methods of "zipfile.ZipFile" like "namelist()", "iterdir()", "extractall()", 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.

Red Hat

This CVE was automatically created from a reference found in an email or other text. If you are reading this, then this CVE entry is probably erroneous, since this text should be replaced by the official CVE description automatically.

Launchpad

Affected Software

5 affected componentsFixes available
debian/python2.7
2.7.18-8+deb11u1
debian/python3.11
3.11.2-6+deb12u53.11.2-6+deb12u3
debian/python3.12
3.12.10-1
debian/python3.13
3.13.3-2
debian/python3.9<=3.9.2-1
3.9.2-1+deb11u3

Event History

Aug 22, 2024
CVE Published
via MITRE·06:45 PM
Data Sourced
via MITRE·06:45 PM
DescriptionWeakness
Data Sourced
via NVD·07:15 PM
DescriptionSeverityWeakness
Data Sourced
via Red Hat·07:20 PM
DescriptionSeverityAffected Software
Dec 17, 2024
Data Sourced
via Launchpad·03:13 PM
Description
Mar 12, 2025
Data Sourced
via Ubuntu·06:19 AM
RemedyDescriptionSeverityAffected Software

Frequently Asked Questions

1

What is the severity of CVE-2024-8088?

CVE-2024-8088 is classified as a HIGH severity vulnerability affecting the CPython zipfile module.

2

How do I fix CVE-2024-8088?

To fix CVE-2024-8088, update to the latest versions of the affected CPython packages listed in the vulnerability report.

3

Which versions of CPython are affected by CVE-2024-8088?

CVE-2024-8088 affects specific versions of Python 2.7 and several versions of Python 3.9, 3.11, 3.12, and 3.13.

4

Is the zipfile.ZipFile class affected by CVE-2024-8088?

No, the more commonly used zipfile.ZipFile class is not affected by CVE-2024-8088.

5

What should I do if I am using an affected version of CPython with CVE-2024-8088?

If using an affected version of CPython with CVE-2024-8088, it's crucial to upgrade to a non-vulnerable version promptly.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203