Picklescan Remote Code Execution Vulnerability via Undetected Malicious Pickle Files

Vulnerability

A remote code execution vulnerability exists in Picklescan versions prior to 0.0.30. The issue arises because the tool fails to detect harmful pickle files that call the PyTorch function torch.utils.bottleneck.__main__.run_autograd_prof. This oversight allows attackers to embed malicious code in pickle files, which is executed during deserialization, thereby enabling remote code execution.

Impact

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

Reproduction

To reproduce this vulnerability, create a pickle file that includes a payload invoking the PyTorch function torch.utils.bottleneck.__main__.run_autograd_prof. This can be done by defining a class that overrides the __reduce__ method to return the function and the code to be executed. Once the pickle file is created, use Picklescan to scan it. The tool will not flag the file as dangerous. Afterward, load the pickle file using Python's pickle.load() function, which will trigger the execution of the embedded code.

Remediation

Users should update to Picklescan version 0.0.30 or later, where this vulnerability has been addressed.

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.9
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.