CVE-2025-1945

picklescan - Zip Flag Bit Exploit Crashes Picklescan But Not PyTorch

Published Mar 10, 2025 CVSS 4.0 · 5.3 Medium EPSS < 1% KEV · Not listed
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.

Remediation

No solution or workaround provided in the CVE record

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
EUVD EUVD EUVD-2025-7445 Zip Flag Bit Exploit Crashes Picklescan But Not PyTorch
Github GHSA Github GHSA GHSA-w8jq-xcqf-f792 Zip Flag Bit Exploit Crashes Picklescan But Not PyTorch
History
Type Values Removed Values Added
First Time appeared Mmaitre314
Mmaitre314 picklescan
Weaknesses NVD-CWE-noinfo
CPEs cpe:2.3:a:mmaitre314:picklescan:*:*:*:*:*:*:*:*
Vendors & Products Mmaitre314
Mmaitre314 picklescan
Metrics cvssV3_1

{'score': 9.8, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H'}

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'poc', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
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.
Title picklescan - Zip Flag Bit Exploit Crashes Picklescan But Not PyTorch
Weaknesses CWE-345
References
Metrics cvssV4_0

{'score': 5.3, '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'}

Weaknesses

Sources

Status
PUBLISHED
Assigner
Sonatype
Published
Updated
Dec 29, 2025, 2:17 PM
Reserved
Mar 4, 2025, 12:59 PM
Status
Modified
Published
Mar 10, 2025, 12:15 PM
Modified
Jun 17, 2026, 8:40 AM