Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessCraft pickle with trace.Trace.run reduce
-
DeliveryPublish as trusted model file
-
ExploitVictim scans with vulnerable picklescan
-
ExecutionScanner reports file safe
-
PersistVictim calls pickle.load
-
ImpactArbitrary code executes in victim process
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 use a vulnerable picklescan version (before 0.0.29) as a trust gate AND subsequently deserialize the file with pickle.load (or an equivalent pickle-based loader) - the scanner bypass alone is inert without a downstream unpickle. The specific trigger is a pickle file whose __reduce__ method references the standard-library trace.Trace.run callable, which picklescan fails to flag. Limiting factors: the CVSS vector specifies UI:P (passive user interaction) and AT:P (an attack requirement), meaning a victim must actually load/process the crafted file and the attacker must get that file into the victim's scanning-then-loading workflow (e.g., via a malicious shared model); it is not a remotely reachable service exploit. Environments that avoid pickle.load on untrusted data, or that do not rely on picklescan as the sole control, are not realistically exploitable. |
| Impact | The CVSS 4.0 base score is 7.6 (High) with vector AV:N/AC:L/AT:P/PR:N/UI:P/VC:H/VI:H/VA:N, indicating network-delivered, low-complexity, unauthenticated abuse but gated by both an attack requirement (AT:P) and passive user interaction (UI:P) - the victim must actually load/process the malicious file under a false sense of safety, and confidentiality/integrity impact is High while availability is unaffected. No EPSS score, KEV listing, or POC was provided in the input, so there is no evidence of active exploitation or published exploit code at this time. The realistic risk is moderate and contextual: this is not a directly server-side RCE but a scanner-evasion flaw, so impact depends on whether picklescan is a trusted gate in a pipeline that subsequently unpickles the file. Where picklescan is the sole control before loading untrusted models, the effective risk rises to full code execution; where additional sandboxing exists, it is mitigated. The signals are internally consistent (UI required, no confirmed exploitation), so prioritize patching but treat widespread automated exploitation as currently unproven. |
| Exploit ScenarioDerived | An attacker publishes a malicious ML model to a public hub with a pickle whose __reduce__ invokes trace.Trace.run to run attacker-chosen code. A victim's pipeline scans it with a pre-0.0.29 picklescan, receives a 'safe' verdict, and then calls pickle.load (or a framework loader), executing the attacker's code with the victim process's privileges. No public exploit was provided in the input, but the technique is straightforward given the documented reduce-method abuse. |
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.29 lets attackers smuggle arbitrary code execution payloads past the scanner by abusing the built-in trace.Trace.run function inside a pickle's __reduce__ method. Because picklescan does not flag trace.Trace.run as a dangerous global, a crafted model/pickle file is reported as safe yet executes arbitrary code when later deserialized via pickle.load. No public exploit identified at time of analysis; this is a classic deny-list gap in a security scanner that defenders rely on to gate untrusted ML artifacts.
RemediationAI
Vendor-released patch: upgrade picklescan to version 0.0.29 or later, which adds trace.Trace.run to the dangerous-globals detection set (see GHSA-5qwp-399c-mjwf and the VulnCheck advisory linked above). As a compensating control where immediate upgrade is not possible, do not treat a clean picklescan result from an old version as authoritative: avoid pickle.load on any untrusted or third-party model file, and prefer safer serialization formats such as safetensors for ML weights, which trade some flexibility for eliminating arbitrary-code execution. Additionally, unpickle untrusted artifacts only inside a sandboxed, network-restricted, least-privilege environment so that a bypass does not translate into host compromise; the trade-off is added pipeline complexity and the loss of pickle's convenience for arbitrary Python objects.
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 security tool that statically inspects pickle (and pickle-based ML model) files for references to dangerous callables before they are unpickled, and is used in ML supply-chain workflows to screen untrusted models. Python's pickle format is inherently code-executing: the __reduce__ protocol lets an object specify a callable and arguments invoked at load time, which is the basis of CWE-502 (Deserialization of Untrusted Data). picklescan defends against this by matching imported globals against a blocklist of known-dangerous functions (os.system, eval, etc.). The root cause here is an incomplete blocklist: the standard-library trace.Trace.run callable, which executes a passed code/command string, was not enumerated as dangerous, so an attacker placing trace.Trace.run in the reduce tuple slips through undetected while still yielding execution on pickle.load. The CPE cpe:2.3:a:picklescan:picklescan:*:*:* confirms the affected component is picklescan itself across all versions prior to the fix.
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 with no privileges but requiring the victim to load it (UI:R); arbitrary code execution gives C:H/I:H, with no direct availability impact and unchanged scope.
Primary rating from Vendor (VulnCheck).
CVSS VectorVendor: VulnCheck
Lifecycle Timeline
1DescriptionCVE.org
picklescan before 0.0.29 fails to detect the built-in trace.Trace.run function when analyzing pickle files, allowing attackers to embed undetected malicious code. Remote attackers can craft malicious pickle files using trace.Trace.run in the reduce method to achieve arbitrary code execution when pickle.load processes the file.
Executive ViewAI
picklescan, a widely-deployed security scanner for validating untrusted machine learning artifacts, contains a bypass flaw that allows attackers to smuggle arbitrary code execution through pickle files that the scanner incorrectly reports as safe. Organizations relying on picklescan as a control to gate model deployment face direct risk of remote code execution if an attacker supplies a crafted model.
No vendor-released patch identified at time of analysis. Interim mitigations: (1) Load pickle files only in isolated sandbox environments with no network access; (2) Supplement picklescan validation with additional static analysis or binary inspection of model files; (3) Enforce model source allowlisting and disable deserialization of untrusted or unfamiliar model architectures; (4) Monitor model execution for unexpected system calls or process spawning; (5) Consider disabling pickle-based model loading in favor of safer serialization formats (ONNX, SavedModel) where feasible.
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 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-210385
GHSA-3cjr-683m-5fxh
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB