Skip to content
Submit incident
AII-1001-83519
ConfirmedA court, a regulator or the organization itself has stated the core facts, or the record cites a court or regulator source.

Zip Flag Bit Exploit Bypasses PickleScan Security Checks

PickleScan versions before 0.0.23 can be bypassed by modifying ZIP file flag bits, allowing malicious pickle files to evade detection while remaining executable by PyTorch's torch.load() function. This vulnerability could enable supply chain attacks on distributed machine learning models.

9 March 2025 Β· PickleScan Β· Security and cyberattacks
9 March 2025
AII-1001-835192 sources ↓
Quick facts
Category
Security and cyberattacks
Source
github.com
Date
9 March 2025
Drafted by
Raidu Incident Detection

What happened

PickleScan before version 0.0.23 fails to detect malicious pickle files embedded in PyTorch model archives when specific ZIP file flag bits are modified.

By flipping bits (0x1, 0x20, or 0x40) in ZIP file headers, an attacker can embed a malicious pickle file that causes PickleScan to fail during scanning while PyTorch's torch.load() successfully loads the archive and executes the malicious code.

Reported impact

Attackers can distribute backdoored PyTorch models that evade PickleScan's security detection while remaining executable, potentially enabling supply chain attacks on machine learning platforms.

Index analysis

PickleScan relies on Python's zipfile module to extract and scan model archives, but certain flag bits in ZIP headers cause PickleScan to raise errors while PyTorch's loading mechanism ignores these flag modifications.

The vulnerability allows attackers to embed malicious pickle payloads that pass through undetected but execute arbitrary code upon model loading.

Governance controls

The vulnerability was patched in PickleScan version 0.0.23.

Classification

Category
Security and cyberattacks
Industry
Digital security
Harm status
Potential harm
Intent
Intentional
Timing
Post-deployment
Harm types
Other
Harmed
Business, Consumers
AI systems
PickleScan

Sources and evidence

This record was researched and written by the Index, based on the following original reporting.

github.com
https://github.com/mmaitre314/picklescan/security/advisories/GHSA-w8jq-xcqf-f792
sonatype.com
https://www.sonatype.com/security-advisories/cve-2025-1945