Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessPublish malicious pickle model
-
ExploitVictim scans with picklescan <0.0.28 (evaded)
-
ExecutionLoad triggers reduce calling torch.utils.collect_env.run
-
ImpactExecute attacker shell commands in victim context
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 before 0.0.28 to vet pickle files, (b) trusts its clean verdict, and (c) subsequently deserializes the attacker-supplied pickle (e.g., via torch.load), with PyTorch installed so that torch.utils.collect_env.run is importable as the gadget. The crafted payload must place the malicious command inside a pickle reduce method referencing that specific function. Limiting factors per the CVSS 4.0 vector: passive user interaction is required (UI:P - the victim must obtain, scan, and load the file), and the attack requirement AT:P means the target must actually be running picklescan as its gate; PR:N means no prior authentication is needed. This is not exploitable against default configurations of arbitrary systems - it specifically targets pipelines that depend on vulnerable picklescan and then load the scanned file. |
| Impact | Signals are moderate and internally consistent. The vendor CVSS 4.0 vector (AV:N/AC:L/AT:P/PR:N/UI:P, VC:H/VI:H/VA:N) scores 7.6 and correctly captures that this is network-delivered and unauthenticated but gated by two real conditions: a passive user interaction (the victim must scan-then-load a file) and an attack requirement (AT:P) that the target actually routes untrusted pickles through picklescan and trusts its verdict. There is no EPSS value, no KEV listing, and no published POC in the provided data, so this is not evidence of widespread or automated exploitation. The realistic risk is a targeted supply-chain bypass: an attacker who can get a malicious model in front of a victim using a vulnerable picklescan version gains high confidentiality and integrity impact. Note one tension worth flagging - the vendor set VA:N (no availability impact), yet arbitrary command execution would ordinarily permit availability damage; treat the official 'no availability impact' as conservative scoping rather than a hard limit. Priority is elevated for ML/MLOps teams that use picklescan as their primary defense, and low for everyone else. |
| Exploit ScenarioDerived | An attacker publishes a PyTorch model to a public hub (or sends it directly) whose embedded pickle uses a reduce method calling torch.utils.collect_env.run with attacker-chosen shell commands. A victim running picklescan < 0.0.28 scans the file, receives a false 'safe' verdict, and proceeds to load it with torch.load - at which point the commands execute in the victim's context. No POC is referenced in the available data, but the technique is fully described in the VulnCheck advisory. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Jun 30, 2026
Malicious-pickle detection bypass in picklescan before 0.0.28 lets attackers smuggle remote-code-execution payloads past the scanner by hiding them in a pickle reduce method that invokes torch.utils.collect_env.run, which picklescan's blocklist failed to flag. Because picklescan is the gatekeeper many ML pipelines rely on to vet untrusted models (notably scanning Hugging Face artifacts), a 'clean' verdict on a weaponized file directly leads to command execution when the victim deserializes it. Reported by VulnCheck with a fix in 0.0.28; no public exploit identified at time of analysis and not listed in CISA KEV.
RemediationAI
Vendor-released patch: upgrade picklescan to 0.0.28 or later, which adds torch.utils.collect_env.run to the detected dangerous-callable set; pin this minimum in requirements/CI so older versions cannot be reintroduced (see https://github.com/mmaitre314/picklescan/security/advisories/GHSA-f745-w6jp-hpxx). Because this is a scanner-evasion bug rather than a flaw in the model loader, do not treat a picklescan 'clean' result from a pre-0.0.28 version as trustworthy. Until upgraded, compensating controls: prefer loading models in safetensors format instead of pickle (eliminates arbitrary-callable execution entirely, but requires re-exporting models); load untrusted pickles only with weights_only=True on supported PyTorch versions (blocks arbitrary global execution, though it rejects checkpoints that legitimately need non-tensor objects); and sandbox deserialization in a network-isolated, least-privilege container so a successful bypass cannot reach internal systems (adds operational overhead). Avoid relying on a second signature-based scanner alone, since the same allowlist-gap class can recur.
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 tool that statically inspects Python pickle files for dangerous opcodes and global references before they are loaded, acting as a safety check for ML model distribution formats (e.g., PyTorch .bin/.pt files, which embed pickles). The root cause is CWE-502 (Deserialization of Untrusted Data): Python's pickle executes a __reduce__/REDUCE callable on load, and picklescan maintains an allow/deny list of callables it considers dangerous. The torch.utils.collect_env.run helper - a thin wrapper that shells out to run system commands for environment diagnostics - was not on picklescan's dangerous-callable list, so a reduce method pointing at it slipped through scanning while still providing arbitrary command execution at unpickle time. The CPE cpe:2.3:a:picklescan:picklescan:*:*:*:*:*:*:*:* confirms the affected component is the picklescan package itself, not PyTorch; PyTorch is merely the source of the abused gadget function.
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 file requires the victim to scan-and-load it (UI:R) with no auth (PR:N); successful unpickling yields arbitrary command execution, so full C/I/A.
Primary rating from Vendor (VulnCheck).
CVSS VectorVendor: VulnCheck
Lifecycle Timeline
1DescriptionCVE.org
picklescan before 0.0.28 fails to detect malicious pickle files using torch.utils.collect_env.run function in reduce methods. Attackers can embed undetected code in pickle files that executes remote commands when loaded by victims.
Executive ViewAI
picklescan, a security scanner used by organizations to vet third-party machine learning models, has a bypass flaw allowing malicious code to evade detection and execute upon model deployment. This creates supply chain risk wherever untrusted models are ingested-compromised artifacts marked safe by the scanner can trigger remote code execution in production ML systems. No public exploit has been identified to date, but the vulnerability remains critical given picklescan's role as a security gate.
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-210386
GHSA-px3v-38wh-q34v
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB