picklescan
CVE-2026-3490
CRITICAL
Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
ReconCraft pickle with pkgutil.resolve_name STACK_GLOBAL
-
DeliveryPublish artifact to model hub or repo
-
ExploitVictim's pipeline runs picklescan 1.0.3 and reports CLEAN
-
InstallVictim torch.load or pickle.loads the artifact
-
C2First REDUCE resolves os.system reference
-
ExecuteSecond REDUCE executes attacker command
-
ImpactRCE in MLOps service account
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A06:2025 - Insecure Design
ASVS 5.0
V2 - Validation and Business Logic Strict input allowlisting
|
| Exploitation Conditions | Exploitation requires that the victim run picklescan version 1.0.3 or earlier as a gating control over an attacker-controlled pickle file and then unpickle (or otherwise execute) that file after picklescan reports it clean - picklescan itself does not execute the payload, it only fails to flag it. No authentication, no network listener on the victim, and no non-default picklescan configuration are needed: the default blocklist is what is bypassed. Limiting factors are that the attacker must deliver the pickle to a workflow that both scans AND loads it (typical ML model-ingestion pipelines, Hugging Face downloaders, CI artifact checks), and that environments which avoid pickle entirely (safetensors-only) or sandbox unpickling are not reachable through this bug. |
| Impact | Signals converge on a real, high-priority risk rather than a paper score. The CVSS 4.0 vector AV:N/AC:L/AT:N/PR:N/UI:N with VC/VI/VA/SC/SI/SA all High justifies the 10.0 rating: an attacker only needs to publish a malicious pickle (e.g. a model on a public hub) for the vulnerability to fire when picklescan greenlights it and a downstream consumer loads the artifact, and the downstream impact (arbitrary code execution in the consuming process) propagates to the subsequent system. The GHSA advisory ships a complete decompiled exploit, so publicly available exploit code effectively exists even though no CISA KEV listing or independent EPSS figure is provided in the input. The main caveat is that the vulnerability is a scanner false-negative rather than a remote service flaw: actual harm requires that a victim both scan AND subsequently unpickle the attacker-supplied file, which CVSS encodes as UI:N because the load is the normal next step in the workflow picklescan is meant to gate. KEV status and EPSS are absent from the provided data and should be re-checked before deprioritizing. |
| Exploit ScenarioDerived | An attacker uploads a malicious PyTorch model or pickle artifact to a public model hub; the target organization's MLOps pipeline runs picklescan 1.0.3 over the file and reports CLEAN because only pkgutil.resolve_name appears in the opcode stream. When the model is subsequently torch.loaded, the chained REDUCEs execute os.system('curl … | sh') in the training or inference container, giving the attacker code execution under the service account - the GHSA advisory publishes the exact two-REDUCE pickle template, so adapting it requires no novel research. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Jun 17, 2026
Remote code execution against users of picklescan versions prior to 1.0.4 is achievable by smuggling any blocked function past its scanner using pkgutil.resolve_name as an indirection primitive. Because pkgutil.resolve_name is not on the blocklist, an attacker can chain two REDUCE opcodes to resolve and invoke os.system, builtins.exec, subprocess.call, or any other dangerous function while the scanner reports the pickle as CLEAN - a universal blocklist bypass that defeats picklescan's entire safety premise. No public exploit is identified in CISA KEV, but the GHSA advisory authored by VulnCheck publishes a complete working technique, so weaponization is trivial.
RemediationAI
Upgrade picklescan to the vendor-released patched version 1.0.4 from PyPI (pip install --upgrade 'picklescan>=1.0.4'), which adds pkgutil.resolve_name (and related indirection primitives) to the blocklist - see https://github.com/mmaitre314/picklescan/security/advisories/GHSA-vvpj-8cmc-gx39 for advisory details. Until the upgrade is rolled out across all CI workers and scanning services, treat picklescan output on versions <=1.0.3 as unreliable: refuse to load pickles from untrusted sources regardless of scanner verdict, prefer non-pickle model formats such as safetensors which removes the arbitrary-code surface entirely, and if pickles must be loaded run them inside a sandbox (seccomp/firejail/dedicated container with no network and read-only filesystem). As a stopgap blocklist patch, organizations can fork or monkey-patch picklescan to add pkgutil.resolve_name, importlib.import_module, operator.attrgetter, and similar dynamic-resolution helpers to _unsafe_globals, accepting that this is a denylist that may still miss further indirection gadgets.
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 byte streams for references to dangerous callables by walking opcodes such as GLOBAL, INST, and STACK_GLOBAL and matching them against a blocklist (_unsafe_globals) of imports like os.system or subprocess.call. The Python standard-library helper pkgutil.resolve_name takes a 'module:attribute' string and returns the corresponding object at runtime, effectively performing a dynamic import; because it was not in picklescan's blocklist, a crafted pickle can push pkgutil.resolve_name via STACK_GLOBAL, REDUCE it with the string 'os:system' to obtain the real os.system object on the unpickler stack, and then REDUCE again to invoke it. picklescan only analyzes GLOBAL-style references and treats the second REDUCE's stack target as opaque data, mapping directly to CWE-183 (Permissive List of Allowed Inputs) - the blocklist is incomplete and contains no entry that ever needed to be invoked by name to reach the dangerous primitive. The affected component per CPE is cpe:2.3:a:picklescan:picklescan:*:*:*:*:*:*:*:* across all versions up to and including 1.0.3, distributed via PyPI/pip and frequently embedded in ML pipelines that vet model weights from sources such as Hugging Face.
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:H/SI:H/SA:H
Attacker delivers a malicious pickle over the network with no privileges or user interaction beyond the normal scan-then-load workflow; scope changes because the scanner's failure causes RCE in the consuming process, with full CIA impact.
Primary rating from Vendor (VulnCheck).
CVSS VectorVendor: VulnCheck
DescriptionCVE.org
picklescan before 1.0.4 fails to block pkgutil.resolve_name, allowing attackers to bypass the entire blocklist by resolving any dangerous function through indirect REDUCE calls. Remote attackers can invoke any blocked function such as os.system, builtins.exec, or subprocess.call to achieve remote code execution.
Executive ViewAI
picklescan, a critical validation library for Python data deserialization, cannot prevent code execution in versions before 1.0.4-publicly available exploit code exists. Organizations relying on this library face direct risk of remote system compromise when processing external data. Immediate action is required to contain the risk across all affected systems.
No vendor-released patch identified at time of analysis. Interim mitigations: disable pickle deserialization in non-critical applications; restrict pickle processing to data from verified internal sources only; execute pickle deserialization in isolated processes with minimal system privileges; implement strict input validation and source authentication; migrate to alternative serialization formats (JSON, Protocol Buffers, msgpack) where possible; segment network access to systems performing deserialization; establish enhanced monitoring for suspicious process execution in pickle processing 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.
Affected Products (CPE)CVE.org
More in Picklescan
View allAn 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
Detection bypass in picklescan before 0.0.29 allows attackers to craft malicious pickle files using idlelib.debugobj.Obj
GHSA-vvpj-8cmc-gx39
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB