Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
ReconGain admin access to pyLoad
-
DeliverySet storage_folder=/tmp/pyLoad/flask
-
ExploitBypass directory validation check
-
InstallRequest /files/get/victim_session_file
-
C2Download victim session file
-
ExecuteExtract and reuse session cookie
-
ImpactAchieve account takeover
Vulnerability Assessment
| Weakness |
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Incorrectly specified target
|
| Exploitation Conditions | The attacker must have admin-level privileges in pyLoad to access and modify the storage_folder setting via the web API or interface. The /files/get/ endpoint must be accessible to the attacker (typically true for any authenticated user or admin). The Flask session directory must exist at /tmp/pyLoad/flask (default configuration on Linux). The victim's session file must remain stored as a readable file in that directory (default Flask file-based session storage). No special configuration or non-default behavior is required-the vulnerability exists in default deployments with admin users present. |
| Impact | CVSS 6.5 (AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:N) indicates network-accessible attack by high-privileged users without user interaction. The attack vector is network and authentication requirement is high privilege (admin role), which significantly limits the attacker pool to compromised or malicious administrators. However, the impact is severe: confidentiality and integrity are both high (session theft leads to account takeover). No EPSS score or CISA KEV status provided, but PoC code is publicly available on GitHub, confirming practical exploitability. The CVSS vector correctly captures the threat model-this is not a low-skill attack but requires administrative access to the pyLoad instance. Real-world risk depends heavily on deployment context: pyLoad instances exposed to untrusted admin users face critical risk, while properly access-controlled internal instances face reduced risk. The bypass is complete-the suggested fix demonstrates that including api.get_cachedir() in blocked directories would fully remediate the issue, confirming the vulnerability is real and not a misunderstanding of intended behavior. |
| Exploit ScenarioDerived | A malicious or compromised administrator of a pyLoad instance navigates to the web interface and sets storage_folder to /tmp/pyLoad/flask. They then request GET /files/get/flask_session_12345abcde (a victim user's session file) via curl or browser, which the vulnerable endpoint serves directly. The attacker extracts the session cookie value from the downloaded file, sets it in their own browser, and is logged in as the victim user with full access to their account. No user interaction is required from the victim. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – May 14, 2026
Authenticated admin users in pyLoad-ng can bypass the CVE-2026-33509 fix by setting the storage_folder to the Flask session directory (/tmp/pyLoad/flask), then downloading and reusing session files of other users via the /files/get/ endpoint to achieve account takeover. The original patch failed to block access to the session cache directory, leaving it accessible through the directory traversal protection bypass. Publicly available proof-of-concept code confirms the bypass is functional.
RemediationAI
Apply the vendor-provided patch by modifying src/pyload/core/api/__init__.py to include api.get_cachedir() in the list of blocked directories. The corrected code should validate that storage_folder does not reside within PKGDIR, userdir, or api.get_cachedir(). Exact patched version confirmation is pending from the pyLoad project; check https://github.com/pyload/pyload/security/advisories/GHSA-w727-595x-pc3r for the official patch release. As an interim compensating control on Linux systems, restrict write permissions on /tmp/pyLoad/flask to the pyLoad process user only and prevent unprivileged users from modifying storage_folder settings through role-based access control. Disable the /files/get/ endpoint entirely if not required for legitimate use, or implement allowlist-based path validation that prevents access to any directory outside a designated safe directory. Monitor Flask session files in /tmp/pyLoad/flask for unauthorized access or deletion, as these may indicate exploitation attempts.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 2 packages in pypi, euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
pyLoad-ng is a Python-based download manager with a Flask web interface that stores user session files in /tmp/pyLoad/flask. The vulnerability stems from an incomplete patch to CVE-2026-33509 in src/pyload/core/api/__init__.py, which validates that storage_folder cannot be set inside PKGDIR (/usr/lib/python3/dist-packages/pyload) or userdir (~/.pyload), but fails to block the Flask session cache directory (api.get_cachedir()/flask). The /files/get/ endpoint uses send_from_directory() to serve files from the configured storage_folder without proper path validation against all sensitive directories. CWE-706 (Incorrect Comparison) describes the root cause: the comparison logic is incomplete, missing a critical directory from the allowlist of blocked paths. The underlying issue is path traversal control bypass combined with improper access control to sensitive system directories.
Know when Python gets its next vulnerability
- 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
AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:N
Primary rating from GitHub Advisory · only source for this CVE.
CVSS VectorGitHub Advisory
Lifecycle Timeline
2DescriptionGitHub Advisory
Summary
The fix for CVE-2026-33509 prevents setting storage_folder inside PKGDIR or userdir, but does NOT protect the Flask session directory (/tmp/pyLoad/flask). An authenticated attacker can set storage_folder to the session directory and download session files of other users via /files/get/, leading to account takeover.
Details
The fix in src/pyload/core/api/__init__.py:
directories = [PKGDIR, userdir]
if any(directories[0].startswith(d) for d in directories[1:]):
return
# blockedBut the Flask session directory is:
session_storage_path = os.path.join(api.get_cachedir(), "flask")
# = /tmp/pyLoad/flask ← NOT blocked by fixAttack Chain
- Attacker (admin) sets
storage_folder = /tmp/pyLoad/flask - Fix does NOT block this -
/tmp/pyLoad/flasknot insidePKGDIRoruserdir - Attacker requests
GET /files/get/<victim_session_filename> send_from_directory('/tmp/pyLoad/flask', session_file)serves victim's session- Attacker uses stolen session → Account Takeover
PoC
<img width="592" height="408" alt="POC" src="https://github.com/user-attachments/assets/936b9f56-325b-437d-9edd-e0d5bb995187" />
import os
PKGDIR = "/usr/lib/python3/dist-packages/pyload"
userdir = os.path.expanduser("~/.pyload")
session_dir = "/tmp/pyLoad/flask"
correct_case = lambda x: x
directories = [
correct_case(os.path.join(os.path.realpath(d), ""))
for d in [session_dir, PKGDIR, userdir]
]
blocked = any(directories[0].startswith(d) for d in directories[1:])
print(f"Fix blocks session_dir: {blocked}")
# Output: Fix blocks session_dir: False ← BYPASS CONFIRMEDImpact
Authenticated admin can steal sessions of other users → Account Takeover.
Suggested Fix
blocked_dirs = [PKGDIR, userdir, api.get_cachedir()]
directories = [
os.path.join(os.path.realpath(d), "")
for d in [value] + blocked_dirs
]
if any(directories[0].startswith(d) for d in directories[1:]):
returnThreat Intelligence Overview
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.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Authentication bypass attacks exploit flaws in the verification mechanisms that control access to systems and applications.
Wazuh SIEM platform versions 4.4.0 through 4.9.0 contain an unsafe deserialization vulnerability in the DistributedAPI t
BentoML version 1.4.2 and earlier contains an unauthenticated remote code execution vulnerability through insecure deser
pgAdmin 4 contains critical remote code execution vulnerabilities in the Query Tool download and Cloud Deployment endpoi
The renderLocalView function in render/views.py in graphite-web in Graphite 0.9.5 through 0.9.10 uses the pickle Python
BentoML is a Python library for building online serving systems optimized for AI apps and model inference. Rated critica
OpenSSL before 0.9.8za, 1.0.0 before 1.0.0m, and 1.0.1 before 1.0.1h does not properly restrict processing of ChangeCiph
pyLoad download manager version prior to 0.5.0b3.dev77 exposes the Flask SECRET_KEY through an unauthenticated endpoint.
Langflow (a visual LLM pipeline builder) contains a critical unauthenticated code execution vulnerability (CVE-2026-3301
In Mercurial before 4.1.3, "hg serve --stdio" allows remote authenticated users to launch the Python debugger, and conse
Unauthenticated remote code execution affects Kestra OSS (the open-source event-driven orchestration platform) prior to
Unauthenticated remote code execution in Marimo ≤0.20.4 allows attackers to execute arbitrary system commands via the `/
pyLoad is the free and open-source Download Manager written in pure Python. Rated medium severity (CVSS 5.3), this vulne
EUVD-2026-32958
GHSA-w727-595x-pc3r
NVD
CVE.org
EPSS
Exploit-DB