Skip to main content

picklescan CVE-2026-56315

| EUVDEUVD-2026-38437 CRITICAL
Incomplete List of Disallowed Inputs (CWE-184)
9.3
CVSS 4.0 · Vendor: VulnCheck
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Recon
    Identify target using picklescan ≤ 1.0.3
  2. Delivery
    Craft pickle invoking uuid._get_command_stdout
  3. Exploit
    Upload file to model hub or pipeline
  4. Install
    picklescan returns CLEAN verdict
  5. C2
    Victim calls pickle.loads on artifact
  6. Execute
    Subprocess executes attacker commands
  7. Impact
    Achieve RCE on loader host

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V2 - Validation and Business Logic Input validation completeness
Exploitation Conditions

Exploitation requires that a target system uses picklescan ≤ 1.0.3 as a safety gate before deserializing an attacker-supplied pickle file, and that the pickle is subsequently loaded by pickle.loads (or an equivalent framework call such as torch.load) in a process where shell/subprocess execution is possible. No authentication, user interaction, or non-default configuration is required on the picklescan side - the unblocked modules (uuid, _osx_support, _aix_support, _pyrepl.pager, imaplib, test.support.script_helper) are part of CPython's standard library and importable on all supported platforms. The practical limit is delivery: the attacker must get their pickle file accepted by the victim's ingestion workflow (model hub upload, shared dataset, CI artifact), and pipelines that never call pickle.loads on scanner-approved files are not impacted.

Impact

The CVSS 4.0 vector AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H reflects unauthenticated network-reachable exploitation with high impact on all CIA properties, which matches the underlying primitive: any consumer that scans then loads an attacker-supplied pickle is compromised. EPSS data is not provided and the CVE is not in CISA KEV, so there is no confirmed mass exploitation signal, but publicly available exploit code exists in the GHSA advisory (POC pickle generator and demonstrated RCE), making weaponization trivial. The real-world risk is elevated because picklescan is used as a security gate by HuggingFace Hub and other ML model registries, meaning the bypass directly undermines a control that downstream users believe is protecting them; this is a higher operational priority than the headline CVSS alone suggests for any pipeline that ingests third-party pickle/model files.

Exploit ScenarioDerived

An attacker uploads a malicious .pkl or PyTorch model file to a public model hub or sends it as a training artifact; the receiving pipeline runs picklescan ≤ 1.0.3, which returns 'No issues found' because the pickle's REDUCE opcode targets uuid._get_command_stdout or imaplib.IMAP4_stream rather than a blocked global. When a downstream user or CI job subsequently calls pickle.loads on the trusted-looking file, the unblocked function executes attacker-controlled shell commands as the loading process. The GHSA advisory publishes a working POC generator, so weaponization requires only minutes of effort.

Act Now Prioritize within 24-48h. Why: CRITICAL severity + public POC available.
Patch available 0.8% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Jun 23, 2026

Remote code execution in picklescan versions prior to 1.0.4 allows attackers to bypass the scanner's safety validation by crafting malicious pickle files that import unblocked Python standard library modules. The tool's blocklist (scanner.py _unsafe_globals) omits at least seven stdlib modules - including uuid, _osx_support, _aix_support, _pyrepl.pager, and imaplib - exposing eight functions that execute arbitrary commands via subprocess or os.system. Publicly available exploit code exists in the GHSA advisory, demonstrating CLEAN scan results for files that achieve full RCE on load; this is especially concerning because picklescan is relied on by HuggingFace Hub and similar ML pipelines.

RemediationAI

Vendor-released patch: upgrade picklescan to 1.0.4 or later via pip (pip install --upgrade picklescan>=1.0.4), which extends the _unsafe_globals blocklist to cover the missing stdlib modules - see https://github.com/mmaitre314/picklescan/security/advisories/GHSA-g38g-8gr9-h9xp for details. Until the upgrade is rolled out across all model-ingestion pipelines, treat picklescan CLEAN results as untrusted and require an additional control: load pickles only inside a sandbox with no outbound network and no shell, or convert third-party model weights to safetensors before loading to avoid pickle deserialization entirely. Operators of model registries (HuggingFace mirrors, internal ML platforms) should re-scan previously accepted pickle artifacts with 1.0.4 to catch files that passed earlier scans, accepting the trade-off of compute cost and potential false positives on legacy models.

Affected VersionsENISA

picklescan 0 <1.0.4

Affected Packages

pypi picklescan fix: 1.0.4

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 utility that statically inspects pickle files for dangerous global imports before deserialization, maintaining an allow/deny list of (module, attribute) pairs in scanner.py. The vulnerability is a classic CWE-184 (Incomplete List of Disallowed Inputs) flaw: the _unsafe_globals dictionary enumerates only ~60 known-dangerous entries and omits several stdlib helpers that themselves wrap subprocess.Popen, os.system, or shell=True invocations. Because pickle's reduce protocol can call any importable callable, an attacker only needs one omitted module-function pair (e.g., uuid._get_command_stdout, imaplib.IMAP4_stream, _pyrepl.pager.pipe_pager) to achieve code execution while the scanner reports zero issues. CPE cpe:2.3:a:picklescan:picklescan:*:*:*:*:*:*:*:* identifies the affected package across all versions ≤ 1.0.3.

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

