{"answers":{"affected":"3 open source packages ship an affected version, including pyload-ng. It affects 1 product.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2024-47821 exists.","fix":"Upgrade pyload-ng to 0.5.0b3.dev87 or later.","what":"CVE-2024-47821 is a critical code injection vulnerability in pyload, published on 25 Oct 2024. An attacker needs administrator access to exploit it, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2024-47821 and fix it if it is affected.\n\nWhat it is: CVE-2024-47821 is a critical code injection vulnerability in pyload, published on 25 Oct 2024. An attacker needs administrator access to exploit it, with no action from the victim.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2024-47821 exists.\n\nAffected packages and fixed versions:\n- pyload-ng (PyPI): affected all versions up to 0.5.0; no fix listed\n- pyload-ng (PyPI): affected all versions; fixed in 0.5.0b3.dev87\n- pyload-ng (PyPI): affected all versions; fixed in 0.5.0b3.dev87\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-47821/ (Markdown: https://insights.sbomify.com/CVE-2024-47821/index.md)","id":"CVE-2024-47821","markdown":"https://insights.sbomify.com/CVE-2024-47821/index.md","name":"CVE-2024-47821","record":{"aliases":["GHSA-w7hq-f2pj-c53g","PYSEC-2024-302"],"analysis":{"component_type":"desktop_application","fix_type":"upgrade","impacts":["code_execution"],"network_reachable":"yes","non_default_config":false,"product_category":"pyLoad download manager","requires_auth":"high_privilege","summary":"An attacker with settings access can execute arbitrary code by downloading scripts to the scripts folder via the flashgot API.","user_interaction":"not_required","vuln_class":"code_injection"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"pyload","vendor":"pyload"}],"cvss":{"score":9.1,"severity":"critical","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H","version":"3.1"},"cwes":[{"id":"CWE-78","name":"Improper Neutralization of Special Elements used in an OS Command"}],"description":"pyLoad is a free and open-source Download Manager. The folder `/.pyload/scripts` has scripts which are run when certain actions are completed, for e.g. a download is finished. By downloading a executable file to a folder in /scripts and performing the respective action, remote code execution can be achieved in versions prior to 0.5.0b3.dev87. A file can be downloaded to such a folder by changing the download folder to a folder in `/scripts` path and using the `/flashgot` API to download the file. This vulnerability allows an attacker with access to change the settings on a pyload server to execute arbitrary code and completely compromise the system. Version 0.5.0b3.dev87 fixes this issue.","ecosystems":["PyPI"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"weaponised"},"has_fix":true,"headline":"pyLoad vulnerable to remote code execution by download to /.pyload/scripts using /flashgot API","id":"CVE-2024-47821","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"PyPI","product":null,"products":[],"type":"code_injection","year":"2024"},"n_packages":3,"n_references":1,"next":{"headline":"Directus inserts access token from query string into logs","id":"CVE-2024-47822"},"packages":[{"ecosystem":"PyPI","fixed":[],"introduced":["0"],"last_affected":["0.5.0"],"package":"pyload-ng","purl":"pkg:pypi/pyload-ng","source":"PYSEC-2024-302"},{"ecosystem":"PyPI","fixed":["0.5.0b3.dev87"],"introduced":["0"],"last_affected":[],"package":"pyload-ng","purl":null,"source":"GHSA-w7hq-f2pj-c53g"},{"ecosystem":"PyPI","fixed":["0.5.0b3.dev87"],"introduced":["0"],"last_affected":[],"package":"pyload-ng","purl":"pkg:pypi/pyload-ng","source":"GHSA-w7hq-f2pj-c53g"}],"prev":{"headline":"MarkUs vulnerable to Path Traversal","id":"CVE-2024-47820"},"products":["pyload"],"published":"2024-10-25","related":[{"cvss_score":9.8,"headline":"Code Injection in pyload/pyload","id":"CVE-2023-0297","kev_date_added":null,"published":"2023-01-14"},{"cvss_score":9.3,"headline":"pyLoad: Server-Side Request Forgery via Download Link Submission Enables Cloud Metadata Exfiltration","id":"CVE-2026-33992","kev_date_added":null,"published":"2026-03-27"},{"cvss_score":9.1,"headline":"pyLoad allows upload to arbitrary folder lead to RCE","id":"CVE-2024-32880","kev_date_added":null,"published":"2024-04-26"},{"cvss_score":8.8,"headline":"pyLoad has Stale Session Privilege After Role/Permission Change (Privilege Revocation Bypass)","id":"CVE-2026-41133","kev_date_added":null,"published":"2026-04-21"},{"cvss_score":8.8,"headline":"Download to arbitrary folder can lead to RCE","id":"CVE-2023-47890","kev_date_added":null,"published":"2024-01-08"},{"cvss_score":8.3,"headline":"Insufficient Session Expiration in pyload/pyload","id":"CVE-2023-0227","kev_date_added":null,"published":"2023-01-12"}],"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":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"poc","technical_impact":"total"},"state":"PUBLISHED","updated":"2024-10-28","vendors":["pyload"]},"summary":"An attacker with settings access can execute arbitrary code by downloading scripts to the scripts folder via the flashgot API.","url":"https://insights.sbomify.com/CVE-2024-47821/"}