Fickling has safety check bypass via REDUCE+BUILD opcode sequence
GHSA-mhc9-48gj-9gp3 · published 2026-02-25
- Severity
- Medium
- CVSS score
- 5.3
- Chance of exploitation (EPSS)
- No CVE
- Fixed in
- 0.1.8
An attacker can distribute a malicious pickle file (e.g., a backdoored ML model) that passes all fickling safety checks. Demonstrated impacts include: Backdoor network listener: opens a port on all interfaces, accepting connections from the network. The TCPServer constructor calls serverbind() and serveractivate(), so the port is open immediately after pickle.loads() returns. Process persistence: signal.signal(SIGTERM, SIGIGN) makes the process ignore SIGTERM. In Kubernetes/Docker/ECS, the orchestrator cannot gracefully shut down the process — the backdoor stays alive for 30+ seconds per restart attempt.
Upgrade fickling to 0.1.8 or later.
Restrict likelysafeimports to a curated allowlist of known-safe modules instead of trusting all stdlib modules. Additionally, either remove the OvertlyBadEvals exemption for likelysafeimports or expand the UNSAFE_IMPORTS blocklist to cover network/file/compilation modules.
| Package | Registry | Affected | Fixed in |
|---|---|---|---|
| fickling | PyPI | <= 0.1.7 | 0.1.8 |
- CriticalLiteLLM has SQL Injection in Proxy API key verificationlitellmExploited
- Criticaln8n Vulnerable to Remote Code Execution via Expression Injectionn8n, n8nExploited
- HighLiteLLM has a sandbox escape in custom-code guardraillitellmExploited
- HighLangflow affected by Remote Code Execution via validate_code() exec()langflowExploited
- CriticalJupyter MCP Server: Browser DNS rebinding can hijack the Jupyter backend through management routesjupyter-mcp-server
- Criticalmem0ai Databricks vector store vulnerable to SQL injectionmem0ai
- HighFickling missing RCE-capable modules in UNSAFE_IMPORTSfickling
- HighFickling has `always_check_safety()` bypass: pickle.loads and _pickle.loads remain unhookedfickling
- HighFickling: OBJ opcode call invisibility bypasses all safety checksfickling
- HighFickling vulnerable to use of ctypes and pydoc gadget chain to bypass detectionfickling
- HighFickling vulnerable to detection bypass due to "builtins" blindnessfickling
- HighFickling Blocklist Bypass: cProfile.run()fickling
The impact, patch and workaround text comes from the advisory, shortened (GitHub Advisory Database, CC BY 4.0). Proof-of-concept and reproduction sections and code are left out; the original advisory has them.