CVEReports
CVEReports

Automated vulnerability intelligence platform. Comprehensive reports for high-severity CVEs generated by AI.

Product

  • Home
  • Sitemap
  • RSS Feed

Company

  • About
  • Contact
  • Privacy Policy
  • Terms of Service

© 2026 CVEReports. All rights reserved.

Made with love by Amit Schendel & Alon Barad



GHSA-JQ7H-WRVP-3RGX

GHSA-JQ7H-WRVP-3RGX: Insufficient Session Invalidation in pyLoad Core REST API

Amit Schendel
Amit Schendel
Senior Security Researcher

Oct 9, 2026·4 min read·13 visits

Executive Summary (TL;DR)

Administrative changes via the pyLoad REST API (such as password changes or permission downgrades) do not invalidate active filesystem-based Flask sessions. Affected users retain their original high-privilege permissions for the entire session lifetime (up to 31 days) unless sessions are manually purged.

An insufficient session invalidation vulnerability exists in pyLoad (pyload-ng) versions 0.5.0b3.dev98 through 0.5.0b3.dev101. When administrative actions like privilege revocation or password changes are executed via the public REST API, active user sessions on disk are not updated or invalidated. Consequently, affected sessions remain fully authenticated with stale permissions for up to 31 days.

Vulnerability Overview

pyLoad utilizes a Flask-based web interface to expose configuration, download management, and user controls. To reduce database overhead during client requests, pyLoad caches security credentials—such as the user's role identifier and permission bitmask—directly inside the filesystem-backed Flask session when a user first authenticates.

This design introduces a critical trust-boundary problem. The cached session data acts as the absolute source of truth for subsequent authorization decisions, bypassing real-time database validation. The primary security vulnerability, tracked under GHSA-JQ7H-WRVP-3RGX, stems from a complete lack of synchronization between administrative updates performed via the backend REST API/RPC layer and these cached session structures.

Root Cause Analysis

The root cause of this flaw is insufficient session invalidation (CWE-613). When administrators interact with pyLoad's Web UI administration panel, the application explicitly coordinates state changes, calling helper functions like clear_all_user_sessions(username) to force deletion of associated filesystem cookies.

However, pyLoad also exposes a direct REST API and RPC dispatcher (/api/) handled by the module src/pyload/core/api/__init__.py. When administrative tasks are executed via these RPC endpoints—including user deletion, privilege modification, or password alterations—the system directly updates the backend SQLite database but has no logical awareness of the active Flask session manager layer.

Consequently, database records reflect the updated privileges, but the corresponding .sess files stored inside SESSION_FILE_DIR remain active, unexpired, and intact. Because parse_permissions() continues reading authorization bits directly from the stale cookie session, affected clients preserve high-privilege access for the duration of the session's active lifespan, which defaults to 31 days.

Architectural Data Flow Diagram

The sequence below illustrates the communication breakdown between the Core API layer, SQLite database, and Web UI Session Files, culminating in unauthorized persistent access:

This architectural separation prevents the database-level modifications from propagating to active transport-layer sessions, creating a vulnerability window of up to 31 days.

Code Analysis and Patch Walkthrough

Before the patch, core user configuration methods had no references to Flask-layer sessions. To resolve this, the patch introduces a callback registration mechanism allowing the core API to request session invalidation safely.

# File: src/pyload/core/api/__init__.py (Post-patch)
def __init__(self, core):
    # ...
    self._session_invalidator = None
 
def set_session_invalidator(self, invalidator: Optional[Callable[[str], int]]) -> None:
    self._session_invalidator = invalidator
 
def _invalidate_user_sessions(self, user: str) -> None:
    if self._session_invalidator is not None:
        # Invokes the lambda registered by the Web UI layer
        self._session_invalidator(user)

The Web UI initializes this callback during web application configuration:

# File: src/pyload/webui/app/__init__.py
api = app.config["PYLOAD_API"]
api.set_session_invalidator(lambda user: clear_all_user_sessions(user))

Any critical user updates within the Core API are then wrapped to trigger the callback upon successful database execution:

# File: src/pyload/core/api/__init__.py
@legacy("setUserPermission")
@post
def set_user_permission(self, user: str, permission: int, role: int) -> None:
    # Database change operation returned boolean status
    changed = self.pyload.db.set_user_permission(user, permission, role)
    if changed:
        self._invalidate_user_sessions(user)

Attack Exploitation Methodology

An attacker must establish or compromise a valid cookie-authenticated session before privilege changes or password changes are made.

Once an administrative action is taken via the RPC API—for example, resetting a compromised user's password or reducing their user level to 1—the attacker can test persistence by making direct API calls targeting administrative features, such as get_userdir or get_config.

Because the underlying Flask framework authorizes the request using the existing filesystem session token, the client session is deemed authentic. No request middleware cross-references the session's cached values with the current DB table, maintaining administrative privileges for the lifetime of the session.

Patch Completeness Assessment

While the registered callback mechanism successfully fixes the structural bypass, security engineers should monitor two specific implementation aspects.

First, inside clear_all_user_sessions in src/pyload/webui/app/helpers.py, the removal of the general try-except structure during directory parsing introduces a minor robustness issue. If a concurrent request removes a session file, or if a zero-byte session file exists on disk, _read_session_file or os.remove will raise an unhandled exception. This will abort execution mid-loop, resulting in a server error (HTTP 500) and leaving other target user sessions still active.

Second, the synchronization is wholly dependent on the runtime environment registering the Flask configuration callback. If the application is launched in an embedded context without executing _configure_session(), the callback pointer remains None, leaving the API-level methods without any functional session invalidation capabilities.

Official Patches

pyLoadOfficial fix commit implementing API-level session invalidation callbacks.

Fix Analysis (1)

Technical Appendix

CVSS Score
7.5/ 10
CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H

Affected Systems

pyLoad (pyload-ng) Web UI & REST API

Affected Versions Detail

Product
Affected Versions
Fixed Version
pyload-ng
pyload
>= 0.5.0b3.dev98, <= 0.5.0b3.dev101Commit 3e726ba271a6b1015e3a0ea6dc7e46a8f71a62ad
AttributeDetail
CWE IDCWE-613
Attack VectorNetwork
CVSS Score7.5
Exploit StatusProof of Concept available
ImpactPrivilege Escalation / Persistent Session Hijack

MITRE ATT&CK Mapping

T1563Subvert Active Sessions
Defense Evasion
T1098Account Manipulation
Persistence
CWE-613
Insufficient Session Invalidation

The application does not invalidate a session when the user's password or privilege level is modified via the API dispatcher.

References & Sources

  • [1]GitHub Security Advisory GHSA-jq7h-wrvp-3rgx
  • [2]GitHub Security Advisory GHSA-889w-m37p-88m5
  • [3]Fix Commit 3e726ba
  • [4]pyLoad GitHub Repository
Related Vulnerabilities
GHSA-889w-m37p-88m5

Attack Flow Diagram

Press enter or space to select a node. You can then use the arrow keys to move the node around. Press delete to remove it and escape to cancel.
Press enter or space to select an edge. You can then press delete to remove it or escape to cancel.

More Reports

•about 2 hours ago•CVE-2026-9639
6.5

CVE-2026-9639: Authenticated Denial of Service via Nil-Pointer Dereference in Canonical LXD Custom Volume Backup Import

CVE-2026-9639 (GHSA-j93m-3j9p-m5m8) is a null pointer dereference vulnerability in Canonical LXD affecting versions 5.0.0 through 5.21.4 and 6.0 through 6.8. The flaw resides in the (*lxdBackend).CreateCustomVolumeFromBackup method within lxd/storage/backend_lxd.go. An authenticated attacker with the can_create_storage_volumes permission can upload a crafted custom volume backup tarball that omits the expires_at field on a snapshot entry, triggering an unhandled SIGSEGV panic and terminating the LXD daemon.

Amit Schendel
Amit Schendel
5 views•9 min read
•about 3 hours ago•CVE-2026-33050
8.8

CVE-2026-33050: OS Command Injection in GeoNode Vector Upload Handler

An operating system command injection vulnerability (CWE-78) exists in GeoNode versions prior to 5.1.0. The vulnerability occurs in the vector upload processing pipeline when handling user-supplied geospatial files. By supplying a crafted layer name containing shell metacharacters, an authenticated attacker with basic data upload privileges can execute arbitrary commands on the underlying server or container hosting the GeoNode application and Celery worker processes.

Alon Barad
Alon Barad
5 views•9 min read
•about 4 hours ago•CVE-2026-46429
5.5

CVE-2026-46429: Unrestricted File Upload and Validation Bypass in GeoNode

GeoNode versions prior to 5.0.3 contain an unrestricted file upload vulnerability (CWE-434) within the document and dataset ingestion architecture. Authenticated low-privileged users can bypass upload validation via direct REST API interactions, file extension masquerading, metadata mutation via PATCH requests, or malicious archive submissions. This allows attackers to store and serve dangerous file types, alter on-disk file references, or trigger path traversal and resource exhaustion during archive extraction.

Amit Schendel
Amit Schendel
5 views•10 min read
•about 5 hours ago•CVE-2026-55649
6.3

CVE-2026-55649: Stored Cross-Site Scripting in GeoNode Document Metadata Abstract Field

CVE-2026-55649 is a stored Cross-Site Scripting (XSS) vulnerability in GeoNode versions prior to 5.0.3. The flaw exists because document abstract metadata fields are ingested via the metadata management pipeline and stored in the backend database without HTML sanitization or input neutralization. An authenticated attacker with privileges to create or edit document metadata can inject arbitrary HTML and JavaScript payloads into these fields. When another user, such as an administrator, views the affected document page or catalog listing, the unencoded payload is rendered into the Document Object Model (DOM) and executes within the victim's browser session.

Amit Schendel
Amit Schendel
7 views•9 min read
•about 6 hours ago•GHSA-QX75-2P3R-PWM5
7.7

CVE-2026-55622: Cross-Project Instance Copy Authorization Bypass in Canonical LXD and LXC Incus

CVE-2026-55622 (GHSA-qx75-2p3r-pwm5) is an improper access control vulnerability (CWE-284) in Canonical LXD and LXC Incus (tracked as GHSA-c9f5-j9c3-mhrg). In multi-tenant deployments utilizing project-based isolation, the REST API handler for instance creation via POST /1.0/instances verifies that the authenticated user has authorization in the destination project specified by the query parameter, but fails to verify whether the user holds read or view permissions for the source instance when executing a copy operation across projects. Consequently, an authenticated client restricted to a single project can clone instances or snapshots from unauthorized projects into their own project, resulting in complete disclosure of the target instance filesystem and embedded credentials.

Amit Schendel
Amit Schendel
6 views•11 min read
•about 7 hours ago•GHSA-7MR3-28H5-M5VX
7.7

GHSA-7mr3-28h5-m5vx: Authorization Bypass and Cross-Project Volume Copy in Canonical LXD

An authorization bypass vulnerability in Canonical LXD (tracked as GHSA-7mr3-28h5-m5vx and CVE-2026-55621, and as GHSA-64f3-v33m-w89f in Linux Containers Incus) allows an authenticated user with restricted project access to copy custom storage volumes and volume snapshots from unauthorized projects. The flaw resides in the storagePoolVolumesPost REST API handler, which verifies permissions on the destination project but fails to check whether the caller holds view entitlements on the source project or volume specified in the request body.

Alon Barad
Alon Barad
5 views•10 min read