Picklescan Arbitrary Code Execution Vulnerability via Detection Bypass

Vulnerability

A vulnerability in Picklescan versions prior to 0.0.30 allows malicious pickle files to evade detection and execute arbitrary code. This issue arises from the improper handling of pickle files that exploit the 'lib2to3.pgen2.pgen.ParserGenerator.make_label' function within the 'reduce' method. Attackers can craft these pickle files to include embedded code that, while undetected by Picklescan, executes when the pickle file is loaded using 'pickle.load()'.

Impact

Exploitation of this vulnerability allows for arbitrary code execution on the system where the malicious pickle file is loaded.

Reproduction

To reproduce this vulnerability, first create a malicious pickle file that exploits the 'lib2to3.pgen2.pgen.ParserGenerator.make_label' function. This can be done by crafting a payload that, when the pickle file is loaded, executes arbitrary commands. Once the malicious pickle file is created, use Picklescan to scan it. The scan will not detect any threats. Afterward, load the pickle file using 'pickle.load()'. This will trigger the execution of the embedded code, demonstrating the vulnerability.

Remediation

Users are advised to update Picklescan to version 0.0.30 or later, where this vulnerability has been patched.

Added: Jul 4, 2026, 2:28 AM
Updated: Jul 4, 2026, 2:28 AM

Vulnerability Rating

Custom Algorithm
spread
0.0
impact
7.5
exploitability
5.5
remediation
7.7
relevance
8.7
threat
6.4
urgency
2.9
incentive
0.0

Our algorithm analyzes dozens of metrics to generate these 8 key vulnerability categories, which are then combined to calculate the overall risk score.