picklescan
CVE-2026-53874
CRITICAL
Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessCraft pickle with getattr-wrapped eval in __reduce__
-
DeliveryPublish to model hub or supply to victim
-
Exploitpicklescan < 1.0.1 returns clean verdict
-
ExecutionVictim calls pickle.load on trusted file
-
Persisteval executes embedded OS command
-
ImpactRCE under victim process privileges
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 a victim system (1) uses picklescan < 1.0.1 as a pre-load safety check and trusts a clean verdict, AND (2) subsequently deserializes the scanned pickle file via pickle.load/pickle.loads or an equivalent (torch.load, joblib.load) from an untrusted source. Limiting factors: picklescan is not itself a network service, so the 'AV:N' rating reflects that the malicious pickle traverses the network into the trust pipeline rather than that picklescan exposes a listener; if the consuming application does not actually load the pickle, or loads it in an isolated sandbox, RCE is contained. No authentication or user interaction beyond normal model/object ingestion is required. |
| Impact | The CVSS 4.0 vector AV:N/AC:L/AT:N/PR:N/UI:N with VC:H/VI:H/VA:H accurately captures the worst-case scenario: any pickle file loaded from an untrusted source after passing through picklescan can yield full RCE, and exploitation is trivial given the published PoC. However, the real-world risk is conditional rather than direct - an attacker does not exploit picklescan over the network; they exploit a downstream consumer (ML model hub user, API endpoint, CI pipeline) that trusts picklescan's verdict before calling pickle.load. EPSS and CISA KEV data were not supplied in the input, so prevalence of active exploitation cannot be confirmed; given that picklescan is widely used in the ML supply-chain ecosystem (Hugging Face, model zoos), the practical risk to organizations loading third-party pickles or PyTorch checkpoints is high even though direct network-facing exposure is technically zero. |
| Exploit ScenarioDerived | An attacker uploads a malicious PyTorch checkpoint or sklearn .pkl to a public model hub with a __reduce__ method returning an obfuscated_eval staticmethod that internally calls getattr(builtins, 'eval')(payload). A victim organization's CI pipeline runs picklescan as a safety gate, the scanner reports the file as clean because no direct eval/exec/os reference appears, and when a downstream service later calls pickle.load() the payload executes arbitrary OS commands under the service account; publicly available exploit code exists in the GHSA advisory. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Jun 17, 2026
Arbitrary code execution in picklescan versions prior to 1.0.1 allows attackers to bypass the scanner's malicious pickle detection by obfuscating eval calls nested under callable objects via getattr, causing the very tool intended to detect malicious pickles to miss them. Publicly available exploit code exists via the GHSA advisory PoC, though no public exploit identified at time of analysis as actively used in attacks; the CVSS 4.0 score of 9.3 reflects unauthenticated network-reachable impact on confidentiality, integrity, and availability.
RemediationAI
Vendor-released patch: upgrade picklescan to version 1.0.1 or later via pip (pip install --upgrade picklescan>=1.0.1); the fix landed in PR https://github.com/mmaitre314/picklescan/pull/59 and commit 173c8f2a869ea9b69b543477525ec70611c3c6f4. Until upgrade is possible, treat picklescan's clean verdict as advisory only and refuse to deserialize pickles from untrusted publishers, or switch model-loading code to safer formats such as safetensors for PyTorch weights (trade-off: requires re-saving models and may break compatibility with checkpoints that embed Python objects). As a hardening layer, run pickle.load in a sandboxed subprocess with seccomp/AppArmor restricting exec, network, and file writes - this contains RCE even if a scanner bypass succeeds but adds latency to model loading.
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 library (distributed via pip) designed to statically analyze pickle files for unsafe opcodes and dangerous imports such as builtins.eval, os.system, and subprocess calls before deserialization. The vulnerability is a CWE-502 (Deserialization of Untrusted Data) detection-bypass: the scanner's import/global-tracking logic only flags directly-referenced dangerous callables, so wrapping the call as getattr(builtins, 'eval')(payload) inside a static method referenced through __reduce__ hides the eval symbol from the scanner's allowlist/denylist checks while pickle.loads still resolves and invokes it at load time. The affected CPE is cpe:2.3:a:picklescan:picklescan:*:*:*:*:*:*:*:* covering all versions before 1.0.1.
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
Network-delivered malicious pickle reaches the victim with low complexity and no auth, but a user/process must load the pickle (UI:R); scope changes because picklescan's verdict is consumed by another component, and impact is full RCE.
Primary rating from Vendor (VulnCheck).
CVSS VectorVendor: VulnCheck
DescriptionCVE.org
picklescan before 1.0.1 contains an unsafe deserialization vulnerability allowing unauthenticated users to execute arbitrary code by hiding eval calls nested under callable objects via getattr. Attackers can embed malicious code in pickle files that evades detection but executes when the pickle is loaded from untrusted sources.
Executive ViewAI
picklescan versions prior to 1.0.1 contain a critical arbitrary code execution vulnerability (CVSS 9.3) with publicly available exploit code, allowing attackers to bypass the scanner's malicious pickle detection through obfuscated eval calls. Organizations using picklescan face immediate risk of unauthenticated remote code execution when processing untrusted serialized data. This vulnerability directly undermines the security purpose of the tool and requires urgent mitigation.
Implement network segmentation to isolate pickle processing systems; disable pickle.loads() and migrate to safer serialization formats (JSON, Protocol Buffers) where feasible; deploy intrusion detection signatures for suspicious eval/getattr patterns; implement cryptographic signing and verification for pickle files; restrict pickle processing to sandboxed environments with minimal privileges; conduct code review to eliminate unnecessary pickle usage.
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.
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
NVD
CVE.org
EPSS
Vulnrichment
GitHub
VulDB
Exploit-DB