Skip to main content

Boteraser | Website and Server Security Solutions

🛡️ CVE-2026-45306 — pyload-ng

🟡 CVSS 6.5 — Medium ✅ No Known Exploit CWE-706 NVD
6.5
CVSS Score
0 Low4 Medium7 High9 Critical10

Description

pyLoad Has Incomplete Fix for CVE-2026-33509 -storage_folder Bypass via Session Directory in pyLoad

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

```

How this vulnerability can be exploited

This issue can be reached over the network, attack complexity is low, an attacker needs administrative privileges on the target. No user interaction is required. The scope is unchanged, so the impact stays within the vulnerable component. Rated impact: confidentiality high, integrity high, availability none.

CVSS metrics in full

The score comes from this vector: CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:N

  • Attack vector: Network — reachable from anywhere that can route to the service.
  • Attack complexity: Low — the attack works reliably, with no preparation.
  • Privileges required: High — administrative rights are needed first.
  • User interaction: None — nobody has to be tricked into anything.
  • Scope: Unchanged — the damage stays inside the vulnerable component.
  • Confidentiality impact: High — total loss, or loss the attacker controls.
  • Integrity impact: High — total loss, or loss the attacker controls.
  • Availability impact: None.

Weakness class

CVE-2026-45306 is classified as CWE-706: Use of Incorrectly-Resolved Name or Reference. The product uses a name or reference to access a resource, but the name/reference resolves to a resource that is outside of the intended control sphere.

Affected software

CVE-2026-45306 is recorded against 2 packages.

  • pyload-ng
  • unknown

Timeline and source

Published on 13 July 2026. No public exploit is currently recorded for this entry. Record sourced from NVD.

References

github.com (Web)
nvd.nist.gov (Advisory)
github.com (Advisory)
github.com (Package)
pypi.org (Package)
github.com (Advisory)

Other advisories for this package

pyload-ng has other advisories on record. If you are patching this one, these are worth checking on the same host:

Same weakness in other software

These advisories are the same class of weakness (CWE-706: Use of Incorrectly-Resolved Name or Reference) in other software:

Details

Severity Medium
CVSS Score 6.5
CVSS Vector CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:N
CWE CWE-706
Public Exploit ✅ No
Source NVD
Published 2026-07-13
Updated 2026-08-20
Modified 2026-07-13
Fix URL N/A

Affected Packages

Software From version Fixed in
pyload-ng
unknown

Similar Threats

Vulnerability Monitoring

Track new vulnerabilities in pyload-ng

CVE-2026-45306 is rated CVSS 6.5 Medium. BotEraser monitors your WordPress installation and notifies you when software you use appears in our vulnerability database.

Set Up Free Alerts →

No credit card required  ·  Results in minutes

ⓘ Data Notice: The information presented above has been compiled from publicly available internet sources. Boteraser aggregates this data solely for informational purposes and does not independently classify, evaluate, or endorse any findings about the vulnerabilities listed. The accuracy and completeness of this information is the sole responsibility of the original publishers. Boteraser and its operators accept no liability for any decisions made based on this data.

Browse related advisories

All advisoriesCVECVE 2026