Three Critical Flaws Found in Picklescan Risk PyTorch Model Security

Critical Vulnerabilities in Picklescan Enable Arbitrary Code Execution via Malicious PyTorch Models, Fixed in Version 0.0.31

  • Three critical vulnerabilities were found in Picklescan, an open-source tool designed to scan Python pickle files for unsafe content.
  • These flaws allow attackers to bypass security checks and execute arbitrary code via malicious PyTorch models.
  • The issues include bypassing file extension checks, disabling ZIP archive scanning, and evading dangerous import detection.
  • The vulnerabilities have been fixed in Picklescan version 0.0.31, released in September 2025.
  • The findings highlight challenges in securing AI libraries like PyTorch that rapidly evolve beyond existing scanner capabilities.

In December 2025, three significant security vulnerabilities were disclosed in Picklescan, a security scanner tool that analyzes Python pickle files to detect unsafe imports or function calls before execution. These flaws enable malicious actors to circumvent the tool’s protections and run arbitrary code by loading untrusted PyTorch models.

- Advertisement -

Picklescan, developed by Matthieu Maitre (@mmaitre314), targets the pickle serialization format widely used in machine learning frameworks like PyTorch for saving and loading models. Pickle files can inherently execute code upon deserialization, posing a risk if models from untrusted sources are loaded.

The vulnerabilities discovered by security researcher David Cohen and the JFrog team allow malicious pickle payloads to bypass Picklescan‘s detection mechanisms, potentially facilitating large-scale supply chain attacks by distributing compromised machine learning models.

Picklescan works by inspecting pickle files at the bytecode level and blocking a list of known dangerous imports and operations. This blocklist approach, however, requires constant updates to capture new threats. The flaws found include:

CVE-2025-10155: A file extension bypass that tricks Picklescan into accepting malicious payloads in files with common PyTorch extensions like .bin or .pt (CVSS score 9.3/7.8).
CVE-2025-10156: A ZIP archive scanning bypass that uses a Cyclic Redundancy Check (CRC) error to disable detection (CVSS score 9.3/7.5).
CVE-2025-10157: A bypass that undermines the check for unsafe global variables, circumventing the blocklist to enable code execution (CVSS score 9.3/8.3).

- Advertisement -

Exploitation of these vulnerabilities allows attackers to conceal harmful pickle payloads in PyTorch model files, introduce CRC errors in ZIP archives, or embed malicious code that avoids detection.

After responsible disclosure on June 29, 2025, these security gaps were addressed in Picklescan version 0.0.31, released on September 9, 2025. The findings highlight the difficulty in securing AI ecosystems, particularly as frameworks like PyTorch rapidly evolve with new features and file formats faster than scanning tools can adapt.

“AI libraries like PyTorch grow more complex by the day, introducing new features, model formats, and execution pathways faster than security scanning tools can adapt,” said David Cohen, noting that the growing gap leaves systems exposed to advanced threats. He added that closing this gap requires proactive, intelligence-driven security solutions that evolve alongside AI technologies.

✅ Follow BITNEWSBOT on Telegram, Facebook, LinkedIn, X.com, and Google News for instant updates.

Previous Articles:

- Advertisement -

Latest News

Silver’s rally reignites debate: Bitcoin vs. precious metals

Silver reached a record spot price near $94 per ounce on Monday.Gold climbed to...

Satoshi-era 909 BTC wallet wakes after 13 years, moves $85M.

A Satoshi‑era wallet transferred its full balance of 909.38 BTC—about $84.6 million—after 13 years...

Cardano Volatility Fuels Comeback Hopes After Hoskinson Buzz

Cardano (ADA) trades at $0.36, up 2% in the last 24 hours, after sharp...

Ethereum Leads Bitcoin Liquidations as Macro Headwinds Bite.

Ethereum led crypto liquidations over the last 24 hours, surpassing Bitcoin.Total crypto liquidations totaled...

Bitcoin Falls Amid US-EU Tariff Fears, Drops Near $92K today

Bitcoin traded near $92,000 on Jan. 19 after a weekend decline tied to concerns...
- Advertisement -

Must Read

12 Hosting Providers To Buy VPS With Bitcoin: An Expert Guide for 2026

You need a VPS. You want to pay with Bitcoin. Simple enough, right?Not quite. The market for crypto VPS = VPS hosting that accepts...
Bitcoin (BTC) $ 90,870.00 2.26%
Ethereum (ETH) $ 3,093.00 3.62%
XRP (XRP) $ 1.93 2.41%
Bittensor (TAO) $ 241.03 3.83%
Polkadot (DOT) $ 1.99 0.06%
Cardano (ADA) $ 0.358721 2.84%
Chainlink (LINK) $ 12.53 1.97%
Hyperliquid (HYPE) $ 23.11 3.94%
Monero (XMR) $ 587.97 8.59%
Hedera (HBAR) $ 0.107128 2.19%
Toncoin (TON) $ 1.56 3.73%