Skip to content
DoS Disclosed report Intermediate CVE-2024-5569

zipp Denial of Service vulnerability

A crafted zip file can cause an infinite loop when processed by the zipp library or CPython's zipfile module, specifically through functions like joinpath, the division operator, and iterdir. This prevents the application from responding, resulting in a denial of service.

jaraco/zipp

Originally disclosed on huntr

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.

From the GitHub Advisory Database (GHSA-jfmj-5v4g-7637, CC BY 4.0).

The original report as published on the GitHub Advisory Database. Images and videos are our own copies; raw HTML is shown as text. View it on GitHub Advisory Database.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

How it worked

Root cause

Likely, the path handling logic in zipp and zipfile does not properly validate or limit certain zip file structures, leading to an infinite loop when resolving paths.

Impact

An attacker could cause a denial of service by providing a crafted zip file, making the application unresponsive, though the loop is not resource exhaustive.

What the attacker needed

Ability to supply a crafted zip file

The fix

The vulnerability was fixed in version 3.19.1 of jaraco/zipp.

Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

A zip file is a common way to bundle files. This bug means that a maliciously made zip file can make a program get stuck in an endless loop when it tries to look inside. The program then stops responding, which is a denial of service.

What is DoS?

A request that exhausts resources or crashes a component. Many programs forbid testing it; reports usually show it from code, not by attacking.

Similar reports

View all

Same bug class and techniques, clearest first.

Denial of service

The lesson behind this report.

A request that exhausts resources or crashes a component. Many programs forbid testing it; reports usually show it from code, not by attacking.