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

- Severity: Medium 5.3 (CVSS:4.0, scored by Sonatype) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.55%, higher than 47% of CVEs (2026-12-02)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2025-03-10T11:43:02.158Z
- Modified: 2026-06-17T08:40:24.023Z
- Also known as: GHSA-w8jq-xcqf-f792, PYSEC-2025-21
- Weaknesses: CWE-345
- SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact partial
- 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.

(As written by CVE List.)

## Affected

- mmaitre314 picklescan: from 0.0.1 before 0.0.23; before 0.0.23
- picklescan (PyPI): before 0.0.23; before e58e45e0d9e091159c1554f9b04828bbb40b9781

## Every score

- Sonatype: CVSS:4.0 5.3 Medium `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`
- GitHub: CVSS:4.0 Medium `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: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- PyPA Advisory Database: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://github.com/mmaitre314/picklescan/security/advisories/GHSA-w8jq-xcqf-f792> (exploit, evidence, vendor-advisory, web)
- <https://www.sonatype.com/security-advisories/cve-2025-1945> (third-party-advisory)
- <https://github.com/mmaitre314/picklescan/commit/e58e45e0d9e091159c1554f9b04828bbb40b9781> (fix, patch, web)
- <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)

## Sources

- CVE List: [CVE-2025-1945](https://www.cve.org/CVERecord?id=CVE-2025-1945), CVE Terms of Use, modified 2025-12-29
- GitHub Advisory Database: [GHSA-w8jq-xcqf-f792](https://github.com/advisories/GHSA-w8jq-xcqf-f792), CC-BY-4.0, modified 2025-04-09
- NVD: [CVE-2025-1945](https://nvd.nist.gov/vuln/detail/CVE-2025-1945), Public domain, modified 2026-06-17
- PyPA Advisory Database: [PYSEC-2025-21](https://osv.dev/vulnerability/PYSEC-2025-21), CC-BY-4.0, modified 2025-04-09

---

Page: https://cve.day/CVE-2025-1945 · Whole record: https://cve.day/CVE-2025-1945.json · Rebuilt by cve.day 2026-11-25T22:58:55.079Z
