Skip to content
OpenAdvisories
Medium · 5.3 CVE-2025-1945 EUVD-2025-7445GHSA-w8jq-xcqf-f792PYSEC-2025-21

picklescan - Zip Flag Bit Exploit Crashes Picklescan But Not PyTorch

Published Mar 10, 2025 · Updated Dec 29, 2025 · Assigned by Sonatype

Description

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.

Affected products

VendorProductAffectedFixed
mmaitre314 picklescan 0.0.1 – < 0.0.23 0.0.23

Affected packages

EcosystemPackageAffectedFixedRecord
PyPI picklescan < 0.0.23 0.0.23 GHSA-w8jq-xcqf-f792

References