Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessCraft pickle with GuardBuilder.get reduce gadget
-
DeliveryPublish or deliver model to victim
-
ExploitBypass pre-0.0.28 picklescan as clean
-
ExecutionVictim loads file via torch.load
-
ImpactReduce method executes arbitrary commands
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 (1) the victim environment uses picklescan before 0.0.28 as its vetting control, (2) the malicious pickle is crafted to invoke torch._dynamo.guards.GuardBuilder.get from within a reduce method so it evades detection, and (3) the victim subsequently deserializes the file in a PyTorch-enabled environment (the gadget is torch-specific). Limiting factors, consistent with the CVSS AT:P and UI:P metrics, are that a user must be induced to load the attacker-supplied artifact (passive user interaction) and PyTorch must be present; there is no authentication requirement (PR:N), but the flaw yields nothing on its own - it only enables a payload that already depends on the victim calling torch.load or an equivalent unsafe deserialization path. Environments that use safetensors, weights_only loading, or that do not rely on picklescan are not meaningfully exposed. |
| Impact | The supplied CVSS 4.0 vector (AV:N/AC:L/AT:P/PR:N/UI:P/VC:H/VI:H/VA:N, base 7.6) describes a network-delivered, unauthenticated issue that nonetheless requires an attack prerequisite (AT:P) and passive user interaction (UI:P) - the victim must load an attacker-supplied file, and the environment must both use PyTorch and rely on picklescan for vetting. That AT:P/UI:P combination is the key nuance: this is a trojaned-artifact / supply-chain scenario, not a self-propagating remote exploit, so raw severity overstates spray-and-pray risk. No EPSS score, SSVC decision, or KEV entry was provided; absence of KEV means no confirmed active exploitation, and no POC was indicated in the input. Because the vulnerability defeats a detection control rather than granting direct access, its true danger is amplified in organizations that treat a clean picklescan result as sufficient to trust a model - for them effective risk is high; for those using layered controls or safetensors it is lower. Note the impact metrics list VA:N even though arbitrary command execution typically threatens availability - treat the C/I focus as vendor scoping, not a guarantee that availability is unaffected. |
| Exploit ScenarioDerived | An attacker publishes a PyTorch model to a public hub or sends it to a target whose ingestion pipeline scans uploads with a pre-0.0.28 picklescan; the model's __reduce__ method routes through torch._dynamo.guards.GuardBuilder.get so the scanner marks it clean. When a data scientist or automated job later calls torch.load on the 'verified' file, the embedded payload runs arbitrary commands in that context. No public POC was indicated in the input, and the CVSS AT:P/UI:P metrics mean success hinges on the victim actually loading the file in a torch-enabled environment. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Jul 04, 2026
Detection bypass in picklescan before 0.0.28 lets attackers smuggle malicious pickle files past the scanner by abusing the torch._dynamo.guards.GuardBuilder.get gadget inside a __reduce__ method, so a file that picklescan reports as safe still executes arbitrary commands when deserialized (e.g. via torch.load). This undermines the security control that ML pipelines and model hubs rely on to vet untrusted model artifacts, turning a trusted-scan result into a false negative. Reported by VulnCheck with a vendor GHSA advisory; no public exploit identified at time of analysis and it is not listed in CISA KEV.
RemediationAI
Vendor-released patch: upgrade picklescan to 0.0.28 or later, which adds detection for the torch._dynamo.guards.GuardBuilder.get gadget; see GHSA-86cj-95qr-2p4f (https://github.com/mmaitre314/picklescan/security/advisories/GHSA-86cj-95qr-2p4f) and the VulnCheck writeup (https://www.vulncheck.com/advisories/picklescan-remote-code-execution-via-torch-dynamo-guards-guardbuilder-get). Because the flaw is a scanner blind spot rather than a runtime bug, the strongest compensating control is to stop treating pickle scanning as a sufficient trust boundary: prefer non-executable model formats such as safetensors (trade-off: requires re-exporting or converting existing checkpoints), and load untrusted PyTorch checkpoints with weights_only=True where feasible (trade-off: fails on checkpoints that legitimately pickle non-tensor objects). Additionally, load only models from trusted, integrity-verified sources using signing or hash allowlists, and deserialize untrusted artifacts in a sandboxed or network-isolated environment so a successful reduce-method callback cannot reach sensitive systems (trade-off: added pipeline complexity and latency).
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
The affected component (cpe:2.3:a:picklescan:picklescan) is a Python security scanner that statically inspects pickle opcode streams to flag dangerous callables before a model is deserialized. Python's pickle format (CWE-502, Deserialization of Untrusted Data) allows an object to define a __reduce__ method that returns a callable and arguments executed at load time; picklescan works by detecting known-dangerous callables in that stream. This flaw is a gadget-coverage gap: the torch._dynamo.guards.GuardBuilder.get function - part of PyTorch's Dynamo guard machinery - can be reached through a reduce method to obtain code execution, but picklescan's pre-0.0.28 detection logic did not recognize it as a dangerous import, so the crafted stream evades the allow/deny analysis. The actual code-execution primitive lives in PyTorch's deserialization path; picklescan's defect is failing to detect it.
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 malicious artifact but AC:H and UI:R because the victim must load it in a torch environment relying on picklescan; PR:N as no auth is needed, and full RCE gives C/I/A:H.
Primary rating from Vendor (VulnCheck).
CVSS VectorVendor: VulnCheck
Lifecycle Timeline
1DescriptionCVE.org
picklescan before 0.0.28 fails to detect malicious pickle files that exploit torch._dynamo.guards.GuardBuilder.get function in reduce methods. Attackers can craft pickle files with embedded code that evades picklescan detection and executes arbitrary commands when loaded.
Executive ViewAI
Picklescan, used widely to validate third-party machine learning models, contains a vulnerability that allows attackers to hide malicious code from detection. Models certified as safe by picklescan will execute arbitrary code when loaded into production systems. This exposes organizations to supply-chain compromise whenever they integrate external models without additional validation controls.
No vendor-released patch identified at time of analysis. Eliminate pickle-based deserialization by migrating to safer model formats (safetensors, ONNX, or non-Python serialization standards). Sandbox model loading in isolated containers or VMs with restricted filesystem and network access to contain code execution. Implement defense-in-depth: run picklescan alongside secondary validation tools (signature verification, static analysis, behavioral monitoring). Restrict model import access to authorized personnel and require cryptographic signatures and audit logs for all external artifacts. Monitor deserialization events and alert on suspicious model-loading patterns. For high-risk systems, disable external model loading until replacement controls are operational.
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.
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-210414
GHSA-chm9-4rm6-p4gf
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB