Skip to main content

Fickling CVE-2025-67748

HIGH
Code Injection (CWE-94)
2025-12-16 security-advisories@github.com
7.1
CVSS 4.0 · Vendor: github
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Craft pickle with pty.spawn gadget
  2. Exploit
    Fickling <0.1.6 scan returns LIKELY_SAFE
  3. Execution
    Victim unpickles trusted-looking file
  4. Impact
    Arbitrary 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.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.3% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

pypi fickling fix: 0.1.6

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

Vendor (github) PRIMARY 7.1 HIGH
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
vuln.today AI 7.8 HIGH

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.

3.1 AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
4.0 AV:L/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N

Primary rating from Vendor (github).

CVSS VectorVendor: github

Attack Vector
Local
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
Passive
Vulnerable system: Confidentiality
High
Vulnerable system: Integrity
High
Vulnerable system: Availability
High
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

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
† from your stack dependencies † transitive graph · vuln.today resolves 4-path depth
  • 1 pypi packages depend on fickling (1 direct, 0 indirect)

Ecosystem-wide dependent count for version 0.1.6.

Executive ViewAI

Why It Matters

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.

Business Impact: High
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

EPSS Score
0.3%
Top 82% exploitable
Prevalence
Low
niche Trail of Bits ML/pickle-security analysis library, limited enterprise footprint
Exploit
POC
Public exploit code exists
Data Quality
3 sources
Confidence: Low

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.

SignalValue
Severity HIGH
CISA KEV No
Public POC Yes
EPSS 0.3%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
Poc
System Exposure· derived
Small
Automatable· derived
No
Human Impact
High

Priority Score

56
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +36
PoC: +20
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Code Injection CRITICAL

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

cpe:2.3:a:trailofbits:fickling:*:*:*:*:*:*:*:*
CVE-2026-22607 HIGH POC
7.8 Jan 10

Fickling's static analyzer through version 0.1.6 fails to properly classify the cProfile module as unsafe during pickle

CVE-2026-22606 HIGH POC
7.8 Jan 10

Fickling's incomplete pickle analysis allows attackers to bypass security checks by using Python's runpy module to execu

CVE-2026-22609 HIGH POC
7.8 Jan 10

Fickling's static analyzer before version 0.1.7 fails to detect several dangerous Python modules in pickled objects, ena

CVE-2025-67747 HIGH POC
7.1 Dec 16

Deserialization of an attacker-supplied pickle file that has been vetted by Fickling versions prior to 0.1.6 can execute

CVE-2026-14535 CRITICAL
9.8 Jul 04

Security-control bypass in Trail of Bits fickling (≤0.1.11) neuters its MLAllowlist analysis pass so that malicious pick

CVE-2026-118938 HIGH
8.8 Oct 30

Pickle-analysis bypass in Trail of Bits fickling through 0.1.12 and vendor master commit d011709 allows arbitrary code e

CVE-2026-16760 HIGH
8.8 Oct 30

fickling through 0.1.12 misclassifies malicious pickle payloads as safe: its OvertlyBadEvals analysis pass skips any cal

CVE-2026-14534 HIGH
8.8 Jul 04

Arbitrary code execution bypass in Trail of Bits fickling (versions ≤ 0.1.10) allows attackers to craft malicious pickle

CVE-2026-22612 HIGH
7.8 Jan 10

Fickling versions prior to 0.1.7 fail to properly detect malicious pickle payloads due to inadequate handling of the "bu

CVE-2026-22608 HIGH
7.8 Jan 10

Fickling before version 0.1.7 allows local attackers to achieve arbitrary code execution through Python pickle deseriali

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy