CVEstrailofbitsCVE-2026-118938Published Oct 30, 21:19 · Updated Oct 30, 21:19 UTC
8.8
HighCVSS 3.1 · from BombadilSystems
CVE-2026-118938

Fickling check_safety() bypass: dotted __qualname__ in STACK_GLOBAL resolves a class-method attribute path that evades call analysis

fickling · CWE-706 · CWE-706
Affectedfickling
FixNo fix listed yet.
PublishedOct 30, 21:19 · BombadilSystems
ScoredOct 30 · 8.8 · BombadilSystems
Exploit code publicNone known · checked 21:18 UTC
ExploitedNone known · CISA KEV checked 22:08 UTC

What we know

No known exploitation. CISA KEV, checked 22:08 UTC.
No public exploit code known. Exploit-DB, Metasploit, Nuclei, checked 21:18 UTC.
An attacker only needs network access to the target. No login needed. CVSS: network, no privileges.
Someone has to open, click or run something first. CVSS: user interaction required.
A successful attack can read and change data and take the service down. CVSS: high impact on confidentiality, integrity and availability.

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.

From BombadilSystems

Affected and fixed versions

ProductAffectedFixed inficklingup to 0.1.12–

Exploit code

Exploit-DBnone knownMetasploitnone knownNucleinone known

References

Bombadil Systems advisory listing · bombadil.systemsfickling 0.1.12 on PyPI · pypi.orgfickling source repository · github.comVendor remediation merge commit d011709 (does not address this vector; optparse.Values.read_file remains exploitable on master) · github.com

Other CVEs in fickling

All 10 →
8.8Fickling check_safety() bypass: likely_safe_imports grants module-origin trust to unvalidated standard library callables · CVE-2026-16760Oct 308.8Fickling MLAllowlist analysis pass rendered inoperative by shared mutable state in AnalysisContext.shorten_code() · CVE-2026-14535Jul 48.8Fickling check_safety() bypass via unlisted standard library modules (_posixsubprocess, site, atexit) · CVE-2026-14534Jul 4