Skip to content
High 8.8

Fickling check_safety()の回避により悪意あるpickleが安全判定される脆弱性

CVE-2026-16760 First seen on SecPulse

Summary

fickling 0.1.12以前では、標準ライブラリの呼び出し先が安全と誤って扱われ、check_safety()がコード実行やファイル書き込みを含むpickleを安全と判定することがあります。公開されているのはCVSS 8.8の高い深刻度で、回避の例としてPython 3.12以前で任意のコードが実行される事例が示されています。修正版の情報は現時点で確認できていないため、最新の情報を確認してください。

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以前では、標準ライブラリの呼び出し先が安全と誤って扱われ、check_safety()がコード実行やファイル書き込みを含むpickleを安全と判定することがあります。公開されているのはCVSS 8.8の高い深刻度で、回避の例としてPython 3.12以前で任意のコードが実行される事例が示されています。修正版の情報は現時点で確認できていないため、最新の情報を確認してください。

Affected packages

PackageAffected → Fixed
trailofbitsfickling
≤ 0.1.12→ 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, the _process_import() method in fickle.py adds an imported name to the likely_safe_imports set whenever the source module is present in sys.stdlib_module_names and the name is absent from the UNSAFE_IMPORTS denylist, without inspecting what the name resolves to or how it behaves. The OvertlyBadEvals analysis pass in analysis.py then unconditionally skips any call whose function name appears in likely_safe_imports, including calls that would otherwise be flagged as overtly dangerous. As a result, any callable reachable through a non-blocked standard library module inherits module-level trust regardless of its own behavior, and check_safety() returns LIKELY_SAFE with zero findings for pickle payloads that reach code execution or file write through such callables. Demonstrated primitives: dataclasses._create_fn, which passes an attacker-controlled function body to exec() and yields arbitrary code execution on Python 3.7 through 3.12 (the internal _create_fn function was removed in Python 3.13); mailcap.findmatch, which internally calls os.system() on a test command taken from an attacker-controlled caps dictionary, yielding arbitrary code execution on Python versions through 3.12 (the mailcap module was removed in Python 3.13); and readline.add_history() followed by readline.write_history_file(), which writes attacker-controlled content to an arbitrary filesystem path (POSIX platforms, where the readline module is available). fickling.lo…

Source: CVE.org (CVE Program・cvelistV5) NVD GitHub Advisory

References

We use cookies for analytics and ad measurement. This setting applies to all Game co., Ltd. sites. Details