Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessCraft pickle with idlelib.run.Executive.runcode reduce
-
DeliveryPublish poisoned model to hub/repo
-
ExploitVictim scans file, picklescan reports clean
-
ExecutionVictim calls torch.load/pickle.load
-
PersistPayload executes arbitrary code
-
ImpactRCE 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). |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – 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
Affected Packages
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
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
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.
Primary rating from Vendor (VulnCheck).
CVSS VectorVendor: VulnCheck
Lifecycle Timeline
1DescriptionCVE.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
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.
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
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.
What every action level means
SSVC AssessmentENISA
Priority Score
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.
Related Vulnerabilities in picklescan Malicious Pickle Detection Bypass
View all 16More in Picklescan
View allRemote code execution against users of picklescan versions prior to 1.0.4 is achievable by smuggling any blocked functio
An Improper Handling of Exceptional Conditions vulnerability in the ZIP archive scanning component of mmaitre314 pickles
A Protection Mechanism Failure vulnerability in mmaitre314 picklescan versions up to and including 0.0.30 allows a remot
An Improper Input Validation vulnerability in the scanning logic of mmaitre314 picklescan versions up to and including 0
Detection bypass in picklescan prior to 0.0.29 allows attackers to smuggle remote code execution payloads through pickle
Detection bypass in picklescan versions before 0.0.25 allows attackers to embed remote code execution payloads in pickle
Detection bypass in picklescan before 0.0.28 allows attackers to embed malicious torch.jit.unsupported_tensor_ops.execWr
Detection bypass in picklescan before 0.0.28 allows attackers to smuggle arbitrary code through pickle files by abusing
Detection bypass in picklescan before 0.0.29 allows malicious pickle files to evade scanning by abusing the undetected i
Detection bypass in picklescan versions before 0.0.30 allows malicious pickle files to evade security scanning by using
Detection bypass in picklescan versions prior to 0.0.29 allows attackers to smuggle arbitrary code execution payloads th
Detection bypass in picklescan before 0.0.33 allows attackers to smuggle arbitrary code through malicious pickle files b
EUVD-2025-210410
GHSA-j6fw-8849-4cxh
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB