Vulnerability · Published Mar 10, 2025 · Assigned by Sonatype

CVE-2025-1945picklescan - Zip Flag Bit Exploit Crashes Picklescan But Not PyTorch

Medium 5.3

In plain English

A medium-severity insufficient verification of data authenticity in picklescan from mmaitre314. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 0.6% (higher than 46% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 4.0)5.3Medium
Exploit odds (30 days)0.6%top 53.6% of all CVEs
Exploited in the wildNo reportsCISA SSVC: poc
Attack toolingNoneno public tooling known

Official 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 packages & fixed versions

EcosystemPackageFixed inAdvisory
PyPIpicklescan0.0.23GHSA-w8jq-xcqf-f792
PyPIpicklescan0.0.23PYSEC-2025-21

Affected products (as reported)

VendorProductVersions
mmaitre314 picklescan 0.0.1 – before 0.0.23

Weakness: CWE-345 · Vector: CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:L/VA:L/SC:N/SI:L/SA:L

References