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-955R-X9J8-7RHH

RCE Bypass in Picklescan via Operator Module Primitives

Alon Barad
Alon Barad
Software Engineer

Mar 1, 2026·5 min read·25 visits

Executive Summary (TL;DR)

Picklescan versions prior to 0.0.34 failed to detect malicious pickles utilizing the `operator` module. Attackers could use functions like `methodcaller` to proxy calls to dangerous system commands, bypassing the scanner's denylist and achieving RCE. Fixed in version 0.0.34.

Picklescan, a security auditing tool for Python Pickle files, contained a critical vulnerability allowing for Remote Code Execution (RCE) bypass. The scanner relied on an incomplete denylist of dangerous globals, failing to account for higher-order functions in the Python `operator` module. Attackers could leverage `methodcaller`, `attrgetter`, and `itemgetter` to construct indirect calls to dangerous functions (such as `os.system`), effectively evading detection while achieving arbitrary code execution.

Vulnerability Overview

Picklescan is a static analysis tool designed to inspect Python Pickle streams for malicious content without executing them. It operates by parsing the Pickle opcodes and comparing referenced globals (modules and functions) against a predefined list of unsafe signatures. The goal is to allow safe deserialization of data while blocking attempts to execute arbitrary code, a common vector in Python applications processing untrusted serialized data.

The vulnerability, identified as GHSA-955R-X9J8-7RHH, resides in the incompleteness of the scanner's denylist. While Picklescan correctly flagged direct references to obvious execution primitives like os.system, eval, and exec, it failed to account for the standard library's operator and _operator modules. These modules contain higher-order functions that can be used to invoke methods or access attributes on objects indirectly.

By leveraging these overlooked primitives, an attacker can construct a valid Pickle stream that performs the equivalent of os.system(...) but appears benign to the scanner's logic. This results in a complete bypass of the security control, allowing arbitrary code execution on the system performing the scan or deserialization.

Root Cause Analysis

The root cause of this vulnerability is a Protection Mechanism Failure (CWE-693) specifically due to an Incomplete List of Disallowed Elements (CWE-184). Picklescan's security model relies on identifying dangerous GLOBAL opcodes. In the Python Pickle protocol, the GLOBAL opcode (or c in protocol 0) instructs the unpickler to import a module and retrieve an attribute.

The scanner maintains a dictionary _unsafe_globals in src/picklescan/scanner.py, which maps module names to sets of dangerous attribute names. Prior to version 0.0.34, this dictionary did not include entries for the operator or _operator modules.

The specific functions methodcaller, attrgetter, and itemgetter in these modules are particularly dangerous in a serialization context because they return callable objects that operate on their arguments. For example, operator.methodcaller('system', 'command') returns a callable that, when applied to the os module, executes os.system('command'). Because the scanner did not recognize operator.methodcaller as a threat, it permitted the creation of this callable, enabling the exploit chain.

Code Analysis

The vulnerability existed in the configuration of the _unsafe_globals dictionary. The fix involved explicitly adding the dangerous operator functions to this denylist. The patch ensures that any Pickle stream attempting to import these functions is flagged as malicious.

Below is the relevant change in src/picklescan/scanner.py from commit f2dea43e0c838e09ace1e62994143254b51de927:

# src/picklescan/scanner.py
 
_unsafe_globals = {
    "__builtin__": { ... },  # Existing unsafe builtins
    "builtins": { ... },     # Existing unsafe builtins
    
    # NEWLY ADDED BLOCK: explicit denylist for operator module
    "_operator": {
        "attrgetter",  # Can be used to access dangerous attributes
        "itemgetter",  
        "methodcaller", # Can be used to call dangerous methods
    },
    "operator": {
        "attrgetter",
        "itemgetter",
        "methodcaller",
    },
    # ... existing entries ...
}

The inclusion of both _operator (C implementation) and operator (Python interface) ensures that variations in how the module is imported are covered. Specifically, methodcaller is the most direct vector for RCE, as it allows invoking a method by name with pre-supplied arguments.

Exploitation Mechanics

To exploit this vulnerability, an attacker constructs a Pickle payload that chains valid, allowed operations to achieve a malicious outcome. The standard approach involves importing a target module (like os) and using operator.methodcaller to invoke a function on it.

The following Pickle assembly (Protocol 0) demonstrates the Proof-of-Concept:

cbuiltins
__import__
(Vos
tRp0                        # Import 'os' and store in memo 0
0c_operator
methodcaller
(Vsystem
Vecho "pwned"               # Create callable: methodcaller('system', 'echo "pwned"')
tR(g0                       # Apply the callable to the 'os' module stored in memo 0
tR.

Step-by-Step Execution Flow:

  1. Import: The payload uses builtins.__import__ to load the os module. Picklescan might allow this if strict restrictions aren't placed on __import__, or if the attacker uses other techniques to get a handle on os.
  2. Preparation: It invokes _operator.methodcaller with the arguments 'system' and the command string. This creates a "delayed" execution object.
  3. Trigger: The payload applies this methodcaller object to the os module instance. Internally, Python executes getattr(os, 'system')('echo "pwned"').
  4. Bypass: Since _operator.methodcaller was not in the denylist, Picklescan validates the stream as safe, and the unpickling process executes the command.

Impact Assessment

The impact of this vulnerability is critical for any system relying on Picklescan as a security boundary for untrusted data. By bypassing the scanner, an attacker gains the ability to execute arbitrary code with the privileges of the process deserializing the data.

  • Security Control Bypass: The primary function of the tool—preventing malicious Pickle execution—is completely negated.
  • Remote Code Execution (RCE): Successful exploitation leads to full system compromise.
  • Confidentiality, Integrity, Availability: All compromised. An attacker can read sensitive data, modify system files, or disrupt services.

While the vulnerability requires the attacker to be able to submit a Pickle file to the target, this is the exact scenario Picklescan is designed to handle. Therefore, the exposure is high for any deployment of the tool.

Mitigation & Remediation

Users of picklescan must upgrade to version 0.0.34 or later immediately. This version includes the updated denylist that blocks the operator module primitives.

Remediation Steps:

  1. Update Package: Run pip install --upgrade picklescan.
  2. Verify Version: Ensure the installed version is >= 0.0.34.
  3. Rescan Data: If you have stored Pickle files that were previously scanned and deemed "safe" by an older version of Picklescan, treat them as potentially compromised and rescan them with the updated version.

Defense in Depth:

It is widely acknowledged that the Python Pickle format is inherently insecure. Security scanners like Picklescan provide a layer of defense but should not be the sole control for untrusted data. Where possible, switch to safer serialization formats like JSON. If Pickle must be used, ensure cryptographic signing (HMAC) is validated before any deserialization or scanning attempts.

Official Patches

PicklescanCommit f2dea43 fixes the bypass by updating the unsafe globals list

Fix Analysis (1)

Technical Appendix

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

Affected Systems

Picklescan < 0.0.34

Affected Versions Detail

Product
Affected Versions
Fixed Version
picklescan
picklescan
< 0.0.340.0.34
AttributeDetail
CWE IDCWE-184
Attack VectorLocal / Remote (Context Dependent)
CVSS Score9.8 (Critical)
ImpactRemote Code Execution (RCE)
Exploit StatusProof of Concept (PoC) Available
ProtocolPython Pickle

MITRE ATT&CK Mapping

T1204.002User Execution: Malicious File
Execution
T1059.006Command and Scripting Interpreter: Python
Execution
T1027Obfuscated Files or Information
Defense Evasion
CWE-184
Incomplete List of Disallowed Elements

The software attempts to filter or sanitize input by searching for a list of dangerous elements (denylist), but the list is incomplete, allowing attackers to use alternative elements to bypass the filter.

Known Exploits & Detection

GitHub AdvisoryOfficial PoC demonstrating usage of _operator.methodcaller to invoke os.system

Vulnerability Timeline

Vulnerability patched in commit f2dea43
2025-12-27
Version 0.0.34 released on PyPI
2025-12-27
GHSA-955R-X9J8-7RHH published
2025-12-27

References & Sources

  • [1]GitHub Advisory GHSA-955R-X9J8-7RHH
  • [2]Picklescan v0.0.34 Release Notes

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

•18 minutes ago•CVE-2026-87011
7.5

CVE-2026-87011: Denial of Service via Event-Loop Starvation in Open WebUI OIDC Back-Channel Logout

CVE-2026-87011 is a critical vulnerability in Open WebUI versions 0.9.0 through 0.11.0. It allows unauthenticated remote attackers to trigger a Denial of Service (DoS) by sending crafted tokens to the back-channel logout endpoint, causing synchronous network calls that block the single-worker ASGI event loop.

Amit Schendel
Amit Schendel
1 views•8 min read
•about 1 hour ago•CVE-2026-88045
7.5

CVE-2026-88045: Denial of Service via Uncontrolled Memory Preallocation and Integer Overflow in rclone S3 Compatibility Layer

A high-severity Denial of Service (DoS) vulnerability in the S3 compatibility layer of rclone allows unauthenticated remote attackers (or authenticated attackers depending on configuration) to trigger rapid memory exhaustion and process termination. The flaw lies in the handling of S3 multipart uploads, where rclone eagerly allocates buffers based on untrusted size headers and fails to prevent integer overflows in its concurrent request admission control.

Alon Barad
Alon Barad
3 views•7 min read
•about 2 hours ago•CVE-2026-88046
5.3

CVE-2026-88046: Directory Traversal and Root Confinement Escape in rclone Core Engine

CVE-2026-88046 (also tracked via GHSA-38xv-hf3p-h7mq) is a directory traversal and root confinement escape vulnerability residing in the core listing and transfer logic of rclone. Prior to version 1.75.1, raw relative parent-directory sequences returned by flat-keyspace source backends are trusted and processed without proper sanitization, enabling writes outside the designated target root or bucket.

Amit Schendel
Amit Schendel
2 views•5 min read
•about 3 hours ago•CVE-2026-88017
7.3

CVE-2026-88017: Cross-Session Authentication-Proxy Backend Confusion in rclone FTP Server

The FTP server implementation of rclone is vulnerable to a cross-session identity and credential confusion flaw when configured with an authentication proxy. Under specific multi-tenant configurations where multiple distinct sessions authenticate with the same username, a global map caches credentials globally instead of isolating them inside the session context. This allows a concurrent attacker to hijack the active session backend of a victim using the same username.

Alon Barad
Alon Barad
3 views•7 min read
•about 4 hours ago•CVE-2026-88044
9.1

CVE-2026-88044: Authentication Bypass in rclone Dynamic Server Execution via Remote Control API

An authentication bypass vulnerability exists in rclone when dynamically starting FTP, S3, or SFTP servers via the Remote Control (RC) 'serve/start' API. The server constructors incorrectly check the global process configuration rather than request-scoped options, resulting in a silent bypass of the authentication proxy and enabling unauthenticated access.

Alon Barad
Alon Barad
4 views•6 min read
•about 5 hours ago•CVE-2026-88018
9.8

CVE-2026-88018: Authentication Bypass in rclone S3 Server Component via Empty HMAC Secret

Prior to version 1.75.1, rclone's S3 server component ('rclone serve s3') contains an authentication bypass vulnerability when configured with '--auth-proxy' but without '--auth-key'. The application validates AWS Signature Version 4 (SigV4) against an empty secret key string, enabling unauthenticated remote attackers to access storage backends.

Alon Barad
Alon Barad
7 views•6 min read