# CVE-2024-22416: pyLoad pyload-ng CSRF leading to admin privilege escalation

Source: https://junglewise.ai/threats/cve-2024-22416-pyload-pyload-ng-csrf-leading-to-admin-privilege-escalation  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2024-01-19. Updated: 2026-06-28  
License: CC BY 4.0 with a link back

CVE-2024-22416 · Severity: critical · CVSS 9.6 · Published 2024-01-19

pyLoad is a download manager that provides an API for remote management. A security flaw allows attackers to perform unauthorized actions by tricking a logged-in administrator into visiting a malicious website. This could allow an attacker to create a new administrator account, effectively taking full control of the application and its data.

Technologies: [pyload-ng (PyPI)](https://junglewise.ai/threats/technologies/pyload-ng). Vendors: [PyPI](https://junglewise.ai/threats/vendors/pypi).

## Quick answers

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

**How severe is CVE-2024-22416?** Critical severity, with a CVSS score of 9.6, published 19 January 2024.

**Which products and versions are affected?** pyload-ng (PyPI) < 0.5.0b3.dev78, ECOSYSTEM:introduced=0,fixed=0.5.0b3.dev78, GIT:introduced=0,fixed=1374c824271cb7e927740664d06d2e577624ca3e,fixed=c7cdc18ad9134a75222974b39e8b427c4af845fc|ECOSYSTEM:introduced=0,fixed=0.5.0b3.dev78.

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

**How is CVE-2024-22416 attacked?** It is attacked over the network, in a software library.

**Am I affected by CVE-2024-22416?** Check whether you run 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.dev78 or later

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


## Technical details

A Cross-Site Request Forgery (CSRF) vulnerability exists in pyLoad due to the API's acceptance of GET requests for state-changing operations and the absence of 'SameSite: Strict' or 'SameSite: Lax' attributes on session cookies. An attacker can craft a malicious webpage that triggers an API call (e.g., /api/add_user) when visited by an authenticated administrator. Because the browser automatically includes the session cookie in the cross-site request, the API executes the command with the administrator's privileges. This can lead to full administrative takeover. The issue is fixed in version 0.5.0b3.dev78.

## Affected products

- pyLoad pyload-ng < 0.5.0b3.dev78

## Identifiers

- CVE-2024-22416
- GHSA-pgpj-v85q-h5fm
- PYSEC-2024-17

## Timeline

- 2024-01-17: disclosed
- 2024-01-18: other: NVD published
- 2024-01-19: advisory: GitHub Advisory published

## References

- [https://api.github.com/users/PinkDraconian](https://api.github.com/users/PinkDraconian)
- [https://github.com/PinkDraconian](https://github.com/PinkDraconian)
- [https://api.github.com/users/PinkDraconian/gists%7B/gist_id%7D](https://api.github.com/users/PinkDraconian/gists%7B/gist_id%7D)
- [https://api.github.com/users/PinkDraconian/repos](https://api.github.com/users/PinkDraconian/repos)
- [https://avatars.githubusercontent.com/u/44903767?v=4](https://avatars.githubusercontent.com/u/44903767?v=4)
- [https://api.github.com/users/PinkDraconian/events%7B/privacy%7D](https://api.github.com/users/PinkDraconian/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)
