CVE-2025-1945CWE-345

picklescan - Zip Flag Bit Exploit Crashes Picklescan But Not PyTorch

Medium · published March 10, 2025

CVSS v4.0
5.3
EPSS
1%
Percentile
45.5
In the wild
Unconfirmed
What it is

⚠️ Beware of sneaky ZIP tricks! Before version 0.0.23, PickleScan can't spot malicious pickle files hidden in PyTorch model archives — it’s like disguising a bad ingredient in a supposedly safe meal. 🍽️ Imagine a chef unknowingly serving a dish that has a dangerous allergen because someone tweaked the recipe card. That's what attackers can do by modifying ZIP file headers to sneak in harmful pickle files that pass undetected. If an attacker succeeds, loading a compromised model could lead to arbitrary code execution. This means they could run any code they want on your system, potentially leading to devastating data breaches or system takeovers—definitely not the gourmet experience you want!

Put simply

Imagine a chef unknowingly serving a dish that has a dangerous allergen because someone tweaked the recipe card. That's what attackers can do by modifying ZIP file headers to sneak in harmful pickle files that pass undetected. This vulnerability in PickleScan allows attackers to embed malicious pickle files into PyTorch model archives by altering specific ZIP file header bits. When these altered models are loaded using torch.load(), the malicious code can execute without detection.

What to do

If an attacker succeeds, loading a compromised model could lead to arbitrary code execution. This means they could run any code they want on your system, potentially leading to devastating data breaches or system takeovers—definitely not the gourmet experience you want! To safeguard your systems, upgrade to PickleScan version 0.0.23 or later immediately. Additionally, review your model loading practices and consider implementing stricter validation checks for any models being used. You've got this! By following these steps, you can keep your applications and data safe from these sneaky pickle attacks! 🛡️

The record
Technical detail
CVSS v4.0
5.3 · MEDIUM
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
EPSS
0.00554 · 45.5th percentile
Weakness
CWE-345 · Insufficient Verification of Data Authenticity
Published
2025-03-10T11:43Z
EPSS history
Timeline
  • 10 MAR 11:43Z
    picklescan - Zip Flag Bit Exploit Crashes Picklescan But Not PyTorch
    cvelistv5