Vendor (VulnCheck) PRIMARY 9.3 CRITICAL
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
vuln.today AI 9.8 CRITICAL

Malicious pickle delivered over the network bypasses scanner without auth or interaction and yields full code execution on the loader, so PR:N/UI:N and C/I/A:H.

3.1 AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
4.0 AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N

Primary rating from Vendor (VulnCheck).

CVSS VectorVendor: VulnCheck

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
None
Vulnerable system: Confidentiality
High
Vulnerable system: Integrity
High
Vulnerable system: Availability
High
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

Lifecycle Timeline

1
Patch available
Jun 23, 2026 - 14:17 EUVD

DescriptionCVE.org

picklescan before 1.0.4 fails to block at least seven Python standard library modules (including uuid, _osx_support, _aix_support, _pyrepl.pager, and imaplib) exposing eight functions that provide direct arbitrary command execution. Attackers can craft malicious pickle files importing these unblocked modules to achieve remote code execution while bypassing picklescan's safety validation entirely.

Executive ViewAI

Why It Matters

picklescan, a Python security tool relied upon by HuggingFace Hub and machine learning pipelines to validate untrusted pickle files, contains a critical remote code execution vulnerability (CVSS 9.3) that allows attackers to completely bypass its safety validation by crafting malicious pickle files that leverage unblocked standard library modules. Organizations using picklescan cannot rely on the scanner to detect weaponized models or dependencies, creating direct code execution risk in supply chain workflows.

Business Impact: Severe
Compensating Controls

No vendor-released patch identified at time of analysis. Interim mitigations: disable automatic pickle deserialization in ML pipelines; require manual code review and sandboxed execution (containers/VMs) for all untrusted pickle files; block outbound network connections from pickle processing systems; implement subprocess/os.system call monitoring and alerting; consider sunsetting pickle format in favor of safetensors (ML models), JSON, or protobuf for all new workflows.

Threat Intelligence Overview

EPSS Score
0.8%
Top 50% exploitable
Prevalence
Medium
niche security tool but embedded in HuggingFace Hub model scanning
Threat Intel
1
1 source
Exploit
POC
Public exploit code exists
Social Media
1
Sightings
Data Quality
5 sources
Confidence: Medium

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.

SignalValue
Severity CRITICAL
CISA KEV No
Public POC Yes
EPSS 0.8%
Patch available Yes
Active threat No
Deciding rule
CRITICAL severity + public POC available
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Out-of-Cycle
Exploitation
Poc
System Exposure· derived
Open
Automatable
Yes
Human Impact
Very High
Technical Impact
Total

Priority Score

67
Low Medium High Critical
KEV: 0
EPSS: +1
CVSS: +46
PoC: +20
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Remote Code Execution represents the critical moment when an attacker successfully runs arbitrary code on a target system without physical access.

CVE-2026-3490 CRITICAL POC
10.0 Jun 17

Remote code execution against users of picklescan versions prior to 1.0.4 is achievable by smuggling any blocked functio

CVE-2025-10156 CRITICAL POC
9.3 Sep 17

An Improper Handling of Exceptional Conditions vulnerability in the ZIP archive scanning component of mmaitre314 pickles

CVE-2025-10157 CRITICAL POC
9.3 Sep 17

A Protection Mechanism Failure vulnerability in mmaitre314 picklescan versions up to and including 0.0.30 allows a remot

CVE-2025-10155 CRITICAL POC
9.3 Sep 17

An Improper Input Validation vulnerability in the scanning logic of mmaitre314 picklescan versions up to and including 0

CVE-2025-71341 HIGH POC
7.6 Jun 23

Detection bypass in picklescan prior to 0.0.29 allows attackers to smuggle remote code execution payloads through pickle

CVE-2025-71351 HIGH POC
7.6 Jun 21

Detection bypass in picklescan versions before 0.0.25 allows attackers to embed remote code execution payloads in pickle

CVE-2025-71370 HIGH POC
7.6 Jun 23

Detection bypass in picklescan before 0.0.28 allows attackers to embed malicious torch.jit.unsupported_tensor_ops.execWr

CVE-2025-71348 HIGH POC
7.6 Jun 21

Detection bypass in picklescan before 0.0.28 allows attackers to smuggle arbitrary code through pickle files by abusing

CVE-2025-71361 HIGH POC
7.6 Jun 24

Detection bypass in picklescan before 0.0.29 allows malicious pickle files to evade scanning by abusing the undetected i

CVE-2025-71378 HIGH POC
7.6 Jun 21

Detection bypass in picklescan versions before 0.0.30 allows malicious pickle files to evade security scanning by using

CVE-2025-71376 HIGH POC
7.6 Jun 23

Detection bypass in picklescan versions prior to 0.0.29 allows attackers to smuggle arbitrary code execution payloads th

CVE-2025-71365 HIGH POC
7.6 Jun 23

Detection bypass in picklescan before 0.0.33 allows attackers to smuggle arbitrary code through malicious pickle files b

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy