CVE-2025-54140
Description
pyLoad is a free and open-source Download Manager written in pure Python. In version 0.5.0b3.dev89, an authenticated path traversal vulnerability exists in the /json/upload endpoint of pyLoad. By manipulating the filename of an uploaded file, an attacker can traverse out of the intended upload directory, allowing them to write arbitrary files to any location on the system accessible to the pyLoad process. This may lead to: Remote Code Execution (RCE), local privilege escalation, system-wide compromise, persistence, and backdoors. This is fixed in version 0.5.0b3.dev90.
Affected packages
Versions sourced from the GitHub Security Advisory.
| Package | Affected versions | Patched versions |
|---|---|---|
pyload-ngPyPI | >= 0.5.0b3.dev89, < 0.5.0b3.dev90 | 0.5.0b3.dev90 |
Affected products
1Patches
1fc4b136e9c4eFix uncontrolled data used in path expression used in add_package() (#4589)
1 file changed · +3 −1
src/pyload/webui/app/blueprints/json_blueprint.py+3 −1 modified@@ -1,6 +1,7 @@ # -*- coding: utf-8 -*- import os +from werkzeug.utils import secure_filename import flask from flask.json import jsonify @@ -151,8 +152,9 @@ def add_package(): if not package_name or package_name == "New Package": package_name = file.filename + safe_filename = secure_filename(file.filename) file_path = os.path.join( - api.get_config_value("general", "storage_folder"), "tmp_" + file.filename + api.get_config_value("general", "storage_folder"), "tmp_" + safe_filename ) file.save(file_path) links.insert(0, file_path)
Vulnerability mechanics
Synthesis attempt was rejected by the grounding validator. Re-run pending.
References
5- github.com/advisories/GHSA-xqpg-92fq-grfgghsaADVISORY
- nvd.nist.gov/vuln/detail/CVE-2025-54140ghsaADVISORY
- github.com/pyload/pyload/blob/df094db67ec6e25294a9ac0ddb4375fd7fb9ba00/src/pyload/webui/app/blueprints/json_blueprint.pynvdWEB
- github.com/pyload/pyload/commit/fc4b136e9c4e7dcbb8e467ae802cb2c3f70a71b0nvdWEB
- github.com/pyload/pyload/security/advisories/GHSA-xqpg-92fq-grfgnvdWEB
News mentions
0No linked articles in our index yet.