Visit the Wiz Whimzical Shop at AWS re:Invent

CVE-2026-14534: 
Python vulnerability analysis and mitigation

Overview

CVE-2026-14534 is a security bypass vulnerability in Trail of Bits fickling (versions ≤ 0.1.10) that allows malicious pickle payloads to evade the library's safety checks and achieve remote code execution. The root cause is an incomplete denylist (UNSAFE_IMPORTS) in fickle.py that omits the Python standard library modules _posixsubprocess, site, and atexit, causing check_safety() to return LIKELY_SAFE for payloads invoking dangerous functions in those modules. It was reported by researcher reapermunky, disclosed on July 4, 2026, and patched in fickling v0.1.11. It carries a CVSS v3.1 base score of 8.8 (High) (Github Advisory, fickling Advisory).

Technical details

The vulnerability is classified as CWE-184 (Incomplete List of Disallowed Inputs) and CWE-502 (Deserialization of Untrusted Data). Fickling's check_safety() function relies on an UNSAFE_IMPORTS denylist to detect dangerous pickle payloads; however, _posixsubprocess, site, and atexit were absent from this list. The OvertlyBadEvals heuristic skips these modules because they are recognized as standard library imports, and UnsafeImports does not flag them because they are not in the denylist. Additionally, the UnusedVariables heuristic is defeated by the SETITEMS opcode pattern used in crafted payloads. Because fickling.load() chains check_safety() as a security gate before calling pickle.loads(), a LIKELY_SAFE verdict causes the malicious payload to be deserialized and executed — enabling _posixsubprocess.fork_exec (C-level arbitrary process spawning), site.execsitecustomize (arbitrary site customization code execution), and atexit._run_exitfuncs (triggering registered exit callbacks). This shares the same root cause as CVE-2026-22607 (cProfile), CVE-2025-67748 (pty), and CVE-2025-67747 (marshal/types) (fickling Advisory, Github Advisory).

Impact

Successful exploitation allows an attacker to achieve arbitrary remote code execution on the host running the vulnerable fickling-based application, with full confidentiality, integrity, and availability impact. An attacker who can supply a crafted pickle file to an application using fickling.load() can spawn arbitrary child processes (via _posixsubprocess.fork_exec), execute arbitrary Python code at interpreter startup (via site.execsitecustomize), or trigger registered exit callbacks (via atexit._run_exitfuncs). This can lead to complete system compromise, data exfiltration, installation of backdoors, and potential lateral movement within the affected environment (fickling Advisory, Github Advisory).

Exploitability

A complete, runnable proof-of-concept (PoC) Python script is publicly available in the fickling security advisory, demonstrating bypass of check_safety() for all three affected modules (fickling Advisory). The EPSS score is approximately 0.33%, and there is no evidence of in-the-wild exploitation or CISA KEV catalog inclusion as of the time of disclosure. The NVD SSVC assessment classifies exploitation status as "poc" and technical impact as "total". No threat actor attribution has been reported (Github Advisory).

Exploitation steps

  1. Identify target: Locate applications that use fickling.load() or fickling's check_safety() API to validate and deserialize pickle files from untrusted sources, running fickling ≤ 0.1.10.
  2. Craft malicious pickle payload: Using fickling's own opcode primitives, construct a pickle payload that references a dangerous function from one of the unlisted modules, e.g., _posixsubprocess.fork_exec, using the STACK_GLOBAL opcode pattern:
from fickling.fickle import Pickled
import fickling.fickle as op
payload = Pickled([
    op.Proto.create(4),
    op.ShortBinUnicode("_posixsubprocess"),
    op.ShortBinUnicode("fork_exec"),
    op.StackGlobal(),
    op.ShortBinUnicode("/etc/passwd"),
    op.TupleOne(),
    op.Reduce(),
    op.Memoize(),
    op.EmptyDict(),
    op.ShortBinUnicode("init"),
    op.ShortBinUnicode("x"),
    op.SetItem(),
    op.Mark(),
    op.ShortBinUnicode("trace"),
    op.BinGet(0),
    op.SetItems(),
    op.Stop(),
])
  1. Defeat heuristics: Use the SETITEMS opcode pattern (as shown above) to defeat the UnusedVariables heuristic, ensuring no findings are generated.
  2. Submit payload: Deliver the crafted pickle file to the target application through any input channel that triggers fickling.load() (e.g., file upload, API endpoint, model loading pipeline).
  3. Bypass safety check: check_safety() returns LIKELY_SAFE with zero findings because _posixsubprocess is not in UNSAFE_IMPORTS, causing fickling.load() to proceed with deserialization.
  4. Achieve code execution: The pickle payload is deserialized and the dangerous function (e.g., fork_exec) is invoked, spawning an arbitrary process or executing attacker-controlled code on the server (fickling Advisory).

Indicators of compromise

  • Logs: Application logs showing fickling.load() or check_safety() returning LIKELY_SAFE on pickle files from untrusted or external sources; Python interpreter errors or unexpected output related to _posixsubprocess, site, or atexit modules.
  • Process: Unexpected child processes spawned by the Python interpreter process (e.g., /bin/sh, bash, curl, wget, or other binaries) that are children of the application's Python process; unusual process trees originating from a fickling-based service.
  • File System: Unexpected files written to disk by the application process (e.g., web shells, scripts, or modified configuration files); new or modified .pth files in Python's site-packages directory (indicative of site module abuse).
  • Network: Outbound connections from the application server to unknown external IPs or domains shortly after processing pickle files; unexpected DNS lookups from the Python process.

Mitigation and workarounds

Upgrade fickling to version 0.1.11 or later, which adds _posixsubprocess, site, and atexit to the UNSAFE_IMPORTS denylist via commit e840861 and pull request #272 (fickling Release, fickling PR). As an interim workaround, avoid deserializing pickle files from untrusted sources using fickling.load(), and implement strict input validation to ensure only pickle data from verified, trusted sources is processed. Organizations using fickling in ML pipelines or security tooling should treat all externally sourced pickle files as untrusted until the upgrade is applied.

Community reactions

The vulnerability was discussed on Reddit's r/pwnhub community, with posts highlighting the critical nature of the deserialization bypass (Reddit). The Hacker Wire published a write-up on the deserialization bypass and RCE implications (The Hacker Wire). Trail of Bits' own maintainer (thomas-chauchefoin-tob) acknowledged the report from researcher reapermunky and merged the fix promptly, noting it "blocks a direct command execution gadget with _posixsubprocess, a way to load local PTH with site, and potential exit hooks with atexit" (fickling PR).

Additional resources

Linux Distribution fix status

Fix availability across major Linux distributions and their releases.

RHEL / CentOS

Unknown

Source: This report was generated using AI

Related Python vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

GHSA-2vwr-58qv-f67xMEDIUM6.5
  • Python logoPython
  • aiortc
NoYesDec 02, 2026
GHSA-hvx6-xjcv-pww2MEDIUM6.5
  • Python logoPython
  • pika
NoYesDec 02, 2026
CVE-2026-141556MEDIUM4.7
  • Python logoPython
  • lxml-html-clean
NoYesDec 02, 2026
CVE-2026-141555MEDIUM4.7
  • Python logoPython
  • lxml-html-clean
NoYesDec 02, 2026
GHSA-xhqj-2fcc-8vf7LOW3.1
  • Python logoPython
  • ag2
NoYesDec 02, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Additional Wiz resources

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management