PyPI: zipp
CVE-2024-5569
Safety vulnerability ID: SFTY-20240709-59639
Safety legacy ID: pyup.io-72132
A Denial of Service (DoS) vulnerability exists in the jaraco/zipp library. The vulnerability is triggered when processing a specially crafted zip file that leads to an infinite loop. This issue also impacts the zipfile module of CPython, as features from the third-party zipp library are later merged into CPython, and the affected code is identical in both projects. The infinite loop can be initiated through the use of functions affecting the `Path` module in both zipp and zipfile, such as `joinpath`, the overloaded division operator, and `iterdir`. Although the infinite loop is not resource exhaustive, it prevents the application from responding.
Overview
zipp Denial of Service vulnerability
Advisory
A Denial of Service (DoS) vulnerability exists in the jaraco/zipp library. The vulnerability is triggered when processing a specially crafted zip file that leads to an infinite loop. This issue also impacts the zipfile module of CPython, as features from the third-party zipp library are later merged into CPython, and the affected code is identical in both projects. The infinite loop can be initiated through the use of functions affecting the `Path` module in both zipp and zipfile, such as `joinpath`, the overloaded division operator, and `iterdir`. Although the infinite loop is not resource exhaustive, it prevents the application from responding.
How to Fix
Mitigation and Workarounds
---
Vulnerable Functions
Functions linked to known vulnerabilities.
References
- https://getsafety.com/vulnerabilities/SFTY-20240709-59639/CVE-2024-5569
- https://nvd.nist.gov/vuln/detail/CVE-2024-5569
- https://github.com/jaraco/zipp/commit/fd604bd34f0343472521a36da1fbd22e793e14fd
- https://huntr.com/bounties/be898306-11f9-46b4-b28c-f4c4aa4ffbae
- https://github.com/advisories/GHSA-jfmj-5v4g-7637
Verified by Safety
Our Cybersecurity Intelligence Team reviewed this vulnerability. We combine public data with our own research to find issues not yet reported to public sources.
Learn more
