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

- Severity: High 7.7 (CVSS:4.0, scored by snyk) `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:L/VA:N/SC:N/SI:H/SA:N/E:P`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.14%, higher than 67% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2024-12-10T05:00:01.546Z
- Modified: 2026-08-03T15:25:49.786Z
- Also known as: GHSA-8qch-vj6m-2694, PYSEC-2024-159
- Weaknesses: CWE-22, CWE-29
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial
- Assigned by: snyk

## 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.

(As written by CVE List.)

## Affected

- luigi: before 3.6.0
- luigi (PyPI): before 3.6.0; before b5d1b965ead7d9f777a3216369b5baf23ec08999

## Every score

- snyk: CVSS:4.0 7.7 High `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:L/VA:N/SC:N/SI:H/SA:N/E:P`
- snyk: CVSS:3.1 8.6 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:N/I:H/A:N/E:P`
- GitHub: CVSS:3.1 8.6 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:N/I:H/A:N`
- GitHub: CVSS:4.0 High `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:L/VA:N/SC:N/SI:H/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X`

## References

- <https://github.com/L3ster1337/Poc-CVE-2024-21542> (exploit)
- <https://security.snyk.io/vuln/SNYK-PYTHON-LUIGI-7830489> (web)
- <https://github.com/spotify/luigi/issues/3301> (report, web)
- <https://github.com/spotify/luigi/commit/b5d1b965ead7d9f777a3216369b5baf23ec08999> (fix, web)
- <https://github.com/spotify/luigi/releases/tag/v3.6.0> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2024-21542> (advisory)
- <https://github.com/pypa/advisory-database/tree/main/vulns/luigi/PYSEC-2024-159.yaml> (web)
- <https://github.com/spotify/luigi> (package)
- <https://github.com/advisories/GHSA-8qch-vj6m-2694> (advisory)

## Sources

- CVE List: [CVE-2024-21542](https://www.cve.org/CVERecord?id=CVE-2024-21542), CVE Terms of Use, modified 2026-08-03
- GitHub Advisory Database: [GHSA-8qch-vj6m-2694](https://github.com/advisories/GHSA-8qch-vj6m-2694), CC-BY-4.0, modified 2025-02-11
- NVD: [CVE-2024-21542](https://nvd.nist.gov/vuln/detail/CVE-2024-21542), Public domain, modified 2026-06-17
- PyPA Advisory Database: [PYSEC-2024-159](https://osv.dev/vulnerability/PYSEC-2024-159), CC-BY-4.0, modified 2026-06-10

---

Page: https://cve.day/CVE-2024-21542 · Whole record: https://cve.day/CVE-2024-21542.json · Rebuilt by cve.day 2026-11-25T22:58:49.867Z
