Skip to main content

pyLoad-ng EUVDEUVD-2026-32958

| CVE-2026-45306 MEDIUM
Use of Incorrectly-Resolved Name or Reference (CWE-706)
2026-05-14 https://github.com/pyload/pyload GHSA-w727-595x-pc3r
6.5
CVSS 3.1 · GitHub Advisory
View

Attack ChainAIDerived

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

  1. Recon
    Gain admin access to pyLoad
  2. Delivery
    Set storage_folder=/tmp/pyLoad/flask
  3. Exploit
    Bypass directory validation check
  4. Install
    Request /files/get/victim_session_file
  5. C2
    Download victim session file
  6. Execute
    Extract and reuse session cookie
  7. Impact
    Achieve 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.

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

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

Alert me

AnalysisAIv1 – 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

pyload < 0.5.0b3.dev100

Affected Packages

pypi pyload-ng no fix
euvd pyload fix: 0.5.0b3.dev100

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

GitHub Advisory PRIMARY 6.5 MEDIUM
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

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

Lifecycle Timeline

2
Patch available
May 28, 2026 - 20:02 EUVD
CVE Published
May 14, 2026 - 20:17 nvd
MEDIUM 6.5

DescriptionGitHub 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:

python
directories = [PKGDIR, userdir]
if any(directories[0].startswith(d) for d in directories[1:]):
    return
# blocked

But the Flask session directory is:

python
session_storage_path = os.path.join(api.get_cachedir(), "flask")
# = /tmp/pyLoad/flask  ← NOT blocked by fix

Attack Chain

  1. Attacker (admin) sets storage_folder = /tmp/pyLoad/flask
  2. Fix does NOT block this - /tmp/pyLoad/flask not inside PKGDIR or userdir
  3. Attacker requests GET /files/get/<victim_session_filename>
  4. send_from_directory('/tmp/pyLoad/flask', session_file) serves victim's session
  5. 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" />

python
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 CONFIRMED

Impact

Authenticated admin can steal sessions of other users → Account Takeover.

Suggested Fix

python
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:]):
    return

Threat Intelligence Overview

EPSS Score
0.0%
Top 91% exploitable
Threat Intel
1
1 source
Data Quality
5 sources
Confidence: Medium

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.0%
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· derived
Medium

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

Authentication bypass attacks exploit flaws in the verification mechanisms that control access to systems and applications.

More in Python

View all
CVE-2025-24016 CRITICAL POC
9.9 Feb 10

Wazuh SIEM platform versions 4.4.0 through 4.9.0 contain an unsafe deserialization vulnerability in the DistributedAPI t

CVE-2025-27520 CRITICAL POC
9.8 Apr 04

BentoML version 1.4.2 and earlier contains an unauthenticated remote code execution vulnerability through insecure deser

CVE-2025-2945 CRITICAL POC
9.9 Apr 03

pgAdmin 4 contains critical remote code execution vulnerabilities in the Query Tool download and Cloud Deployment endpoi

CVE-2013-5093 MEDIUM POC
6.8 Sep 27

The renderLocalView function in render/views.py in graphite-web in Graphite 0.9.5 through 0.9.10 uses the pickle Python

CVE-2025-32375 CRITICAL POC
9.8 Apr 09

BentoML is a Python library for building online serving systems optimized for AI apps and model inference. Rated critica

CVE-2014-0224 HIGH POC
7.4 Jun 05

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

CVE-2024-21644 HIGH POC
7.5 Jan 08

pyLoad download manager version prior to 0.5.0b3.dev77 exposes the Flask SECRET_KEY through an unauthenticated endpoint.

CVE-2026-33017 CRITICAL POC
9.3 Mar 17

Langflow (a visual LLM pipeline builder) contains a critical unauthenticated code execution vulnerability (CVE-2026-3301

CVE-2017-9462 HIGH POC
8.8 Jun 06

In Mercurial before 4.1.3, "hg serve --stdio" allows remote authenticated users to launch the Python debugger, and conse

CVE-2026-49869 CRITICAL POC
10.0 Jun 26

Unauthenticated remote code execution affects Kestra OSS (the open-source event-driven orchestration platform) prior to

CVE-2026-39987 CRITICAL POC
9.3 Apr 08

Unauthenticated remote code execution in Marimo ≤0.20.4 allows attackers to execute arbitrary system commands via the `/

CVE-2024-21645 MEDIUM POC
5.3 Jan 08

pyLoad is the free and open-source Download Manager written in pure Python. Rated medium severity (CVSS 5.3), this vulne

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