🛡️ CVE-2026-22609 — fickling

🟠 CVSS 8.0 — High ⚠️ Exploit Public CWE-184 OSV
8.0
CVSS Score
0 Low4 Medium7 High9 Critical10

Description

Fickling has Static Analysis Bypass via Incomplete Dangerous Module Blocklist

#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:

```python

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

```python

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:

1. Imports ctypes to gain arbitrary memory access

2. Uses ctypes.pythonapi or ctypes.CDLL to execute arbitrary code

3. Passes Fickling's safety analysis as "likely safe"

4. 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.

How this vulnerability can be exploited

This issue can be reached over the network, attack complexity is low, an attacker needs no privileges on the target. No user interaction is required. Rated impact: confidentiality high, integrity high, availability high.

Affected software

CVE-2026-22609 is recorded against 1 package.

  • fickling (fixed in 0.1.7)

Timeline and source

Published on 9 January 2026 and last revised on 7 July 2026. A public exploit is known to exist, which raises the urgency of patching considerably. A vendor advisory or fix has been published. Record sourced from OSV.

References

github.com (Web)
nvd.nist.gov (Advisory)
github.com (Web)
github.com (Web)
github.com (Web)
github.com (Web)
github.com (Web)
github.com (Web)
github.com (Package)
github.com (Web)
github.com (Web)

Details

Severity HIGH
CVSS Score 8.0
CVSS Vector 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
CWE CWE-184
Public Exploit ⚠️ Yes
Source OSV
Published 2026-01-09
Updated 2026-08-12
Modified 2026-07-07

Affected Packages

Software From version Fixed in
fickling 0.1.7

References

Exploit Protection

Are you running fickling?

CVE-2026-22609 carries CVSS 8.0 High rating and a public exploit already exists. BotEraser checks your installation against this and other known CVE records, and blocks IPs associated with exploit activity.

Check My Site For CVE-2026-22609 →

No credit card required  ·  Results in minutes

ⓘ Data Notice: The information presented above has been compiled from publicly available internet sources. Boteraser aggregates this data solely for informational purposes and does not independently classify, evaluate, or endorse any findings about the vulnerabilities listed. The accuracy and completeness of this information is the sole responsibility of the original publishers. Boteraser and its operators accept no liability for any decisions made based on this data.