CVE-2024-21542: Arbitrary File Write via Archive Extraction (Zip Slip) in luigi
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.
AI Analysis
Technical Summary
CVE-2024-21542 is a directory traversal vulnerability in the luigi package before version 3.6.0. It arises from insufficient validation of file paths during archive extraction in the _extract_packages_archive function, enabling an attacker to perform arbitrary file writes (Zip Slip). This can lead to overwriting critical files or placing malicious files in sensitive locations. The vulnerability is rated high severity with a CVSS 4.0 score of 7.7, indicating network attack vector, low attack complexity, no privileges or user interaction required, and high scope impact. No known exploits are reported in the wild, and no official patch or remediation level has been disclosed.
Potential Impact
Successful exploitation allows an attacker to write files to arbitrary locations on the affected system, potentially leading to code execution, system compromise, or disruption of service depending on the files overwritten. The vulnerability does not require privileges or user interaction, increasing its risk. However, no known active exploitation has been reported.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is released, users should avoid extracting untrusted archives with vulnerable versions of luigi or implement manual path validation to prevent directory traversal during archive extraction.
CVE-2024-21542: Arbitrary File Write via Archive Extraction (Zip Slip) in luigi
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.
CVSS v4.0
Score 7.7high
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
CVE-2024-21542 is a directory traversal vulnerability in the luigi package before version 3.6.0. It arises from insufficient validation of file paths during archive extraction in the _extract_packages_archive function, enabling an attacker to perform arbitrary file writes (Zip Slip). This can lead to overwriting critical files or placing malicious files in sensitive locations. The vulnerability is rated high severity with a CVSS 4.0 score of 7.7, indicating network attack vector, low attack complexity, no privileges or user interaction required, and high scope impact. No known exploits are reported in the wild, and no official patch or remediation level has been disclosed.
Potential Impact
Successful exploitation allows an attacker to write files to arbitrary locations on the affected system, potentially leading to code execution, system compromise, or disruption of service depending on the files overwritten. The vulnerability does not require privileges or user interaction, increasing its risk. However, no known active exploitation has been reported.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is released, users should avoid extracting untrusted archives with vulnerable versions of luigi or implement manual path validation to prevent directory traversal during archive extraction.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- snyk
- Date Reserved
- 2023-12-22T12:33:20.124Z
- Cvss Version
- 4.0
- State
- PUBLISHED
Threat ID: 6a638a5d9c2644c7f82fb85b
Added to database: 07/24/2026, 15:53:01 UTC
Last enriched: 08/03/2026, 19:34:19 UTC
Last updated: 09/10/2026, 19:36:47 UTC
Views: 61
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.