Skip to main content
EPSS 1.1%top 35%

PickleScan has multiple stdlib modules with direct RCE not in blocklist (CVE-2026-56315)

0
Critical
Published: 03/03/2026 (03/03/2026, 20:05:26 UTC)
Source: GCVE Database
Product: picklescan

Description

PickleScan version 1.0.3 and earlier do not block several Python standard library modules that enable direct remote code execution (RCE) when malicious pickle files import them. These modules include uuid, _osx_support, _aix_support, _pyrepl, imaplib, and test.support.script_helper. Malicious pickle files using these modules pass PickleScan's safety checks with zero issues detected, allowing arbitrary command execution upon unpickling. This affects all deployments relying on PickleScan, including the HuggingFace Hub. A fix is available to update the blocklist, but the vendor recommends architectural changes to use a default-deny allowlist approach instead.

CVSS v3.1

Score 9.8critical

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Affected software

PyPIghsa
picklescan
Affected versions
<1.0.4

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 09/24/2026, 07:00:45 UTC

Technical Analysis

PickleScan v1.0.3 and earlier fail to block at least eight Python standard library functions that provide direct arbitrary command execution or code evaluation. Malicious pickle files importing these modules are reported as clean by PickleScan, enabling remote code execution that bypasses the scanner entirely. The affected modules include uuid._get_command_stdout, _osx_support._read_output, _osx_support._find_build_tool, _aix_support._read_cmd_output, _pyrepl.pager.pipe_pager, _pyrepl.pager.tempfile_pager, imaplib.IMAP4_stream, and test.support.script_helper.assert_python_ok. All these functions invoke subprocess or os.system calls. The vulnerability affects all PickleScan versions up to and including 1.0.3. The vendor suggests adding these modules to the unsafe globals blocklist and recommends switching to a default-deny allowlist approach for better security.

Potential Impact

Any system using PickleScan for pickle safety validation is vulnerable to remote code execution via malicious pickle files that import the unblocked modules. This includes HuggingFace Hub, ML pipelines, and model registries relying on PickleScan. Attackers can upload malicious model files that pass all PickleScan checks and execute arbitrary code when loaded by users, leading to full system compromise. The CVSS score is 9.8 (critical), reflecting the high impact of direct RCE with no required privileges or user interaction.

Mitigation Recommendations

A patch is available that updates PickleScan's unsafe globals blocklist to include the affected modules. Users should upgrade to a fixed version beyond 1.0.3 once released. The vendor also recommends architectural changes such as switching to a default-deny allowlist for permitted globals and treating all unknown globals as dangerous by default. Until patched, relying solely on PickleScan for pickle safety validation is unsafe.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Gcve Source
db.gcve.eu
Osv Id
GHSA-g38g-8gr9-h9xp
Osv Schema Version
1.4.0
Aliases
["CVE-2026-56315"]
Ecosystems
["PyPI"]
Database Specific Severity
CRITICAL
Cvss Version
3.1

Threat ID: 6ab4be99f7a7c54106f0dfa8

Added to database: 09/24/2026, 06:09:29 UTC

Last enriched: 09/24/2026, 07:00:45 UTC

Last updated: 09/25/2026, 05:47:33 UTC

Views: 12

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses