Skip to main content

picklescan CVE-2025-71350

| EUVDEUVD-2025-210386 HIGH
Deserialization of Untrusted Data (CWE-502)
2026-06-30 VulnCheck GHSA-px3v-38wh-q34v
7.6
CVSS 4.0 · Vendor: VulnCheck
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Publish malicious pickle model
  2. Exploit
    Victim scans with picklescan <0.0.28 (evaded)
  3. Execution
    Load triggers reduce calling torch.utils.collect_env.run
  4. Impact
    Execute attacker shell commands in victim context

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A08:2025 - Software or Data Integrity Failures
ASVS 5.0
V1 - Encoding and Sanitization Safe deserialization, type allowlists
MITRE ATT&CK

2 techniques across 2 tactics: Execution, Initial Access

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Exploitation requires that the victim (a) uses picklescan before 0.0.28 to vet pickle files, (b) trusts its clean verdict, and (c) subsequently deserializes the attacker-supplied pickle (e.g., via torch.load), with PyTorch installed so that torch.utils.collect_env.run is importable as the gadget. The crafted payload must place the malicious command inside a pickle reduce method referencing that specific function. Limiting factors per the CVSS 4.0 vector: passive user interaction is required (UI:P - the victim must obtain, scan, and load the file), and the attack requirement AT:P means the target must actually be running picklescan as its gate; PR:N means no prior authentication is needed. This is not exploitable against default configurations of arbitrary systems - it specifically targets pipelines that depend on vulnerable picklescan and then load the scanned file.

Impact

Signals are moderate and internally consistent. The vendor CVSS 4.0 vector (AV:N/AC:L/AT:P/PR:N/UI:P, VC:H/VI:H/VA:N) scores 7.6 and correctly captures that this is network-delivered and unauthenticated but gated by two real conditions: a passive user interaction (the victim must scan-then-load a file) and an attack requirement (AT:P) that the target actually routes untrusted pickles through picklescan and trusts its verdict. There is no EPSS value, no KEV listing, and no published POC in the provided data, so this is not evidence of widespread or automated exploitation. The realistic risk is a targeted supply-chain bypass: an attacker who can get a malicious model in front of a victim using a vulnerable picklescan version gains high confidentiality and integrity impact. Note one tension worth flagging - the vendor set VA:N (no availability impact), yet arbitrary command execution would ordinarily permit availability damage; treat the official 'no availability impact' as conservative scoping rather than a hard limit. Priority is elevated for ML/MLOps teams that use picklescan as their primary defense, and low for everyone else.

Exploit ScenarioDerived

An attacker publishes a PyTorch model to a public hub (or sends it directly) whose embedded pickle uses a reduce method calling torch.utils.collect_env.run with attacker-chosen shell commands. A victim running picklescan < 0.0.28 scans the file, receives a false 'safe' verdict, and proceeds to load it with torch.load - at which point the commands execute in the victim's context. No POC is referenced in the available data, but the technique is fully described in the VulnCheck advisory.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.4% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Jun 30, 2026

Malicious-pickle detection bypass in picklescan before 0.0.28 lets attackers smuggle remote-code-execution payloads past the scanner by hiding them in a pickle reduce method that invokes torch.utils.collect_env.run, which picklescan's blocklist failed to flag. Because picklescan is the gatekeeper many ML pipelines rely on to vet untrusted models (notably scanning Hugging Face artifacts), a 'clean' verdict on a weaponized file directly leads to command execution when the victim deserializes it. Reported by VulnCheck with a fix in 0.0.28; no public exploit identified at time of analysis and not listed in CISA KEV.

RemediationAI

Vendor-released patch: upgrade picklescan to 0.0.28 or later, which adds torch.utils.collect_env.run to the detected dangerous-callable set; pin this minimum in requirements/CI so older versions cannot be reintroduced (see https://github.com/mmaitre314/picklescan/security/advisories/GHSA-f745-w6jp-hpxx). Because this is a scanner-evasion bug rather than a flaw in the model loader, do not treat a picklescan 'clean' result from a pre-0.0.28 version as trustworthy. Until upgraded, compensating controls: prefer loading models in safetensors format instead of pickle (eliminates arbitrary-callable execution entirely, but requires re-exporting models); load untrusted pickles only with weights_only=True on supported PyTorch versions (blocks arbitrary global execution, though it rejects checkpoints that legitimately need non-tensor objects); and sandbox deserialization in a network-isolated, least-privilege container so a successful bypass cannot reach internal systems (adds operational overhead). Avoid relying on a second signature-based scanner alone, since the same allowlist-gap class can recur.

Affected VersionsENISA

picklescan 0 <0.0.28

Affected Packages

pypi picklescan fix: 0.0.28

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in pypi

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

picklescan is a Python tool that statically inspects Python pickle files for dangerous opcodes and global references before they are loaded, acting as a safety check for ML model distribution formats (e.g., PyTorch .bin/.pt files, which embed pickles). The root cause is CWE-502 (Deserialization of Untrusted Data): Python's pickle executes a __reduce__/REDUCE callable on load, and picklescan maintains an allow/deny list of callables it considers dangerous. The torch.utils.collect_env.run helper - a thin wrapper that shells out to run system commands for environment diagnostics - was not on picklescan's dangerous-callable list, so a reduce method pointing at it slipped through scanning while still providing arbitrary command execution at unpickle time. The CPE cpe:2.3:a:picklescan:picklescan:*:*:*:*:*:*:*:* confirms the affected component is the picklescan package itself, not PyTorch; PyTorch is merely the source of the abused gadget function.

Know when Picklescan gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (VulnCheck) PRIMARY 7.6 HIGH
CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N
vuln.today AI 8.8 HIGH

Network-delivered malicious file requires the victim to scan-and-load it (UI:R) with no auth (PR:N); successful unpickling yields arbitrary command execution, so full C/I/A.

3.1 AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
4.0 AV:N/AC:L/AT:P/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N

Primary rating from Vendor (VulnCheck).

CVSS VectorVendor: VulnCheck

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
Present
Privileges Required
None
User Interaction
Passive
Vulnerable system: Confidentiality
High
Vulnerable system: Integrity
High
Vulnerable system: Availability
None
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

Lifecycle Timeline

1
Patch available
Jul 01, 2026 - 02:16 EUVD

DescriptionCVE.org

picklescan before 0.0.28 fails to detect malicious pickle files using torch.utils.collect_env.run function in reduce methods. Attackers can embed undetected code in pickle files that executes remote commands when loaded by victims.

Executive ViewAI

Why It Matters

picklescan, a security scanner used by organizations to vet third-party machine learning models, has a bypass flaw allowing malicious code to evade detection and execute upon model deployment. This creates supply chain risk wherever untrusted models are ingested-compromised artifacts marked safe by the scanner can trigger remote code execution in production ML systems. No public exploit has been identified to date, but the vulnerability remains critical given picklescan's role as a security gate.

Business Impact: High
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

EPSS Score
0.4%
Top 69% exploitable
Prevalence
Medium
ML pickle-vetting tool used in model pipelines, including Hugging Face scanning
Data Quality
6 sources
Confidence: High

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.4%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Scheduled
Exploitation
Poc
System Exposure· derived
Open
Automatable
No
Human Impact
High
Technical Impact
Total

Priority Score

38
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +38
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Insecure deserialization occurs when an application converts serialized data (a stream of bytes representing an object's state) back into a living object without proper validation.

CVE-2026-3490 CRITICAL POC
10.0 Jun 17

Remote code execution against users of picklescan versions prior to 1.0.4 is achievable by smuggling any blocked functio

CVE-2025-10156 CRITICAL POC
9.3 Sep 17

An Improper Handling of Exceptional Conditions vulnerability in the ZIP archive scanning component of mmaitre314 pickles

CVE-2025-10157 CRITICAL POC
9.3 Sep 17

A Protection Mechanism Failure vulnerability in mmaitre314 picklescan versions up to and including 0.0.30 allows a remot

CVE-2025-10155 CRITICAL POC
9.3 Sep 17

An Improper Input Validation vulnerability in the scanning logic of mmaitre314 picklescan versions up to and including 0

CVE-2025-71341 HIGH POC
7.6 Jun 23

Detection bypass in picklescan prior to 0.0.29 allows attackers to smuggle remote code execution payloads through pickle

CVE-2025-71351 HIGH POC
7.6 Jun 21

Detection bypass in picklescan versions before 0.0.25 allows attackers to embed remote code execution payloads in pickle

CVE-2025-71370 HIGH POC
7.6 Jun 23

Detection bypass in picklescan before 0.0.28 allows attackers to embed malicious torch.jit.unsupported_tensor_ops.execWr

CVE-2025-71348 HIGH POC
7.6 Jun 21

Detection bypass in picklescan before 0.0.28 allows attackers to smuggle arbitrary code through pickle files by abusing

CVE-2025-71361 HIGH POC
7.6 Jun 24

Detection bypass in picklescan before 0.0.29 allows malicious pickle files to evade scanning by abusing the undetected i

CVE-2025-71378 HIGH POC
7.6 Jun 21

Detection bypass in picklescan versions before 0.0.30 allows malicious pickle files to evade security scanning by using

CVE-2025-71376 HIGH POC
7.6 Jun 23

Detection bypass in picklescan versions prior to 0.0.29 allows attackers to smuggle arbitrary code execution payloads th

CVE-2025-71365 HIGH POC
7.6 Jun 23

Detection bypass in picklescan before 0.0.33 allows attackers to smuggle arbitrary code through malicious pickle files b

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy