CVE-2026-22609 — Vulnerability in fickling — CVE Details
Fickling has Static Analysis Bypass via Incomplete Dangerous Module Blocklist
What Should I Do?
Address in Next Maintenance Window
Low exploitation probability (0.92%). Schedule for your next planned update.
Does your project use an affected fickling version?
Paste your requirements.txt to check it for CVE-2026-22609 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
ctypes, importlib, runpy, code and multiprocessing were added the list of unsafe imports (https://github.com/trailofbits/fickling/commit/9a2b3f89bd0598b528d62c10a64c1986fcb09f66, https://github.com/trailofbits/fickling/commit/eb299b453342f1931c787bcb3bc33f3a03a173f9, https://github.com/trailofbits/fickling/commit/29d5545e74b07766892c1f0461b801afccee4f91, https://github.com/trailofbits/fickling/commit/b793563e60a5e039c5837b09d7f4f6b92e6040d1, https://github.com/trailofbits/fickling/commit/b793563e60a5e039c5837b09d7f4f6b92e6040d1).
Original report
Summary
The unsafe_imports() method in Fickling's static analyzer fails to flag several high-risk Python modules that can be used for arbitrary code execution. Malicious pickles importing these modules will not be detected as unsafe, allowing attackers to bypass Fickling's primary static safety checks.
Details
In fickling/fickle.py lines 866-884, the unsafe_imports() method checks imported modules against a hardcoded tuple:
def unsafe_imports(self) -> Iterator[ast.Import | ast.ImportFrom]:
for node in self.properties.imports:
if node.module in (
"__builtin__", "__builtins__", "builtins", "os", "posix", "nt",
"subprocess", "sys", "builtins", "socket", "pty", "marshal", "types",
):
yield node
This list is incomplete. The following dangerous modules are NOT detected:
- ctypes: Allows arbitrary memory access, calling C functions, and bypassing Python restrictions entirely
- importlib: Can dynamically import any module at runtime
- runpy: Can execute Python modules as scripts
- code: Can compile and execute arbitrary Python code
- multiprocessing: Can spawn processes with arbitrary code
Since ctypes is part of the Python standard library, it also bypasses the NonStandardImports analysis.
PoC
from fickling.fickle import Pickled
from fickling.analysis import check_safety, Severity
# Pickle that imports ctypes.pythonapi (allows arbitrary code execution)
# PROTO 4, GLOBAL 'ctypes pythonapi', STOP
payload = b'\x80\x04cctypes\npythonapi\n.'
pickled = Pickled.load(payload)
results = check_safety(pickled)
print(f"Severity: {results.severity.name}")
print(f"Is safe: {results.severity == Severity.LIKELY_SAFE}")
# Output: Severity is LIKELY_SAFE or low - the ctypes import is not flagged
# A truly malicious pickle using ctypes could execute arbitrary code
Impact
Security Bypass (Confidentiality, Integrity, Availability)
An attacker can craft a malicious pickle that:
- Imports
ctypesto gain arbitrary memory access - Uses
ctypes.pythonapiorctypes.CDLLto execute arbitrary code - Passes Fickling's safety analysis as "likely safe"
- Executes malicious code when the victim loads the pickle after trusting Fickling's verdict
This undermines the core purpose of Fickling as a pickle safety scanner.
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-q5qq-mvfm-j35xWEB
- https://nvd.nist.gov/vuln/detail/CVE-2026-22609ADVISORY
- https://github.com/trailofbits/fickling/pull/195WEB
- https://github.com/trailofbits/fickling/commit/29d5545e74b07766892c1f0461b801afccee4f91WEB
- https://github.com/trailofbits/fickling/commit/6b400e1a2525e6a4a076c97ccc0d4d9581317101WEB
- https://github.com/trailofbits/fickling/commit/9a2b3f89bd0598b528d62c10a64c1986fcb09f66WEB
- https://github.com/trailofbits/fickling/commit/b793563e60a5e039c5837b09d7f4f6b92e6040d1WEB
- https://github.com/trailofbits/fickling/commit/eb299b453342f1931c787bcb3bc33f3a03a173f9WEB
- https://github.com/trailofbits/ficklingPACKAGE
- https://github.com/trailofbits/fickling/blob/977b0769c13537cd96549c12bb537f05464cf09c/test/test_bypasses.py#L88WEB
- https://github.com/trailofbits/fickling/releases/tag/v0.1.7WEB
Frequently Asked Questions
- What is CVE-2026-22609?
- Fickling has Static Analysis Bypass via Incomplete Dangerous Module Blocklist. 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-22609?
- CVE-2026-22609 affects fickling. It has a 0.9% probability of exploitation within 30 days (EPSS score). Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2026-22609 and 200,000+ other known vulnerabilities.
Severity & Exploitability
Maximum impact if exploited, often with little effort or access required.
This is an above-median EPSS score — 58.7% of tracked vulnerabilities score at or below it, putting its exploitation likelihood in the upper half of the tracked corpus.
Also Known As
Related CVEs
- CVE-2026-22608CRITICAL
Fickling vulnerable to use of ctypes and pydoc gadget chain to bypass detection
- CVE-2026-22612CRITICAL
Fickling vulnerable to detection bypass due to "builtins" blindness
- CVE-2026-22607CRITICAL
Fickling Blocklist Bypass: cProfile.run()
- CVE-2026-22606CRITICAL
Fickling has a bypass via runpy.run_path() and runpy.run_module()
- CVE-2026-22608HIGH
Fickling vulnerable to use of ctypes and pydoc gadget chain to bypass detection
- CVE-2026-22612HIGH
Fickling vulnerable to detection bypass due to "builtins" blindness
- CVE-2026-22607HIGH
Fickling Blocklist Bypass: cProfile.run()
- CVE-2026-22606HIGH
Fickling has a bypass via runpy.run_path() and runpy.run_module()