Skip to main content

pyLoad CVE-2026-42315

MEDIUM
Path Traversal (CWE-22)
2026-05-05 https://github.com/pyload/pyload GHSA-838g-gr43-qqg9
6.5
CVSS 3.1 · NVD
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Recon
    Obtain API key with Perms.MODIFY
  2. Delivery
    Create download package via add_package
  3. Exploit
    Call set_package_data with absolute path in _folder
  4. Install
    Add malicious file URL to package
  5. C2
    Trigger download processing
  6. Execute
    Write arbitrary files to attacker-controlled location
  7. Impact
    Execute planted payload or disrupt service

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V5 - File Handling Path canonicalization, traversal prevention
MITRE ATT&CK

2 techniques across 2 tactics: Discovery, Collection

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Requires valid API key with Perms.MODIFY permission granted to the attacker. The pyLoad service must have filesystem write permissions to the target directory specified in the malicious _folder parameter - exploitation impact is limited by the service account's privileges. Attack succeeds against default installations where authenticated users can create and modify packages. No special pyLoad configuration, non-default features, or user interaction required beyond the authentication barrier. Limits: Network access to the pyLoad API endpoint (default port 8000) must be available, and the attacker must possess or compromise valid credentials. The S:U (Unchanged scope) in CVSS vector correctly indicates the vulnerability cannot escape the pyLoad process security context to compromise other components directly, though secondary impacts (webshell upload, configuration tampering) may escalate privileges through chained exploitation.

Impact

Real-world risk is MODERATE despite the CVSS 8.1 High severity rating. The CVSS vector (AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H) correctly identifies network-accessible exploitation with low complexity, but the PR:L (low-privilege required) constraint significantly limits attack surface - exploitation requires a valid API key with Perms.MODIFY permissions. No public exploit identified at time of analysis beyond the PoC in the security advisory, and no CISA KEV listing indicates this has not been observed in widespread active exploitation. The CVSS correctly assigns no confidentiality impact (C:N) since the vulnerability enables writing, not reading, arbitrary files. High integrity impact (I:H) reflects the ability to overwrite configuration files or plant malicious content in web-accessible directories. High availability impact (A:H) accounts for potential disk exhaustion or service disruption through writes to critical system directories. Attack complexity is genuinely low (AC:L) as the PoC demonstrates trivial exploitation via standard HTTP requests. However, practical exploitation requires insider access or compromised credentials, reducing urgency compared to unauthenticated remote code execution vulnerabilities. Organizations should prioritize patching if pyLoad instances are exposed to untrusted authenticated users or if API keys are shared across trust boundaries. The fix is available in version 0.5.0b3.dev100, making remediation straightforward.

Exploit ScenarioDerived

An authenticated attacker with a valid API key and Perms.MODIFY permission creates a download package via the add_package API endpoint, then calls set_package_data with a crafted payload setting _folder to /var/www/html/uploads. The attacker adds a malicious PHP webshell as a download link. When pyLoad processes the download queue, it writes the webshell to the web-accessible directory instead of the intended download folder, achieving remote code execution through the webserver context. Alternatively, setting _folder to /etc/cron.d and downloading a crafted cron job file achieves privilege escalation when cron executes the malicious job.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.1% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – May 05, 2026

Absolute path traversal in pyLoad download manager allows authenticated users to write files to arbitrary filesystem locations via unsanitized package folder names in the set_package_data() API function. Users with Perms.MODIFY can redirect downloads to sensitive directories (e.g., /etc, /root, system directories) bypassing intended download directory restrictions, enabling configuration overwrite or denial of service through disk exhaustion. Publicly available exploit code exists with complete proof-of-concept in the GitHub security advisory. CVSS 8.1 (High) reflects high integrity and availability impact limited by low-privilege authentication requirement.

RemediationAI

Upgrade pyload-ng to version 0.5.0b3.dev100 or later, which implements input sanitization for the _folder parameter in set_package_data() per the GitHub security advisory at https://github.com/pyload/pyload/security/advisories/GHSA-838g-gr43-qqg9. Apply the patch using pip: 'pip install --upgrade pyload-ng>=0.5.0b3.dev100'. If immediate patching is not feasible, implement the following compensating controls with noted trade-offs: (1) Restrict API access by revoking Perms.MODIFY from untrusted users and enforcing principle of least privilege on API keys - this prevents exploitation but reduces legitimate administrative functionality for affected users. (2) Run the pyLoad process in a restricted chroot jail or containerized environment with minimal filesystem write permissions - limits blast radius of successful exploitation to the container scope but requires infrastructure changes and may break legitimate download functionality if storage is mounted incorrectly. (3) Deploy web application firewall rules to block API requests to /api/set_package_data containing absolute path indicators (leading /, ../, Windows drive letters) in the _folder field - may be bypassed by encoding techniques and requires regex maintenance. Each workaround carries operational overhead; patching remains the definitive solution.

Affected Packages

pypi pyload-ng fix: 0.5.0b3.dev100

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in pypi

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

This vulnerability resides in pyLoad's REST API implementation (src/pyload/core/api/__init__.py), specifically the set_package_data() function which manages download package metadata. PyLoad is a Python-based download manager supporting multiple file hosting services. The flaw is a classic CWE-22 Absolute Path Traversal resulting from complete absence of input validation on the _folder parameter. When a package's download destination is set via the API, the user-supplied folder path is directly accepted without canonicalization, sanitization, or validation against a base directory. The affected component processes pip package pyload-ng versions <=0.5.0b3.dev99. Normal operation expects folder paths relative to the configured download directory, but the missing validation allows absolute paths (e.g., /var/www, /etc/cron.d) to be specified. Subsequent download operations will write files to the attacker-controlled location with the privileges of the pyLoad process, typically a dedicated service account but potentially more privileged depending on deployment.

Know when the next one hits your stack

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

NVD PRIMARY 6.5 MEDIUM
AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N

Primary rating from NVD · only source for this CVE.

CVSS VectorNVD

Attack Vector
Network
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
High
Availability
None

Lifecycle Timeline

2
Severity Changed
Nov 11, 2026 - 20:22 NVD
HIGH MEDIUM
CVSS changed
Nov 11, 2026 - 20:22 NVD
8.1 (HIGH) 6.5 (MEDIUM)

DescriptionNVD

Summary

No sanitization of package folder name allows writing files anywhere outside the intended download directory.

Affected Component
  • src/pyload/core/api/__init__.py
  • Function: set_package_data()

Details

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.

PoC

  1. Create a package, note response package ID e.g. 5
curl -X 'POST' \
  'http://localhost:8000/api/add_package' \
  -H 'accept: application/json' \
  -H 'X-API-Key: <valid api key>' \
  -H 'Content-Type: application/json' \
  -d '{
  "name": "set_package_data_exploit_poc",
  "links": [
    "http://example.com/file.txt"
  ],
  "dest": 1
}'
  1. Call set_package_data for this package ID with an arbitrary directory
curl -X 'POST' \
  'http://localhost:8000/api/set_package_data' \
  -H 'accept: */*' \
  -H 'X-API-Key: <valid api key>' \
  -H 'Content-Type: application/json' \
  -d '{
  "package_id": 5,
  "data": {
    "_folder": "/users/root/"
  }
}'
  1. New download folder will be set without any checks
curl -X 'GET' \
  'http://localhost:8000/api/get_queue' \
  -H 'accept: application/json' \
  -H 'X-API-Key: <valid api key>'

Response:

[
  {
    "pid": 5,
    "name": "set_package_data_exploit_poc",
    "folder": "/users/root/",
    "site": "",
    "password": "",
    "dest": 1,
    "order": 1,
    "linksdone": 0,
    "sizedone": 0,
    "sizetotal": 0,
    "linkstotal": 1,
    "links": null,
    "fids": null
  }
]

Impact

Allows Absolute Path Traversal to write in an arbitrary directory as long as the pyLoad process has write access.

Executive ViewAI

Why It Matters

CVE-2026-42315 is a high-severity path traversal vulnerability in pyLoad download manager that allows authenticated users with modification permissions to write files to arbitrary filesystem locations, potentially overwriting critical system configurations or exhausting disk capacity. Organizations using pyLoad face immediate risk of system compromise and operational disruption through malicious file placement by internal or compromised accounts with download management privileges.

Business Impact: High
Compensating Controls

No vendor-released patch identified at time of analysis. Interim mitigations: (1) Restrict Perms.MODIFY role assignment to trusted administrators only and enforce principle of least privilege; (2) Run pyLoad process with minimal filesystem permissions and use OS-level access controls (AppArmor, SELinux) to restrict writes to designated download directories only; (3) Monitor and alert on file write attempts to /etc, /root, and other sensitive system directories originating from pyLoad process; (4) Disable pyLoad entirely if operationally feasible pending vendor patch; (5) Implement filesystem quotas to limit disk exhaustion attacks.

Threat Intelligence Overview

EPSS Score
0.1%
Top 82% exploitable
Threat Intel
1
1 source
Data Quality
5 sources
Confidence: Medium
NVD CVE.org EPSS GHSA GitHub VulDB

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.1%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
None
System Exposure· derived
Open
Automatable· derived
No
Human Impact
High

Priority Score

32
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +32
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Path traversal exploits occur when applications use user-controlled input to construct file system paths without proper validation.

Affected Products (CPE)NVD

pkg:pip/pyload-ng

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy