CVE-2024-55587 python-libarchive directory traversal

High 8.8 Published Updated

Attackers can exploit directory traversal in python-libarchive to create files outside the intended extraction directory.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Over the internet
Victim action needed
Not needed
Fix
None listed

What is CVE-2024-55587?

CVE-2024-55587 is a high-severity path traversal vulnerability in n/a, published on 11 Dec 2024. Any signed-in user can exploit it over the network, with no action from the victim.

Official description

python-libarchive through 4.2.1 allows directory traversal (to create files) in extract in zip.py for ZipFile.extractall and ZipFile.extract.

Weakness: CWE-22

Which versions are affected by CVE-2024-55587?

3 open source packages ship an affected version, including python-libarchive.

PackageAffectedFixed in
python-libarchive PyPIAll versions to 4.2.1None
python-libarchive PyPIAll versions to 4.2.1None
python-libarchive PyPIAll versions to 4.2.1None

How do I fix CVE-2024-55587?

No fix has been published for CVE-2024-55587 yet. Limit exposure of the affected software until one is available.

Upgrade, and resolve every user-supplied path against an allowed base folder before opening it. More about Path traversal.

Is CVE-2024-55587 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2024-55587 exists.

Public exploit code: 1 proofs of concept on GitHub.

Sources

Also known as GHSA-75mx-hw5q-pvx3, PYSEC-2026-1848.

Is CVE-2024-55587 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free