Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
ReconIdentify target using picklescan ≤ 1.0.3
-
DeliveryCraft pickle invoking uuid._get_command_stdout
-
ExploitUpload file to model hub or pipeline
-
Installpicklescan returns CLEAN verdict
-
C2Victim calls pickle.loads on artifact
-
ExecuteSubprocess executes attacker commands
-
ImpactAchieve RCE on loader host
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V2 - Validation and Business Logic Input validation completeness
|
| Exploitation Conditions | Exploitation requires that a target system uses picklescan ≤ 1.0.3 as a safety gate before deserializing an attacker-supplied pickle file, and that the pickle is subsequently loaded by pickle.loads (or an equivalent framework call such as torch.load) in a process where shell/subprocess execution is possible. No authentication, user interaction, or non-default configuration is required on the picklescan side - the unblocked modules (uuid, _osx_support, _aix_support, _pyrepl.pager, imaplib, test.support.script_helper) are part of CPython's standard library and importable on all supported platforms. The practical limit is delivery: the attacker must get their pickle file accepted by the victim's ingestion workflow (model hub upload, shared dataset, CI artifact), and pipelines that never call pickle.loads on scanner-approved files are not impacted. |
| Impact | The CVSS 4.0 vector AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H reflects unauthenticated network-reachable exploitation with high impact on all CIA properties, which matches the underlying primitive: any consumer that scans then loads an attacker-supplied pickle is compromised. EPSS data is not provided and the CVE is not in CISA KEV, so there is no confirmed mass exploitation signal, but publicly available exploit code exists in the GHSA advisory (POC pickle generator and demonstrated RCE), making weaponization trivial. The real-world risk is elevated because picklescan is used as a security gate by HuggingFace Hub and other ML model registries, meaning the bypass directly undermines a control that downstream users believe is protecting them; this is a higher operational priority than the headline CVSS alone suggests for any pipeline that ingests third-party pickle/model files. |
| Exploit ScenarioDerived | An attacker uploads a malicious .pkl or PyTorch model file to a public model hub or sends it as a training artifact; the receiving pipeline runs picklescan ≤ 1.0.3, which returns 'No issues found' because the pickle's REDUCE opcode targets uuid._get_command_stdout or imaplib.IMAP4_stream rather than a blocked global. When a downstream user or CI job subsequently calls pickle.loads on the trusted-looking file, the unblocked function executes attacker-controlled shell commands as the loading process. The GHSA advisory publishes a working POC generator, so weaponization requires only minutes of effort. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Jun 23, 2026
Remote code execution in picklescan versions prior to 1.0.4 allows attackers to bypass the scanner's safety validation by crafting malicious pickle files that import unblocked Python standard library modules. The tool's blocklist (scanner.py _unsafe_globals) omits at least seven stdlib modules - including uuid, _osx_support, _aix_support, _pyrepl.pager, and imaplib - exposing eight functions that execute arbitrary commands via subprocess or os.system. Publicly available exploit code exists in the GHSA advisory, demonstrating CLEAN scan results for files that achieve full RCE on load; this is especially concerning because picklescan is relied on by HuggingFace Hub and similar ML pipelines.
RemediationAI
Vendor-released patch: upgrade picklescan to 1.0.4 or later via pip (pip install --upgrade picklescan>=1.0.4), which extends the _unsafe_globals blocklist to cover the missing stdlib modules - see https://github.com/mmaitre314/picklescan/security/advisories/GHSA-g38g-8gr9-h9xp for details. Until the upgrade is rolled out across all model-ingestion pipelines, treat picklescan CLEAN results as untrusted and require an additional control: load pickles only inside a sandbox with no outbound network and no shell, or convert third-party model weights to safetensors before loading to avoid pickle deserialization entirely. Operators of model registries (HuggingFace mirrors, internal ML platforms) should re-scan previously accepted pickle artifacts with 1.0.4 to catch files that passed earlier scans, accepting the trade-off of compute cost and potential false positives on legacy models.
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 utility that statically inspects pickle files for dangerous global imports before deserialization, maintaining an allow/deny list of (module, attribute) pairs in scanner.py. The vulnerability is a classic CWE-184 (Incomplete List of Disallowed Inputs) flaw: the _unsafe_globals dictionary enumerates only ~60 known-dangerous entries and omits several stdlib helpers that themselves wrap subprocess.Popen, os.system, or shell=True invocations. Because pickle's reduce protocol can call any importable callable, an attacker only needs one omitted module-function pair (e.g., uuid._get_command_stdout, imaplib.IMAP4_stream, _pyrepl.pager.pipe_pager) to achieve code execution while the scanner reports zero issues. CPE cpe:2.3:a:picklescan:picklescan:*:*:*:*:*:*:*:* identifies the affected package across all versions ≤ 1.0.3.
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:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
Malicious pickle delivered over the network bypasses scanner without auth or interaction and yields full code execution on the loader, so PR:N/UI:N and C/I/A:H.
Primary rating from Vendor (VulnCheck).
CVSS VectorVendor: VulnCheck
Lifecycle Timeline
1DescriptionCVE.org
picklescan before 1.0.4 fails to block at least seven Python standard library modules (including uuid, _osx_support, _aix_support, _pyrepl.pager, and imaplib) exposing eight functions that provide direct arbitrary command execution. Attackers can craft malicious pickle files importing these unblocked modules to achieve remote code execution while bypassing picklescan's safety validation entirely.
Articles & Coverage 1
Executive ViewAI
picklescan, a Python security tool relied upon by HuggingFace Hub and machine learning pipelines to validate untrusted pickle files, contains a critical remote code execution vulnerability (CVSS 9.3) that allows attackers to completely bypass its safety validation by crafting malicious pickle files that leverage unblocked standard library modules. Organizations using picklescan cannot rely on the scanner to detect weaponized models or dependencies, creating direct code execution risk in supply chain workflows.
No vendor-released patch identified at time of analysis. Interim mitigations: disable automatic pickle deserialization in ML pipelines; require manual code review and sandboxed execution (containers/VMs) for all untrusted pickle files; block outbound network connections from pickle processing systems; implement subprocess/os.system call monitoring and alerting; consider sunsetting pickle format in favor of safetensors (ML models), JSON, or protobuf for all new workflows.
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
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-2026-38437
GHSA-g7vj-qw6x-g3p8
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB