Dec 3, 2026·10 min read·6 visits
An incomplete blocklist in Trail of Bits Fickling (<= 0.1.10) omits the dangerous Python standard library modules _posixsubprocess, site, and atexit. Attackers can craft malicious pickle files or ML models utilizing these modules to bypass Fickling's static analysis check_safety() engine with zero findings, leading to arbitrary code execution when the payload is subsequently deserialized.
CVE-2026-14534 (GHSA-m6fh-58r7-x697, PYSEC-2026-2149) is a high-severity security verification bypass in Trail of Bits Fickling up to version 0.1.10. Fickling is a Python pickle decompiler and static analysis tool used to detect malicious payloads in serialized objects and machine learning models. The vulnerability stems from an incomplete module blocklist (CWE-184) within Fickling's static analysis engine, which omitted the Python standard library modules _posixsubprocess, site, and atexit. Because Fickling classifies unblocked standard library imports as benign, malicious pickle streams utilizing these modules receive a LIKELY_SAFE verdict. When applications rely on fickling.load() or fickling.loads() as a defensive gate prior to deserialization, the bypass allows untrusted pickle bytecode to pass directly into Python's native pickle.loads(), resulting in arbitrary code execution (CWE-502).
Trail of Bits Fickling is a static analysis framework, decompiler, and symbolic execution engine designed to evaluate the safety of Python pickle bytecode streams. Because the Python pickle format is a stack-based virtual machine capable of importing arbitrary modules and invoking callables during deserialization, it is a frequent vector for remote code execution in software systems. Fickling is commonly deployed in machine learning (ML) pipelines and model repositories to inspect serialized model weights (such as PyTorch checkpoints) before loading them into memory.
In versions up to and including 0.1.10, Fickling contains a security gate bypass vulnerability tracked as CVE-2026-14534 (and GitHub Security Advisory GHSA-m6fh-58r7-x697). The vulnerability is classified under CWE-184 (Incomplete List of Disallowed Inputs) and CWE-502 (Deserialization of Untrusted Data). Fickling's static analysis verification function, check_safety(), relies on a hardcoded blocklist named UNSAFE_IMPORTS inside fickling/fickle.py to detect hazardous module imports within a pickle stream.
The blocklist in affected versions omitted three critical Python standard library and internal C extension modules: _posixsubprocess, site, and atexit. Because Fickling treats Python standard library modules that do not appear in UNSAFE_IMPORTS as inherently safe (likely_safe_imports), pickle payloads that reference callables from these three modules do not trigger the UnsafeImports heuristic.
When an application utilizes Fickling's high-level wrapper APIs—such as fickling.load(), fickling.loads(), or the fickling.check_safety() context manager—as a pre-deserialization sanitizer, a malicious payload utilizing these omitted modules receives a verdict of Severity.LIKELY_SAFE with zero security findings. Upon receiving this clean verdict, Fickling delegates the bytecode stream to Python's native pickle.load() or pickle.loads(), allowing an attacker to execute arbitrary native binaries or Python code with the privileges of the host process.
To evaluate a pickle stream without executing it, Fickling disassembles the raw pickle opcodes into an internal Abstract Syntax Tree (AST) representation that models the equivalent Python statements the Pickle Virtual Machine (PVM) would perform. Fickling then runs a suite of static analysis heuristics across this synthetic AST to identify malicious patterns. The primary heuristics responsible for catching code execution primitives are UnsafeImports, OvertlyBadEvals, and UnusedVariables.
When a pickle stream executes a GLOBAL or STACK_GLOBAL opcode to import a callable, Fickling resolves the target module name and evaluates it through the UnsafeImports rule. If the module is part of the Python standard library, Fickling checks whether the module string is present in the UNSAFE_IMPORTS set defined in fickling/fickle.py. If a standard library module is absent from UNSAFE_IMPORTS, Fickling categorizes it as a benign import.
In Fickling 0.1.10 and earlier, _posixsubprocess, site, and atexit were omitted from UNSAFE_IMPORTS despite exposing direct process creation and script execution capabilities. Furthermore, because invoking functions within these modules does not require passing strings to top-level dynamic evaluation builtins like eval() or exec(), the OvertlyBadEvals heuristic remains dormant.
The third potential barrier in Fickling's analysis engine is the UnusedVariables heuristic. In a standard pickle stream, invoking a function for its side effects via the REDUCE opcode leaves the return value on the stack or binds it to an intermediate AST variable that is never referenced in the final returned object. Fickling flags unreferenced AST variables as suspicious side-effect execution. However, if the pickle stream integrates the return value of the REDUCE call into the final output dictionary using the SETITEM or SETITEMS opcodes, every variable in the decompiled AST is syntactically consumed by the final return statement. Consequently, all heuristics pass with zero findings, and check_safety() returns Severity.LIKELY_SAFE.
In fickling/fickle.py, the UNSAFE_IMPORTS structure is initialized within the __post_init__ method. Prior to the fix, the blocklist explicitly accounted for common execution modules such as os, posix, subprocess, pty, commands, and multiprocessing, as well as dynamic import modules like importlib, runpy, pkgutil, and zipimport. However, it failed to include the underlying C implementation backing subprocess on Unix platforms (_posixsubprocess), the startup customization engine (site), and the shutdown callback manager (atexit).
Trail of Bits resolved CVE-2026-14534 in Pull Request #272 via commit e8408615b63adf034f891f653692ab9b51f0f5af, followed by version bump commit 62028fbb8e60742469a77ef07c9aabd33e3cb568 for release 0.1.11. The patch adds the three missing module names directly to the UNSAFE_IMPORTS tuple inside fickling/fickle.py:
diff --git a/fickling/fickle.py b/fickling/fickle.py
index 50173a46..1215686b 100644
--- a/fickling/fickle.py
+++ b/fickling/fickle.py
@@ -74,6 +74,7 @@ def __post_init__(self) -> None:
"pty",
"commands", # Legacy Python 2 module
"multiprocessing",
+ "_posixsubprocess", # Block low-level POSIX fork_exec C extension
# Code execution/compilation
"code",
"codeop",
@@ -91,6 +92,7 @@ def __post_init__(self) -> None:
"pkgutil",
"zipimport",
"gc",
+ "site", # Block sitecustomize and .pth execution helpers
# Attribute access (getattr equivalent bypasses)
"inspect",
# Operator module bypasses
@@ -156,6 +158,7 @@ def __post_init__(self) -> None:
"_signal",
"threading",
"_thread",
+ "atexit", # Block interpreter exit hook manipulation
# Database/file creation
"sqlite3",
"_sqlite3",The release version was simultaneously updated in fickling/__init__.py:
diff --git a/fickling/__init__.py b/fickling/__init__.py
index 754dddad..f3b8b603 100644
--- a/fickling/__init__.py
+++ b/fickling/__init__.py
@@ -8,4 +8,4 @@
# The above lines enables `fickling.load()`, `fickling.loads()` and `with fickling.check_safety()`
# The comments are necessary to comply with linters
-__version__ = "0.1.10"
+__version__ = "0.1.11"> [!NOTE]
> Fix Completeness Assessment: While commit e8408615b63adf034f891f653692ab9b51f0f5af neutralizes the specific bypass vectors utilizing _posixsubprocess, site, and atexit, the underlying reliance on a module blocklist remains structurally fragile. This vulnerability shares the exact architectural root cause with earlier Fickling denylist omissions, including CVE-2026-22607 (omission of cProfile), CVE-2025-67748 (omission of pty), and CVE-2025-67747 (omission of marshal and types). The Python standard library and platform-specific C extensions expose a broad surface of secondary execution primitives (such as Windows-specific _winapi or internal import machinery like _imp), and attackers can utilize object attribute traversal or opcode state manipulation (BUILD, REDUCE) to construct execution gadgets from unblocked components.
Exploiting CVE-2026-14534 requires an attacker to supply a crafted pickle file or serialized model artifact to a target application that relies on Fickling (<= 0.1.10) to validate untrusted inputs before deserializing them. No authentication or elevated privileges are required to craft the payload (PR:N), though the target system or user must process the file (UI:R).
Each of the three omitted modules enables a distinct execution primitive during unpickling:
Direct Native Binary Execution via _posixsubprocess.fork_exec:
_posixsubprocess is a low-level C extension module used internally by Python's subprocess.Popen on POSIX operating systems (Linux and macOS). While subprocess and os are blocked by Fickling, an attacker can directly import _posixsubprocess.fork_exec using the GLOBAL or STACK_GLOBAL opcode. By supplying the expected tuple of file descriptors, executable byte paths, argument arrays, and pipe descriptors on the pickle stack and executing a REDUCE opcode, the PVM forks a child process and executes an arbitrary system binary (e.g., /bin/sh) directly through C bindings.
Script and Path Hook Execution via site:
The site module handles site-specific configuration and path manipulation during Python interpreter initialization. Functions within site—such as site.execsitecustomize(), site.execusercustomize(), or site.addsitedir()—can be invoked via REDUCE opcodes. If an attacker can write a .pth file (which supports arbitrary Python code execution on line prefixes starting with import ) or a sitecustomize.py script into a writable directory, calling site.addsitedir() or site.execsitecustomize() from the pickle stream triggers immediate execution of that Python code.
Deferred Callback Execution via atexit:
The atexit module provides an interface to register and execute interpreter shutdown callbacks. An attacker can chain pickle opcodes to register arbitrary callables via atexit.register or forcibly trigger existing callbacks on demand by invoking atexit._run_exitfuncs(), shifting code execution to interpreter termination or executing pre-registered functions.
To ensure the crafted pickle stream passes Fickling's UnusedVariables heuristic alongside the UnsafeImports check, the attacker wraps the REDUCE invocation inside a dictionary construction sequence. By pushing an empty dictionary (EMPTY_DICT), pushing a key string and the REDUCE result onto the stack, and executing SETITEM or SETITEMS before the terminating STOP opcode, Fickling's AST analyzer observes that the function call's return value is returned as the legitimate output data of the pickle stream. Consequently, fickling.check_safety() reports zero anomalies.
The exploitation of CVE-2026-14534 results in arbitrary code execution within the security context of the Python process performing the deserialization. The vulnerability carries a CVSS v3.1 base score of 8.8 (High) with the vector CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H.
In practical deployments, Fickling is primarily used as a defensive security control by engineers and automated systems handling untrusted ML models, checkpoints, and serialized data pipelines. Because the vulnerability targets a security scanner specifically designed to prevent pickle-based code execution, a bypass undermines the trust boundary of the host application. Automated ML ingestion pipelines that use fickling.load() to automatically reject dangerous models and load safe ones will silently execute the malicious payload upon receiving the erroneous LIKELY_SAFE classification.
Once arbitrary code execution is achieved, an attacker gains full access to the application's memory space, local filesystem, environment variables, and network interfaces (C:H/I:H/A:H). In cloud-hosted ML training or inference environments, this provides access to proprietary model weights, training datasets, GPU compute resources, and cloud metadata credentials.
According to CISA's Stakeholder-Specific Vulnerability Categorization (SSVC), technical impact is rated as Total, with exploitation maturity classified at the Proof of Concept (poc) stage. As of the analysis date, the FIRST Exploit Prediction Scoring System (EPSS) assigns CVE-2026-14534 a score of 0.00366 (32.49th percentile), and the vulnerability is not listed in the CISA Known Exploited Vulnerabilities (KEV) catalog.
Organizations and developers utilizing Trail of Bits Fickling in their environments or dependency trees must upgrade to version 0.1.11 or later, which updates UNSAFE_IMPORTS to flag _posixsubprocess, site, and atexit during static analysis.
To upgrade the package via pip, run the following command:
pip install --upgrade "fickling>=0.1.11"Verify that the installed version is at least 0.1.11:
python3 -c "import fickling; print(fickling.__version__)"> [!WARNING] > Architectural Guidance on Python Pickle Deserialization: Static analysis of Python pickle files relies on blocklisting and heuristic pattern matching over a Turing-complete virtual machine. Security teams should not rely solely on blocklist-based scanners when processing untrusted inputs across security boundaries.
Where possible, engineering teams should implement the following defense-in-depth measures:
pickle-based formats (such as standard torch.load()) with declarative data formats that cannot represent arbitrary code execution, such as Hugging Face safetensors, ONNX, JSON, or Protocol Buffers. If using PyTorch, enforce torch.load(..., weights_only=True).pickle.Unpickler subclass that overrides the find_class(self, module, name) method to enforce an explicit, immutable allowlist of benign data structures (e.g., specific NumPy array or tensor reconstructors) rather than relying on a denylist.seccomp-bpf profiles that block execve and fork syscalls, AppArmor, or gVisor) with no external network egress.CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H| Product | Affected Versions | Fixed Version |
|---|---|---|
fickling Trail of Bits | <= 0.1.10 | 0.1.11 |
| Attribute | Detail |
|---|---|
| CVE / GHSA ID | CVE-2026-14534 / GHSA-m6fh-58r7-x697 |
| Primary CWE | CWE-184 (Incomplete List of Disallowed Inputs) / CWE-502 (Deserialization of Untrusted Data) |
| CVSS v3.1 Score | 8.8 High (CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H) |
| EPSS Score | 0.37% (32.49th Percentile) |
| Affected Versions | Trail of Bits Fickling <= 0.1.10 (Fixed in 0.1.11) |
| Impact | Security Verification Bypass leading to Arbitrary Code Execution |
| Exploit Maturity | Proof of Concept (PoC) |
| CISA KEV Status | Not Listed |
The product implements a protection mechanism that relies on a list of inputs (or properties of inputs) that are not allowed by policy or otherwise require other action to neutralize before additional processing takes place, but the list is incomplete.
CVE-2026-141546 (GHSA-wfmg-598x-58c5) is a path traversal vulnerability (CWE-22) in KiCad MCP Pro prior to version 4.20.1. Three variant export tools in src/kicad_mcp/tools/variants.py construct target output paths by joining unvalidated user-supplied arguments directly onto the validated output directory using Python's pathlib.Path concatenation operator. A caller invoking these tools with path traversal sequences or absolute file paths can bypass the KICAD_MCP_WORKSPACE_ROOT confinement boundary to create directories and write or overwrite arbitrary files on the host filesystem.
CVE-2026-141553 (GHSA-x9x8-xcv7-5x5g) is a medium-severity path traversal and arbitrary file overwrite vulnerability in termux-sync prior to version 1.3.8. During backup restoration, the cmd_restore function computes the extraction containment boundary as the parent directory of the target backup folder ($PREFIX or .../files) rather than the specific subdirectory itself. Consequently, a crafted backup archive (such as usr_etc.tar.gz) can extract files into sibling directories like $PREFIX/bin, overwriting system executables such as $PREFIX/bin/sh and achieving arbitrary code execution within the Termux user context.
CVE-2026-141555 (GHSA-vfhw-gfwp-vxfj) is a Cross-Site Scripting (XSS) vulnerability in the Python HTML sanitization library lxml-html-clean prior to version 0.4.7. The vulnerability stems from a parser differential between libxml2 and HTML5 browser parsing engines when handling HTML comments nested within raw-text and escapable raw-text elements (such as <noscript>, <textarea>, <title>, and <iframe>). When the cleaner is instantiated with the non-default configuration comments=False, an attacker can embed a closing tag inside an HTML comment to prematurely terminate the raw-text container in the client browser and execute arbitrary JavaScript.
CVE-2026-141556 (GHSA-5gvf-7wqf-r4cv) is an input sanitization bypass vulnerability resulting in Cross-Site Scripting (XSS) in lxml-html-clean versions through 0.4.6. When the Cleaner class is initialized with safe_attrs_only=False and javascript=True, the link sanitization mechanism relies exclusively on lxml.html.defs.link_attrs via doc.rewrite_links(). Because this attribute list omits the iframe srcdoc attribute and SVG SMIL animation value attributes (to, from, by, values), attackers can inject arbitrary HTML and JavaScript payloads that survive sanitization.
CVE-2026-140000 (also tracked as GHSA-j7r2-xppq-m353) is an uncontrolled resource consumption vulnerability in the faye/websocket-driver-node package prior to version 0.8.2. The StreamReader.read() implementation relies on Buffer.slice() when extracting small segments from incoming network buffers. Because Node.js Buffer slices share underlying memory with their parent ArrayBuffer, small fragmented WebSocket frames retain references to entire 16 KiB to 64 KiB TCP read buffers. An unauthenticated remote attacker can transmit a sequence of incomplete fragmented frames to prevent garbage collection of the parent TCP buffers, causing severe memory inflation and a denial of service via out-of-memory process termination.
CVE-2026-135390 is an authentication bypass vulnerability in the Pion DTLS Go library caused by improper validation of cached DTLS 1.2 sessions. When an application shares a single SessionStore across both outbound client connections and inbound server listeners, a remote server previously contacted by the application's client can reuse the negotiated session identifier and master secret to authenticate against the application's server listener via abbreviated session resumption, bypassing mutual TLS and Pre-Shared Key checks.