CVE-2025-1945
Zip Flag Bit Exploit Crashes Picklescan But Not PyTorch
9.8
CRITICAL
CVSS 3.1
EPSS 0.87%
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.
How to fix CVE-2025-1945
To remediate CVE-2025-1945, upgrade the affected package to a fixed version below.
- —upgrade to 0.0.23 or later
- —upgrade to e58e45e0d9e091159c1554f9b04828bbb40b9781 or later
Is CVE-2025-1945 being exploited?
Low — EPSS is 0.9%, meaning exploitation activity has not been observed at scale.
Affected packages (2)
- from 0, < 0.0.23
- from 0, < e58e45e0d9e091159c1554f9b04828bbb40b9781 | from 0, < 0.0.23
CVSS scores
| Source | Version | Severity | Vector |
|---|---|---|---|
| osv | CVSS 4.0 | — | CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N |
| osv | CVSS 3.1 | CRITICAL9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |