CVE-2025-1945
MEDIUM 5.3CVSS 4.0Zip Flag Bit Exploit Crashes Picklescan But Not PyTorch
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.
- Published
- 10 Mar 2025
- Last modified
- 17 Jun 2026
- Assigned by
- 103e4ec9-0a87-450b-af77-479448ddef11
- NVD status
- Modified
- Weakness
- CWE-345
- Also known as
- GHSA-w8jq-xcqf-f792PYSEC-2025-21
- Sources
- NVDJSONOSV GHSA-w8jq-xcqf-f792JSONOSV PYSEC-2025-21JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | 103e4ec9-0a87-450b-af77-479448ddef11 (Secondary) | CVSS 4.0 | MEDIUM 5.3 | 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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X |
| OSV | GitHub | 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 | |
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | CRITICAL 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| OSV | PyPA | CVSS 3.1 | CRITICAL 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | mmaitre314 | picklescancpe:2.3:a:mmaitre314:picklescan:*:*:*:*:*:*:*:* |
< 0.0.23 | 0.0.23 |
| OSV | PyPI | picklescan | < 0.0.23 | 0.0.23 |
References
- https://github.com/mmaitre314/picklescan/commit/e58e45e0d9e091159c1554f9b04828bbb40b9781 · Patch, WEB, FIX
- https://github.com/mmaitre314/picklescan/security/advisories/GHSA-w8jq-xcqf-f792 · Exploit, Vendor Advisory, WEB, EVIDENCE
- https://www.sonatype.com/security-advisories/cve-2025-1945
- https://nvd.nist.gov/vuln/detail/CVE-2025-1945 · ADVISORY
- https://github.com/mmaitre314/picklescan · PACKAGE
- https://github.com/pypa/advisory-database/tree/main/vulns/picklescan/PYSEC-2025-21.yaml · WEB
- https://sites.google.com/sonatype.com/vulnerabilities/cve-2025-1945 · WEB
History
- 25 Nov 2026 20:57 UTC · NVD: first stored (published 10 Mar 2025)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 10 Mar 2025)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 10 Mar 2025)