CVE-2024-5569 Denial of Service via crafted zip file in jaraco/zipp
Attackers can cause a denial of service via infinite loop in jaraco/zipp and CPython zipfile when processing crafted zip files.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Local or same network only
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2024-5569?
CVE-2024-5569 is a medium-severity denial of service vulnerability in jaraco/zipp, published on 9 Jul 2024. It can only be exploited from the same machine or local network, with no action from the victim.
Official description
A Denial of Service (DoS) vulnerability exists in the jaraco/zipp library, affecting all versions prior to 3.19.1. 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. The vulnerability was addressed in version 3.19.1 of jaraco/zipp.
Weakness: CWE-835
Which versions are affected by CVE-2024-5569?
3 open source packages ship an affected version, including zipp.
| Package | Affected | Fixed in |
|---|---|---|
zipp PyPI | All versions | 3.19.1 |
zipp PyPI | All versions | 3.19.1 |
zipp PyPI | All versions | 3.19.1 |
Linux distribution packages (10)
python-zipp Red Hat:openstack:17.1::el9 | All versions | 0:3.4.0-3.el9ost |
python3-zipp Red Hat:openstack:17.1::el9 | All versions | 0:3.4.0-3.el9ost |
python-zipp SUSE:Linux Enterprise Module for Public Cloud 15 SP4 | All versions | 3.15.0-150400.10.10.1 |
python-zipp SUSE:Linux Enterprise Module for Python 3 15 SP5 | All versions | 3.15.0-150400.10.10.1 |
python-zipp SUSE:Linux Enterprise Module for Python 3 15 SP6 | All versions | 3.17.0-150600.3.3.1 |
python-zipp openSUSE:Leap 15.5 | All versions | 3.15.0-150400.10.10.1 |
python-zipp openSUSE:Leap 15.6 | All versions | 3.15.0-150400.10.10.1 |
python-zipp openSUSE:Leap 15.6 | All versions | 3.17.0-150600.3.3.1 |
python-zipp openSUSE:Tumbleweed | All versions | 3.19.2-2.1 |
python-zipp openSUSE:Tumbleweed | All versions | 4.1.0-1.2 |
How do I fix CVE-2024-5569?
Upgrade zipp to 3.19.1 or later.
Upgrade, then put limits on request size, rate and nesting depth so one client cannot exhaust the service. More about Denial of service.
Is CVE-2024-5569 being exploited?
There is no known exploitation of CVE-2024-5569 in the wild and no public exploit code.
Sources
Also known as AZL-43189, AZL-43198, DEBIAN-CVE-2024-5569, ECHO-1d97-bd5e-f1bb, GHSA-jfmj-5v4g-7637, MGASA-2025-0066 and 13 more.