{"answers":{"affected":"3 open source packages ship an affected version, including luigi.","exploited":"There is no known exploitation of CVE-2024-21542 in the wild and no public exploit code.","fix":"Upgrade luigi to 3.6.0 or later.","what":"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."},"fix_prompt":"Check this codebase for CVE-2024-21542 and fix it if it is affected.\n\nWhat it is: 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.\nExploitation: There is no known exploitation of CVE-2024-21542 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- luigi (PyPI): affected all versions; fixed in 3.6.0\n- luigi (PyPI): affected all versions; fixed in 3.6.0\n- luigi (PyPI): affected all versions; fixed in 3.6.0\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2024-21542/ (Markdown: https://insights.sbomify.com/CVE-2024-21542/index.md)","id":"CVE-2024-21542","markdown":"https://insights.sbomify.com/CVE-2024-21542/index.md","name":"CVE-2024-21542","record":{"aliases":["GHSA-8qch-vj6m-2694","PYSEC-2024-159"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["code_execution","data_modify"],"network_reachable":"yes","non_default_config":false,"product_category":"Python workflow library","requires_auth":"none","summary":"Attackers can write arbitrary files via Zip Slip in Luigi, potentially leading to code execution or data modification.","user_interaction":"not_required","vuln_class":"path_traversal"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"snyk","cpe":[],"cvss":{"score":7.7,"severity":"high","source":"cna","vector":"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","version":"4.0"},"cwes":[{"id":"CWE-22","name":"Improper Limitation of a Pathname to a Restricted Directory"},{"id":"CWE-29","name":"Path Traversal: '\\..\\filename'"}],"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.","ecosystems":["PyPI"],"exploits":{"exploitdb":0,"first_seen":"2024-12-15","github_poc":1,"max_poc_stars":1,"metasploit":0,"nuclei":0,"refs":[{"date":"2024-12-15T22:17:15Z","kind":"github_poc","ref":"https://github.com/L3ster1337/Poc-CVE-2024-21542","stars":1,"title":null}],"tier":"poc_unverified"},"has_fix":true,"headline":"luigi Arbitrary File Write via Archive Extraction (Zip Slip)","id":"CVE-2024-21542","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"PyPI","product":null,"products":[],"type":"path_traversal","year":"2024"},"n_packages":3,"n_references":5,"next":{"headline":"djoser Authentication Bypass","id":"CVE-2024-21543"},"packages":[{"ecosystem":"PyPI","fixed":["3.6.0"],"introduced":["0"],"last_affected":[],"package":"luigi","purl":null,"source":"GHSA-8qch-vj6m-2694"},{"ecosystem":"PyPI","fixed":["3.6.0"],"introduced":["0"],"last_affected":[],"package":"luigi","purl":"pkg:pypi/luigi","source":"GHSA-8qch-vj6m-2694"},{"ecosystem":"PyPI","fixed":["3.6.0"],"introduced":["0"],"last_affected":[],"package":"luigi","purl":"pkg:pypi/luigi","source":"PYSEC-2024-159"}],"prev":{"headline":"dom-iterator code execution vulnerability","id":"CVE-2024-21541"},"products":["luigi"],"published":"2024-12-10","related":[],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"CC BY 4.0","name":"PyPA Advisory Database","prefix":"PYSEC"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"},{"class":"open","licence":"CC0","name":"PoC-in-GitHub"}],"ssvc":{"automatable":"yes","exploitation":"none","technical_impact":"partial"},"state":"PUBLISHED","updated":"2026-08-03","vendors":["n/a"]},"summary":"Attackers can write arbitrary files via Zip Slip in Luigi, potentially leading to code execution or data modification.","url":"https://insights.sbomify.com/CVE-2024-21542/"}