Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessCraft malicious pickle via make_label reduce
-
DeliveryPublish to model hub/registry
-
ExploitVictim scans with picklescan <0.0.30, passes
-
ExecutionVictim calls pickle.load()
-
ImpactEmbedded command executes on host
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 victim uses picklescan before 0.0.30 as its detection mechanism AND subsequently deserializes the attacker-supplied pickle via pickle.load(); the malicious file must specifically abuse the lib2to3.pgen2.pgen.ParserGenerator.make_label callable in a reduce construct to evade the scanner. Limiting factors: it is a detection-bypass, so it only produces impact where picklescan is actually the trusted gate and the file is loaded afterward (UI:P - the user must scan and load), and it delivers no benefit against workflows that avoid pickle entirely or sandbox deserialization. No elevated privileges are needed by the attacker to craft or deliver the file (PR:N), but the attack requirement (AT:P) reflects the dependence on victim-side scan-then-load behavior rather than a purely opportunistic hit. |
| Impact | The supplied CVSS 4.0 vector (7.6, AV:N/AC:L/AT:P/PR:N/UI:P/VC:H/VI:H/VA:N) frames this as network-reachable and unauthenticated but gated by an attack requirement (AT:P) and passive user interaction (UI:P) - meaning a victim must actually scan and then load the attacker's pickle, which is the realistic path in ML model-sharing ecosystems. This is not a simple raw-CVSS-inflation case: the high integrity/confidentiality impact is real because success yields arbitrary command execution, but it is a security-control-bypass rather than a directly server-side RCE, so it only matters where picklescan is the gatekeeper and users trust its verdict. No EPSS score was provided in the input, there is no KEV listing, and no POC is asserted, so exploitation signals are currently theoretical/targeted rather than demonstrated at scale. Net priority: moderate-to-high for organizations that use picklescan as their sole pickle-vetting gate, lower for those with additional sandboxing or that never load untrusted models. |
| Exploit ScenarioDerived | An attacker publishes a machine-learning model containing a pickle whose __reduce__ routes through lib2to3.pgen2.pgen.ParserGenerator.make_label to invoke a shell command; a victim organization runs picklescan (pre-0.0.30) as its safety gate, gets a clean result, and proceeds to pickle.load() the model - at which point the embedded command runs with the loading process's privileges. Because network delivery is trivial via model hubs and the crafting technique is documented, the main barrier is convincing the victim to scan-then-load the file (UI:P/AT:P); no public weaponized exploit is identified at time of analysis. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Jul 04, 2026
Detection bypass in picklescan before 0.0.30 lets attackers smuggle malicious pickle files past the scanner by abusing lib2to3.pgen2.pgen.ParserGenerator.make_label as a reduce callable, so a file that picklescan clears still runs arbitrary commands when downstream code calls pickle.load(). picklescan is the security control itself - a static scanner used to vet ML model artifacts - so this weakness undermines the exact protection teams rely on to catch unsafe pickles. No public exploit identified at time of analysis and it is not on CISA KEV, but the technique is documented in VulnCheck and vendor advisories.
RemediationAI
Vendor-released patch: upgrade picklescan to 0.0.30 or later, which adds detection for the lib2to3.pgen2.pgen.ParserGenerator.make_label bypass; pin the dependency to >=0.0.30 across CI, model-registry, and inference pipelines and rebuild any images that vendor an older copy. Consult the maintainer advisory at https://github.com/mmaitre314/picklescan/security/advisories/GHSA-p9w7-82w4-7q8m and the VulnCheck writeup at https://www.vulncheck.com/advisories/picklescan-arbitrary-code-execution-via-lib2to3-pgen2-pgen-parsergenerator-make-label-detection-bypass for confirmation. Where immediate upgrade is not possible, do not treat a clean picklescan result as sufficient: prefer safetensors or other non-pickle formats for model weights (side effect: requires re-exporting models), load untrusted pickles only inside a network-isolated, least-privilege sandbox or container so a bypass yields no useful execution context (side effect: added deployment complexity), and restrict model ingestion to trusted/signed sources (side effect: slows onboarding of third-party 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 tool that statically inspects pickle opcode streams to flag dangerous globals/reduce callables before a model is deserialized, and is embedded in ML supply-chain workflows (notably around Hugging Face model loading). The root cause is CWE-502 (Deserialization of Untrusted Data): Python's pickle format permits arbitrary object reconstruction via the __reduce__ protocol, and picklescan maintains an allow/deny model of which callables are dangerous. Here the payload routes execution through lib2to3.pgen2.pgen.ParserGenerator.make_label - a function in the standard library's legacy 2to3 grammar-parsing machinery that was not on picklescan's malicious-callable list - so the malicious REDUCE reference evades the scanner's heuristics while remaining a live code path at unpickle time. The single CPE, cpe:2.3:a:picklescan:picklescan:*:*:*:*:*:*:*:*, confirms the flaw is in picklescan itself, not in a consuming application.
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, no attacker privileges (PR:N), but victim must scan-then-load (UI:R); successful bypass yields arbitrary command execution, so C/I/A all High.
Primary rating from Vendor (VulnCheck).
CVSS VectorVendor: VulnCheck
Lifecycle Timeline
1DescriptionCVE.org
picklescan before 0.0.30 fails to detect malicious pickle files that exploit lib2to3.pgen2.pgen.ParserGenerator.make_label function in the reduce method. Attackers can craft malicious pickle files with embedded code that evades detection but executes arbitrary commands when pickle.load() is called.
Executive ViewAI
A vulnerability in picklescan, the primary security scanner for vetting ML model artifacts, creates a blind spot that allows attacker-controlled models to enter production undetected. This directly threatens organizations' ability to maintain model supply chain integrity and creates exposure to code execution within ML environments and downstream integrated systems.
Until a patch is available: mandate code review of all code paths that deserialize models; restrict model loading to internally-controlled repositories; implement runtime monitoring for anomalous pickle deserialization; execute model loading operations in isolated or sandboxed environments; migrate applicable workloads to safer serialization formats such as SafeTensors or ONNX.
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.
Related Vulnerabilities in picklescan Malicious Pickle Detection Bypass
View all 16More 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-210411
GHSA-8f67-79jr-8vpr
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB