Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessCraft pickle with cProfile.runctx __reduce__
-
DeliveryPublish file to model hub or send to victim
-
ExploitVictim scans file with picklescan (returns clean)
-
ExecutionVictim calls pickle.load/torch.load
-
PersistcProfile.runctx invokes exec() on payload
-
ImpactArbitrary code runs as victim 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 | The victim must (1) install picklescan at a version below 0.0.30, (2) actually use it to vet an attacker-supplied pickle/PyTorch file, and (3) subsequently deserialize that file via pickle.load() or torch.load() in the default (non-safetensors) mode. Limiting factors: requires user interaction (UI:P in the CVSS 4.0 vector), the attacker must be able to deliver the malicious pickle file (typically via a model hub, shared dataset, or supply-chain channel), and organizations that have already migrated to safetensors or that never trust third-party pickle files are not exposed. No special server configuration or authentication bypass is needed - the bypass is purely in the scanner's detection list. |
| Impact | The CVSS 4.0 vector (AV:N/AC:L/AT:P/PR:N/UI:P/VC:H/VI:H/VA:N) yields 7.6 (High) and correctly captures the realistic shape of the threat: network-distributable malicious files, no privileges required, but user interaction (loading the file) and a present attack requirement (the victim must rely on picklescan and then proceed to pickle.load). This is not a remote-code-execution-against-a-listening-service flaw - it is a defense-in-depth bypass in a security-scanning library, so real risk is concentrated in ML/MLOps pipelines that ingest third-party model files (Hugging Face mirrors, internal model registries, supply-chain artifacts). EPSS and KEV data were not provided in the input, so widespread opportunistic exploitation cannot be confirmed; however, the published PoC in the GHSA and the supply-chain attack surface in the PyTorch ecosystem make this a high-priority patch for ML platform teams even though it would be low priority for organizations that do not load untrusted pickle files. |
| Exploit ScenarioDerived | An attacker uploads a malicious PyTorch .bin/.pt model file to a public model hub or sends it directly to a victim ML engineer; the file's pickle stream contains a __reduce__ that returns (cProfile.runctx, ("__import__('os').system('whoami')", None, None)). The victim runs picklescan against the file, sees a clean report, and then loads it with torch.load()/pickle.load(), at which point arbitrary shell commands run under the victim's user context - exactly as demonstrated by the PoC published in the GHSA. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Jun 22, 2026
Detection bypass in picklescan versions before 0.0.30 allows malicious pickle files to evade security scanning by using cProfile.runctx in __reduce__ methods, leading to arbitrary code execution when the file is loaded via pickle.load(). The flaw undermines the core purpose of picklescan as a defensive tool for ML model security and was reported by VulnCheck with a published proof-of-concept in the GitHub Security Advisory. No public exploit identified at time of analysis as a weaponized in-the-wild attack, but PoC code is published in the GHSA.
RemediationAI
Vendor-released patch: upgrade picklescan to 0.0.30 or later (pip install --upgrade 'picklescan>=0.0.30'); the fix commit is https://github.com/mmaitre314/picklescan/commit/1931c2d04eaca8d20597705ff39cab78ba364e4b and is documented in the GHSA at https://github.com/mmaitre314/picklescan/security/advisories/GHSA-9w88-8rmg-7g2p. Where immediate upgrade is not possible, refuse to call pickle.load() on any file from an untrusted source regardless of picklescan's verdict, switch model loading to safer formats such as Safetensors (which side-steps pickle entirely at the cost of not supporting arbitrary Python objects), or sandbox model loading in an isolated container/process with no network or filesystem write privileges so any executed payload has minimal blast radius. Treat picklescan output as advisory only until upgraded, and audit any pickle files ingested between the introduction of cProfile.runctx-bearing payloads and the patch date.
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 library (cpe:2.3:a:picklescan:picklescan) designed to inspect pickle files - particularly within PyTorch model artifacts - for dangerous opcodes and function calls that would lead to code execution upon deserialization. The vulnerability is a classic CWE-502 (Deserialization of Untrusted Data) detection gap: picklescan maintains an allow/deny list of known dangerous callables (os.system, subprocess.Popen, eval, exec, etc.) invoked through pickle's __reduce__ protocol, but the built-in cProfile.runctx function was missing from this list. Because cProfile.runctx internally calls exec() on its first argument, an attacker can use it as a proxy to execute arbitrary code that the scanner never flags.
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 file is network-distributable (AV:N), exploitation is straightforward once delivered (AC:L), no auth required (PR:N), but the victim must load the file (UI:R); pickle RCE yields full C/I/A impact.
Primary rating from Vendor (VulnCheck).
CVSS VectorVendor: VulnCheck
Lifecycle Timeline
1DescriptionCVE.org
picklescan before 0.0.30 fails to detect cProfile.runctx function calls in pickle file reduce methods, allowing attackers to execute arbitrary code. Malicious pickle files bypass picklescan detection and execute remote code when loaded via pickle.load().
Executive ViewAI
Picklescan version 0.0.29 and earlier contains a detection bypass vulnerability enabling attackers to hide arbitrary Python code execution in pickle files that pass security scanning, directly undermining ML model validation controls. Organizations using picklescan to gate acceptance of externally-sourced machine learning models face compromise of untrusted model pipelines; publicly available proof-of-concept code demonstrates the bypass technique. Immediate upgrading to picklescan 0.0.30 is required to restore detection integrity for model security workflows.
Apply vendor patch. Vendor-released patch: picklescan version 0.0.30 or later. Interim: Implement manual security review and sandboxed execution testing of pickle files in isolated environments; disable picklescan as the sole validation gate until upgraded.
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.
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 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
Detection bypass in picklescan before 0.0.29 allows attackers to craft malicious pickle files using idlelib.debugobj.Obj
EUVD-2025-210294
GHSA-fcqg-3mwf-cfcf
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB