# CVE-2024-47821: pyLoad remote code execution via flashgot API and scripts folder manipulation

Source: https://junglewise.ai/threats/cve-2024-47821-pyload-remote-code-execution-via-flashgot-api-and-scripts-folder  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2024-10-28. Updated: 2026-06-08  
License: CC BY 4.0 with a link back

CVE-2024-47821 · Severity: critical · CVSS 9.1 · Published 2024-10-28

pyLoad, a popular open-source download manager, is vulnerable to a security flaw that allows an attacker to take full control of the server. By manipulating download settings and using a specific internal interface, an attacker can upload and execute malicious scripts on the host system. This could lead to total data loss, unauthorized access to the corporate network, and complete system compromise.

Technologies: [pyLoad Next Generation](https://junglewise.ai/threats/technologies/pyload-next-generation), [pyload-ng (PyPI)](https://junglewise.ai/threats/technologies/pyload-ng). Vendors: [pyLoad](https://junglewise.ai/threats/vendors/pyload), [PyPI](https://junglewise.ai/threats/vendors/pypi).

## Quick answers

**Is CVE-2024-47821 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2024-47821 being exploited in the wild.

**How severe is CVE-2024-47821?** Critical severity, with a CVSS score of 9.1, published 28 October 2024.

**Which products and versions are affected?** pyload-ng (PyPI) < 0.5.0b3.dev87, ECOSYSTEM:introduced=0,fixed=0.5.0b3.dev87, ECOSYSTEM:introduced=0,last_affected=0.5.0.

**Is there a fix for CVE-2024-47821?** Yes. pyload-ng (PyPI): upgrade to 0.5.0b3.dev87 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.

**How is CVE-2024-47821 attacked?** It is attacked over the network, in a network appliance.

**Am I affected by CVE-2024-47821?** Check whether you run pyLoad Next Generation or pyload-ng (PyPI) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## How to fix

- pyload-ng (PyPI): upgrade to 0.5.0b3.dev87 or later

  ```sh
  pip install "pyload-ng>=0.5.0b3.dev87"
  ```


## Technical details

A remote code execution (RCE) vulnerability exists in pyLoad due to improper validation in the /flashgot API and insecure handling of the scripts directory. An attacker with administrative privileges can change the download directory to the internal '/.pyload/scripts' folder and enable executable permissions for downloads. By bypassing local-only access checks through Host and Referer header spoofing, the attacker can use the /flashgot API to download a malicious script into a trigger folder (e.g., 'download_finished'). The script is subsequently executed by the system when a download event occurs. This issue is tracked as CVE-2024-47821 and is fixed in version 0.5.0b3.dev87.

## Affected products

- pyLoad pyload-ng < 0.5.0b3.dev87

## Identifiers

- CVE-2024-47821
- GHSA-w7hq-f2pj-c53g
- PYSEC-2024-302

## Timeline

- 2024-10-25: disclosed
- 2024-10-28: advisory

## References

- [https://api.github.com/users/anuraagbaishya](https://api.github.com/users/anuraagbaishya)
- [https://github.com/anuraagbaishya](https://github.com/anuraagbaishya)
- [https://api.github.com/users/anuraagbaishya/gists%7B/gist_id%7D](https://api.github.com/users/anuraagbaishya/gists%7B/gist_id%7D)
- [https://api.github.com/users/anuraagbaishya/repos](https://api.github.com/users/anuraagbaishya/repos)
- [https://avatars.githubusercontent.com/u/9999954?v=4](https://avatars.githubusercontent.com/u/9999954?v=4)
- [https://api.github.com/users/anuraagbaishya/events%7B/privacy%7D](https://api.github.com/users/anuraagbaishya/events%7B/privacy%7D)

## Related threats

- [pyLoad unauthenticated template access and information disclosure](https://junglewise.ai/threats/cve-2026-75597-pyload-unauthenticated-access-to-web-path-filename-bypasses)
- [pyLoad API denial of service in multipart file upload handling](https://junglewise.ai/threats/cve-2026-48484-pyload-lack-of-input-size-validation-leads-to-denial-of-service)
- [pyload-ng authentication bypass in getUserData/get_userdata](https://junglewise.ai/threats/pyload-ng-getuserdata-get-userdata-exposed-at-perms-any-allow-any-cd197c9d)
- [pyLoad rate-limit bypass and audit-log spoofing via X-Forwarded-For header](https://junglewise.ai/threats/pyload-rate-limit-bypass-and-audit-log-spoofing-via-trusted-client-0df0fd12)
- [pyLoad session invalidation bypass in privilege revocation and password change](https://junglewise.ai/threats/pyload-privilege-revocation-and-password-change-through-the-rest-api-do-8e7301ba)
