fickling の安全性検査を回避され、任意のコードを実行される脆弱性
Summary
fickling 0.1.12以前では、pickleのSTACK_GLOBALに含まれるドット付きの名前を解決する際、クラスのメソッドが呼び出されても検査で検出されず、check_safety()が安全と判定することがあります。このため、細工されたpickleをfickling.load()で読み込むと任意のコードが実行されるおそれがあり、CVSSは8.8です。修正版は事実に無いため、最新の情報を確認してください。
AI summary
Produced by SecPulse using an external AI model; it may contain mistakes. Check the original description and references below before acting on it.
fickling 0.1.12以前では、pickleのSTACK_GLOBALに含まれるドット付きの名前を解決する際、クラスのメソッドが呼び出されても検査で検出されず、check_safety()が安全と判定することがあります。このため、細工されたpickleをfickling.load()で読み込むと任意のコードが実行されるおそれがあり、CVSSは8.8です。修正版は事実に無いため、最新の情報を確認してください。
Affected packages
| Package | Affected → Fixed | |
|---|---|---|
| trailofbitsfickling |
≤ 0.1.12→ Not listed |
Not listed |
This record does not list fixed versions. Check the article or the vendor advisory in the references for whether and where it is fixed.
Original description The description as published by the source.
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-…
Source: CVE.org (CVE Program・cvelistV5) NVD GitHub Advisory
References
- advisory bombadil.systems
- advisory nvd.nist.gov
- advisory github.com
- package pypi.org
- package github.com
- package pypi.org
- patch github.com
- REDHAT Red Hat
- web pypi.org
- web github.com