CVE-2025-1945

picklescan before 0.0.23 fails to detect malicious pickle files inside PyTorch model archives when certain ZIP file flag bits are modified. By flipping specific bits in the ZIP file headers, an attacker can embed malicious pickle files that remain undetected by PickleScan while still being successfully loaded by PyTorch's torch.load(). This can lead to arbitrary code execution when loading a compromised model.

Score
CVSS 3.1 9.8 Critical
Status
Modified - 103e4ec9-0a87-450b-af77-479448ddef11
Published
2025-03-10
Last modified
2025-12-29
Weaknesses
CWE-345

Affected products

References