Fickling
CVE-2025-67748
HIGH
Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessCraft pickle with pty.spawn gadget
-
ExploitFickling <0.1.6 scan returns LIKELY_SAFE
-
ExecutionVictim unpickles trusted-looking file
-
ImpactArbitrary command execution on host
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Code injection prevention, sandbox exec
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 | Exploitation requires the specific workflow where a victim uses Fickling version < 0.1.6 to statically vet an untrusted pickle AND then proceeds to unpickle/deserialize the file based on Fickling's 'LIKELY_SAFE' output. The concrete trigger is a pickle whose malicious REDUCE call invokes pty.spawn() (which was absent from the unsafe-module blocklist), optionally paired with a BUILD opcode to 'use' the leftover stack variable and defeat the unused-variable heuristic. Limiting factors: no remote/network exposure (the flaw is in offline file analysis), the attacker-controlled pickle must be delivered to and processed by the victim, and harm only occurs if the victim actually loads the file - Fickling alone does not execute the payload. Users who do not run Fickling as a security gate, or who are on 0.1.6+, are unaffected. |
| Impact | The CVSS 4.0 base score of 7.1 (AV:L/AC:L/AT:N/PR:N/UI:P, VC:H/VI:H/VA:H) reflects a high-impact code-execution outcome gated by local vector and passive user interaction rather than remote reach. Publicly available exploit code exists (a full disassembled PoC is embedded in the GHSA advisory), which raises practical risk, but this is NOT in CISA KEV and no EPSS score was supplied in the input, so widespread or automated exploitation cannot be asserted. Critically, this is a DETECTION BYPASS in a security-analysis tool, not a directly exploitable flaw in a running service: the danger materializes only when a victim relies on Fickling (<0.1.6) to clear a pickle and then unpickles the file on the strength of the false 'LIKELY_SAFE' verdict. Treat this as a defense-in-depth failure of moderate priority - meaningful for the specific population that uses Fickling as a security gate for untrusted pickles (notably ML model supply chains), but low real-world risk for the general environment because the affected product is a niche analysis library, not broadly deployed infrastructure. POC availability and active exploitation are distinct here: exploit code is public, but there is no evidence of exploitation in the wild. |
| Exploit ScenarioDerived | An attacker distributes a malicious pickle (e.g., a poisoned ML model file) containing a pty.spawn() gadget disguised with a BUILD opcode to defeat Fickling's unused-variable heuristic. A victim runs Fickling 0.1.5 or earlier to vet the file, receives a 'LIKELY_SAFE' verdict, and then loads it, executing arbitrary commands on their host. A working PoC with the exact opcode sequence is published in the vendor's GHSA advisory. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Oct 07, 2026
Trail of Bits Fickling versions before 0.1.6 fail to flag malicious pickles as unsafe because the pty module was omitted from the tool's blocklist of dangerous imports, allowing a crafted pickle that invokes pty.spawn() to be reported as LIKELY_SAFE. The bypass matters in any workflow where a user, analyst, or CI pipeline uses Fickling as a security gate and then unpickles a file it has cleared, resulting in arbitrary code execution on the machine doing the deserialization; the CVSS 4.0 base score is 7.1 (AV:L/AC:L/AT:N/PR:N/UI:P with high confidentiality, integrity and availability impact), reflecting a local, high-impact outcome gated by passive user interaction rather than remote reach. Publicly available exploit code exists, there is no indication of confirmed in-the-wild exploitation (the issue is not listed in CISA KEV), and a vendor fix is available in 0.1.6.
RemediationAI
Upgrade Fickling to version 0.1.6 or later, which adds pty to the unsafe-module block list via https://github.com/trailofbits/fickling/pull/187 (complementing the earlier https://github.com/trailofbits/fickling/pull/108), and verify the fix by confirming that a pty.spawn pickle is now reported as unsafe. If upgrading immediately is not possible, treat Fickling's LIKELY_SAFE output as advisory only and never unpickle a file solely on that basis: run unpickling under a hardened restricted unpickler or in a disposable, network-isolated sandbox with no credentials mounted, and add pty (and other process-spawning modules such as os, subprocess, posix, nt) to any local copy of the block list - accepting that this manual patch is a stopgap that must be maintained as new bypasses appear. Because Fickling's detection is heuristic, the durable control is to avoid pickle for untrusted data entirely and to gate any deserialization step behind an allowlist-based unpickler rather than a denylist, recognizing such restrictions may break legitimate workflows that depend on executing arbitrary pickle payloads. Consult the vendor advisory at https://github.com/trailofbits/fickling/security/advisories/GHSA-r7v6-mfhq-g3m2 for the authoritative fix reference; note that no vendor patch identifier other than the 0.1.6 release and the two pull requests is available in the source data.
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 is a static analyzer and decompiler for Python pickle streams that flags opcodes capable of arbitrary code execution, such as REDUCE, OBJ, INST and STACK_GLOBAL, and warns when dangerous modules are referenced. The root cause is CWE-94 (Code Injection) arising from an incomplete denylist: the analyzer's unsafe-import list omitted pty, so a pickle that builds the global pty.spawn, pushes the argument 'id', and issues REDUCE was not marked unsafe and the file was classified as LIKELY_SAFE. The original report also described a complementary evasion of the unused-variable heuristic, where a trailing BUILD opcode (adding a __setstate__ to the otherwise unused value left on the pickle VM stack) makes the leftover result appear 'used' and further defeats detection. The fix (PR #108 and PR #187) simply adds "pty" to the block list in fickling/fickle.py and extends the test hook to validate that a payload such as cpty\nspawn\nS"id"\no. is now caught. Because the underlying approach is heuristic, the CPE string cpe:2.3:a:trailofbits:fickling:*:*:*:*:*:*:*:* reflects all releases below the patched 0.1.6 boundary; Fickling itself never executes the pickle, so compromise occurs only if the operator acts on the false LIKELY_SAFE verdict and subsequently unpickles the file.
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
AV:L and UI:R because a victim must obtain and deserialize a crafted pickle file; PR:N as no authentication is needed; C/I/A:H since successful bypass leads to full code execution on the victim host.
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 had a bypass caused by pty missing from the block list of unsafe module imports. This led to unsafe pickles based on pty.spawn() being incorrectly flagged as LIKELY_SAFE, and was fixed in version 0.1.6. This impacted any user or system that used Fickling to vet pickle files for security issues.
Blast Radius
ecosystem impact- 1 pypi packages depend on fickling (1 direct, 0 indirect)
Ecosystem-wide dependent count for version 0.1.6.
Executive ViewAI
Trail of Bits Fickling, a Python pickle security scanner, fails to detect malicious pickles in versions before 0.1.6, allowing crafted files to be reported as safe and later executed on the deserializing machine. This vulnerability (CVE-2025-67748) undermines a critical security control used by analysts and CI/CD pipelines, potentially exposing organizations to system compromise, data theft, and supply chain attacks. Leadership should prioritize upgrading to the vendor-released patch (0.1.6) to restore the tool's protective capability.
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
Code injection occurs when an application accepts user input and passes it directly into a language interpreter or evaluator without proper sanitization.
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
Deserialization of an attacker-supplied pickle file that has been vetted by Fickling versions prior to 0.1.6 can execute
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