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.
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
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| PyPI | picklescan | 0.0.23 | GHSA-w8jq-xcqf-f792 |
| PyPI | picklescan | 0.0.23 | PYSEC-2025-21 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| 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