CVE-2026-118938
8.8 HIGHpublic exploit availablePublished 2026-10-30 · Updated 2026-11-02
AI risk analysis
- Summary
- In Trail of Bits fickling through 0.1.12, a vulnerability in pickle deserialization analysis allows attackers to bypass safety checks by using dotted attribute paths (e.g., 'optparse.Values.read_file') in STACK_GLOBAL operands. The tool incorrectly treats such references as safe module imports instead of analyzing the trailing attribute, enabling arbitrary code execution via optparse.Values.read_file, which executes arbitrary Python code from a file.
- Exploitability
- Exploitation requires crafting a malicious pickle with a dotted __qualname__ and loading it via fickling.load(), which is only feasible if the attacker can control the pickle input and the target application uses fickling.load() for deserialization.
- Blast radius
- Successful exploitation leads to arbitrary code execution on the target system, potentially enabling full system compromise, data exfiltration, or lateral movement within the environment.
- Detection
- Log entries showing calls to fickling.load() with unpickled data containing 'optparse.Values.read_file' or similar dotted attribute references may indicate exploitation attempts; additionally, monitoring for process execution of arbitrary Python code (e.g., via exec()) triggered during deserialization can serve as a behavioral indicator.
- Prioritized remediation
- Upgrade to fickling version 0.1.13 or later, which resolves the dotted attribute-path resolution flaw; if upgrading is not immediately possible, disable use of fickling.load() and replace it with a custom deserialization function that strictly validates and rejects dotted attribute paths in STACK_GLOBAL operands.
Analysis generated locally by garnet-coder (no data left the box). AI-assisted — verify against primary sources before acting.
NVD description
In Trail of Bits fickling through 0.1.12, a pickle STACK_GLOBAL operand carrying a dotted __qualname__ (for example "Values.read_file") is resolved by pickle's find_class through _getattribute to an arbitrary attribute path rather than to a module-level function. Fickling records only the leading component of the name in its import tracking and renders the operation as a plain import (for instance, 'python -m fickling' displays it as 'from optparse import Values.read_file'), so the trailing attribute reference is never analyzed as a call. The OvertlyBadEvals analysis pass does not flag it, and check_safety() returns LIKELY_SAFE with zero findings. This allows an attacker to reach a class method that performs code execution: optparse.Values.read_file executes exec(open(filename).read(), vars), achieving arbitrary code execution when the crafted pickle is loaded through fickling.load(), which chains check_safety() into pickle.loads() as an explicit security gate. optparse is present in all current CPython 3.x releases (deprecated as of Python 3.13, not removed). This weakness is in the resolution and analysis of dotted attribute-path names, and is distinct from and independently fixable from the module-origin trust weakness tracked as CVE-2026-16760: resolving or flagging dotted attribute-path imports closes this vector while leaving the module-level trust behavior unchanged. This bypass was verified to remain present on the vendor master branch at commit d011709 as of 2026-10-30, after the vendor's October blocklist additions and a new heuristic that flags private stdlib attributes; because the public class method Values.read_file is neither blocklisted nor flagged as a private attribute, it is not addressed by those remediations.
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
Weaknesses
CWE-502, CWE-706
Public exploit & PoC references
All references
Source data: NVD (nvd.nist.gov), public domain. Exploit-DB.ai adds local AI analysis for defensive use only.
Related CVEs
- HIGHCVE-2026-123783PoC
- CRITICALCVE-2026-51856PoC
- CRITICALCVE-2026-51857PoC
- HIGHCVE-2026-86792PoC
- HIGHCVE-2026-100843PoC
- CRITICALCVE-2026-103040PoC
- CRITICALCVE-2026-103041PoC
- HIGHCVE-2026-115878PoC
Related by shared AI tags and CWE weakness class. Browse the full archive.