CVE-2024-21542 luigi Arbitrary File Write via Archive Extraction (Zip Slip)

High 7.7 Published Updated

Attackers can write arbitrary files via Zip Slip in Luigi, potentially leading to code execution or data modification.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2024-21542?

CVE-2024-21542 is a high-severity path traversal vulnerability in luigi, published on 10 Dec 2024. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

Versions of the package luigi before 3.6.0 are vulnerable to Arbitrary File Write via Archive Extraction (Zip Slip) due to improper destination file path validation in the _extract_packages_archive function.

Weakness: CWE-22, CWE-29

Which versions are affected by CVE-2024-21542?

3 open source packages ship an affected version, including luigi.

PackageAffectedFixed in
luigi PyPIAll versions3.6.0
luigi PyPIAll versions3.6.0
luigi PyPIAll versions3.6.0

How do I fix CVE-2024-21542?

Upgrade luigi to 3.6.0 or later.

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

Is CVE-2024-21542 being exploited?

There is no known exploitation of CVE-2024-21542 in the wild and no public exploit code.

Public exploit code: 1 proofs of concept on GitHub.

Sources

Also known as GHSA-8qch-vj6m-2694, PYSEC-2024-159.

Is CVE-2024-21542 in your software?

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

Check your SBOMs for free