Skip to main content

picklescan CVE-2025-71342

| EUVDEUVD-2025-210410 HIGH
Deserialization of Untrusted Data (CWE-502)
2026-07-04 VulnCheck GHSA-j6fw-8849-4cxh
7.6
CVSS 4.0 · Vendor: VulnCheck
View

Attack ChainAIDerived

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

  1. Access
    Craft pickle with idlelib.run.Executive.runcode reduce
  2. Delivery
    Publish poisoned model to hub/repo
  3. Exploit
    Victim scans file, picklescan reports clean
  4. Execution
    Victim calls torch.load/pickle.load
  5. Persist
    Payload executes arbitrary code
  6. Impact
    RCE and supply-chain foothold

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 target actually uses picklescan (version < 0.0.30) to vet files and trusts its verdict, and that a victim then deserializes the scanned file (UI:P - the malicious model must be loaded, e.g., via torch.load/pickle.load). The specific technical prerequisite is a pickle whose __reduce__ references idlelib.run.Executive.runcode, which the pre-0.0.30 denylist does not catch. Limiting factors: no code runs until the file is loaded, so pure scanning-without-loading is not exploited; the attacker must get their file into the victim's pipeline (malicious upload, compromised repo, or supply-chain injection); and environments already on picklescan >= 0.0.30, or that do not rely on picklescan at all, are not affected. No authentication is required of the attacker (PR:N).

Impact

The supplied CVSS 4.0 vector (AV:N/AC:L/AT:P/PR:N/UI:P/VC:H/VI:H/VA:N, score 7.6) is internally consistent with the description: no privileges are needed (PR:N), but exploitation requires a victim to load a malicious model (UI:P) and an attack requirement is present (AT:P) - namely that picklescan is actually used and trusted in the pipeline. This is a detection-bypass rather than a directly network-triggerable RCE, so real-world risk is gated by the victim's workflow. No EPSS score, KEV listing, or POC was provided, so exploitation is currently theoretical/reported-only rather than confirmed in the wild; treat the high CVSS as reflecting worst-case impact (RCE) rather than imminent mass exploitation. The most important limiting factor: the payload only helps an attacker if the target relies on picklescan as its safety gate - environments that never trusted pickle files, or that pin picklescan >= 0.0.30, are unaffected. No conflicting signals were found in the input.

Exploit ScenarioDerived

An attacker publishes a poisoned PyTorch model on a public hub (or compromises an existing artifact) whose pickle reduce method invokes idlelib.run.Executive.runcode to execute an attacker-supplied command. A victim runs picklescan (< 0.0.30) on the file, receives a clean result, and calls torch.load/pickle.load - at which point the payload executes with the victim's privileges. No POC was provided in the input, so this scenario is derived from the description and CVSS (network delivery, victim interaction required).

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 – Jul 04, 2026

Malicious pickle detection bypass in picklescan before 0.0.30 lets attackers hide code that runs during pickle.load, because the scanner does not flag the idlelib.run.Executive.runcode primitive used in a reduce method. Since picklescan is a security tool relied upon to vet PyTorch/ML model files, this bypass turns a trusted safety check into a false 'clean' verdict, enabling remote code execution and supply-chain attacks against anyone loading an attacker-supplied model. Reported by VulnCheck; no public exploit identified at time of analysis and not listed in CISA KEV.

RemediationAI

Vendor-released patch: upgrade picklescan to version 0.0.30 or later, which adds detection for the idlelib.run.Executive.runcode callable (see advisory GHSA-m869-42cg-3xwr). As a compensating control where immediate upgrade is not possible, do not treat picklescan's verdict as sufficient authorization to deserialize untrusted files: restrict model loading to trusted, integrity-verified sources (signed artifacts, internal registries), and where feasible avoid pickle-based formats entirely by preferring safetensors, which is not code-executing (trade-off: requires model re-export and may not support all object types). You can also sandbox deserialization (isolated container/process with no network and least privilege) so that even a missed payload cannot reach production systems (trade-off: added pipeline complexity and latency). Consult the VulnCheck advisory for detection specifics.

Affected VersionsENISA

picklescan 0 <0.0.30

Affected Packages

pypi picklescan fix: 0.0.30

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 scanner that inspects Python pickle files for dangerous opcodes/callables before deserialization, commonly used to gate untrusted machine-learning models (PyTorch .pt/.bin, which are pickle-backed). The root cause is CWE-502 (Deserialization of Untrusted Data): Python's pickle executes objects' __reduce__ methods on load, which can name an arbitrary callable. picklescan maintains a denylist of dangerous callables, but it omitted idlelib.run.Executive.runcode - a method in the standard library's IDLE subprocess runner that compiles and executes a code string. A reduce payload referencing that callable therefore passes the scan while still executing on pickle.load. The CPE cpe:2.3:a:picklescan:picklescan:*:*:* confirms the scanner itself is the affected component; the actual code execution occurs in the downstream application (e.g., PyTorch) that deserializes the file.

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 model with no attacker privileges (PR:N) but a victim must load the file (UI:R); successful load yields arbitrary code execution, so C/I/A are High.

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 04, 2026 - 03:01 EUVD

DescriptionCVE.org

picklescan before 0.0.30 fails to detect malicious pickle files using idlelib.run.Executive.runcode in reduce methods. Attackers can embed undetected code in pickle files that executes during pickle.load, enabling remote code execution in PyTorch models and supply chain attacks.

Executive ViewAI

Why It Matters

picklescan, the security validation tool relied upon to verify PyTorch and ML model safety, contains a detection bypass (CVE-2025-71342) that permits attackers to hide executable code in model files, defeating the tool's core security function. Any organization using picklescan to vet third-party models faces immediate risk of remote code execution and supply-chain compromise through untrusted model artifacts. Leadership must treat this as a critical supply-chain security incident.

Business Impact: Severe
Compensating Controls

No vendor-released patch identified at time of analysis. Interim mitigations: (1) Execute third-party model loading only in isolated sandbox environments with resource constraints; (2) Enforce manual security review of Python pickle bytecode before any deployment; (3) Restrict model sources to internal, audited repositories only; (4) Implement logging and alerting for all model.load() operations; (5) Disable picklescan if operationally feasible and substitute with code review workflows until patch available.

Threat Intelligence Overview

EPSS Score
0.4%
Top 66% exploitable
Prevalence
Medium
popular but niche ML-security scanner for pickle/PyTorch model vetting
Social Media
3
Sightings
Data Quality
7 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment CIRCL GitHub VulDB

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
Out-of-Cycle
Exploitation
Poc
System Exposure· derived
Open
Automatable
No
Human Impact
Very 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.

Remote Code Execution represents the critical moment when an attacker successfully runs arbitrary code on a target system without physical access.

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