Fickling
CVE-2025-67747
HIGH
Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessCraft malicious pickle using marshal.loads/types.FunctionType
-
DeliveryDeliver file to victim as trusted artifact
-
ExploitFickling scan returns false LIKELY_SAFE
-
ExecutionVictim unpickles trusting verdict
-
ImpactArbitrary code executes on victim host
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V2 - Validation and Business Logic Input validation completeness
|
| Exploitation Conditions | Exploitation requires a victim to use Fickling at a version below 0.1.6 to statically vet an attacker-controlled pickle file whose payload specifically invokes marshal.loads and types.FunctionType (the two modules absent from the pre-0.1.6 unsafe-import block list), AND to then actually deserialize/unpickle that file in reliance on Fickling's false 'LIKELY_SAFE' verdict. Limiting factors: this is a static-analyzer bypass, so Fickling itself is not the execution sink - code runs only upon the subsequent unpickling step; it demands passive user interaction (running the scan and choosing to load the file), affects only vulnerable Fickling versions, and is irrelevant to users who do not route untrusted pickles through Fickling as a safety gate. No network-facing service is directly exposed by the flaw. |
| Impact | This is a detection-bypass flaw (CWE-184, incomplete block list) in Fickling, a security tool, rather than a direct RCE in a running service - context that materially lowers real-world urgency despite the 7.1 CVSS. The vendor-supplied CVSS 4.0 vector (AV:L/AC:L/AT:N/PR:N/UI:P, VC:H/VI:H/VA:H) correctly models a local, file-driven attack requiring passive user interaction, with high confidentiality/integrity/availability impact once arbitrary code runs. Exploitation status is 'publicly available exploit code exists' - a full working PoC pickle is published in the GHSA advisory and codified as a regression test - but this is NOT confirmed active exploitation: the CVE is not listed in CISA KEV, so PoC availability and in-the-wild use must not be conflated. No EPSS score was provided in the input, so probabilistic exploitation likelihood cannot be assessed. The practical risk is narrow and conditional: harm only occurs if a victim runs a vulnerable Fickling version to vet an attacker-supplied pickle, receives a false 'LIKELY_SAFE' verdict, and then unpickles the file in reliance on that verdict. There is no signal/metric conflict here - all sources (CVSS AV:L, description, and source diff) consistently point to local, user-interaction-dependent exploitation; treat this as a patch-promptly supply-chain hygiene issue for Fickling users, not an emergency perimeter exposure. |
| Exploit ScenarioDerived | An attacker publishes a malicious pickle (e.g., a 'pretrained' ML model) whose payload loads code via marshal.loads and reconstructs an executable via types.FunctionType - both missing from Fickling <0.1.6's unsafe-import block list. A defender scans the file with Fickling, receives a 'LIKELY_SAFE' result, and unpickles it, executing os.system('id')-style arbitrary code. A complete, working PoC exists in the GHSA-565g-hwwr-4pp3 advisory. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Oct 07, 2026
Deserialization of an attacker-supplied pickle file that has been vetted by Fickling versions prior to 0.1.6 can execute arbitrary code because the analyzer's unsafe-import block list omitted the 'marshal' and 'types' modules, allowing payloads built on marshal.loads and types.FunctionType to pass the scan as 'LIKELY_SAFE'. The flaw affects any user or pipeline that trusts Fickling as a safety gate for untrusted pickles and then unpickles the file; because Fickling is the inspection tool rather than the execution sink, code only runs when the file is subsequently loaded, and the CVSS 4.0 vector (AV:L/AC:L/PR:N/UI:P) and the independent assessment (AV:L/AC:L/PR:N/UI:R) both confirm that unauthenticated attackers need the victim to run the scan and then choose to deserialize the file. Publicly available exploit code exists - the upstream GHSA advisory itself includes a disassembled malicious pickle and a regression test - but there is no confirmed active exploitation (no CISA KEV listing), and the vendor-released patch fixes the issue in Fickling 0.1.6.
RemediationAI
Vendor-released patch: upgrade to Fickling 0.1.6 (for example 'pip install --upgrade "fickling>=0.1.6"' or pin fickling==0.1.6), which adds 'marshal' and 'types' to the unsafe-import block list; the fix landed in PR https://github.com/trailofbits/fickling/pull/186 via commit https://github.com/trailofbits/fickling/commit/4e34561301bda1450268d1d7b0b2b151de33b913 and is described in advisory GHSA-565g-hwwr-4pp3. Because this is a detection bypass rather than a flaw in the deserialization sink, patching Fickling alone does not make unpickling untrusted data safe - treat any 'LIKELY_SAFE' verdict as a heuristic and never deserialize an untrusted pickle solely because Fickling cleared it. Where unpickling is unavoidable, load through a restricted Unpickler with an explicit find_class allow-list that excludes marshal, types, os, subprocess, and similar modules, accepting that legitimate pickles using those names will fail; alternatively, perform the unpickle inside a disposable sandbox or container with no network access, a read-only filesystem, and least-privilege credentials, which contains the damage but adds operational overhead and does not prevent the initial code execution. Adding your own pre-scan for STACK_GLOBAL references to marshal.loads and types.FunctionType can close the gap on unpatched versions, but maintaining a local deny-list carries the same risk of incomplete coverage that caused this CVE.
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
Fickling, maintained by Trail of Bits, is a Python pickle decompiler and static analyzer that inspects pickle bytecode (opcodes such as STACK_GLOBAL, REDUCE, and BUILD) to flag dangerous constructs before a file is ever deserialized. Its safety checks work largely by maintaining a block list of unsafe module/attribute names that can be reached through STACK_GLOBAL; when a payload references any of those names, Fickling raises the reported severity above LIKELY_SAFE. Before 0.1.6 that list was missing 'marshal' and 'types', so two powerful primitives went undetected: marshal.loads, which turns attacker-supplied bytes into a live Python code object, and types.FunctionType, which wraps that code object into a callable function. The advisory PoC chains these with pickle REDUCE opcodes - marshal.loads(code_bytes) followed by types.FunctionType(code, globals), then a final REDUCE with an empty argument tuple - to build and invoke a function that runs os.system('id'). This is a classic CWE-184 incomplete-block-list defect: the detection logic is sound in principle but its deny-list is not exhaustive, so the analyzer emits a false-negative 'LIKELY_SAFE' verdict. Fickling itself is not the execution sink; the arbitrary code runs only in the victim's process at the later unpickling step, when the crafted file is actually loaded. The fix in commit 4e34561301bda1450268d1d7b0b2b151de33b913 adds 'marshal' and 'types' to the unsafe-import set in fickling/fickle.py.
Know when Fickling 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
CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:P
File-based local vector (AV:L) needing the victim to scan then unpickle the crafted file (UI:R); no attacker privileges needed (PR:N); arbitrary code execution yields full C/I/A.
Primary rating from Vendor (github).
CVSS VectorVendor: github
DescriptionCVE.org
Fickling is a Python pickling decompiler and static analyzer. Versions prior to 0.1.6 are missing marshal and types from the block list of unsafe module imports. Fickling started blocking both modules to address this issue. This allows an attacker to craft a malicious pickle file that can bypass fickling since it misses detections for types.FunctionType and marshal.loads. A user who deserializes such a file, believing it to be safe, would inadvertently execute arbitrary code on their system. This impacts any user or system that uses Fickling to vet pickle files for security issues. The issue was fixed in version 0.1.6.
Executive ViewAI
Fickling, a Python pickle inspection tool used as a security gate, can be bypassed in versions before 0.1.6, allowing malicious pickle files to pass as safe and later execute arbitrary code when deserialized. This affects development, data science, and MLOps pipelines that rely on Fickling to screen untrusted pickle artifacts, potentially leading to unauthorized code execution within trusted environments. Publicly available exploit code exists and unauthenticated attackers require user interaction, but a vendor-released patch: 0.1.6 is available.
Apply vendor patch.
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
Remote Code Execution represents the critical moment when an attacker successfully runs arbitrary code on a target system without physical access.
Affected Products (CPE)CVE.org
Fickling's static analyzer through version 0.1.6 fails to properly classify the cProfile module as unsafe during pickle
Fickling's incomplete pickle analysis allows attackers to bypass security checks by using Python's runpy module to execu
Fickling's static analyzer before version 0.1.7 fails to detect several dangerous Python modules in pickled objects, ena
Trail of Bits Fickling versions before 0.1.6 fail to flag malicious pickles as unsafe because the `pty` module was omitt
Security-control bypass in Trail of Bits fickling (≤0.1.11) neuters its MLAllowlist analysis pass so that malicious pick
Pickle-analysis bypass in Trail of Bits fickling through 0.1.12 and vendor master commit d011709 allows arbitrary code e
fickling through 0.1.12 misclassifies malicious pickle payloads as safe: its OvertlyBadEvals analysis pass skips any cal
Arbitrary code execution bypass in Trail of Bits fickling (versions ≤ 0.1.10) allows attackers to craft malicious pickle
Fickling versions prior to 0.1.7 fail to properly detect malicious pickle payloads due to inadequate handling of the "bu
Fickling before version 0.1.7 allows local attackers to achieve arbitrary code execution through Python pickle deseriali
NVD
CVE.org
EPSS
GitHub
Exploit-DB