CVE-2026-56315

picklescan - Remote Code Execution via Unblocked Standard Library Modules

Published Jun 23, 2026 CVSS 4.0 · 9.3 Critical EPSS 1.1% KEV · Not listed
Description
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.

Analysis

AI-generated

Technical impact

picklescan before 1.0.4 does not block at least seven Python standard library modules, exposing eight functions that allow arbitrary command execution; attackers can craft malicious pickle files that import these unblocked modules, achieving remote code execution while bypassing picklescan's safety validation entirely. This flaw is classified as CWE-184, representing an unrestricted reading of data that leads to code injection.

Affected Systems

The vulnerability affects picklescan by picklescan, specifically all versions older than 1.0.4. Systems running these earlier releases are exposed to user-supplied pickle deserialization that can execute arbitrary code.

Risk and Exploitability

The CVSS score is 9.3, indicating critical severity; EPSS information is currently unavailable, so the exact exploit likelihood is uncertain, and the vulnerability is not listed in the CISA KEV catalog. The attack vector involves sending crafted pickle payloads that import unblocked standard library modules, enabling remote code execution without triggering any safety checks. Because picklescan performs no additional validation, any process that calls picklescan with untrusted data is a potential entry point for exploitation.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Update picklescan to version 1.0.4 or later, which blocks the identified standard library modules and removes the execution vector.
  • If an immediate upgrade is not possible, refactor the application to eliminate unsafe pickle deserialization or enforce a strict whitelist that excludes the problematic modules.
  • Audit all code paths that import or load picklescan and verify that no untrusted pickle data is processed; consider using safer serialization methods such as JSON or protocol buffers where possible.

Generated by OpenCVE AI on June 23, 2026 at 13:24 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Github GHSA Github GHSA GHSA-g38g-8gr9-h9xp PickleScan has multiple stdlib modules with direct RCE not in blocklist
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'poc', 'Technical Impact': 'total'}, 'version': '2.0.3'}

Type Values Removed Values Added
Description 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.
Title picklescan - Remote Code Execution via Unblocked Standard Library Modules
First Time appeared Mmaitre314
Mmaitre314 picklescan
Weaknesses CWE-184
CPEs cpe:2.3:a:mmaitre314:picklescan:*:*:*:*:*:*:*:*
Vendors & Products Mmaitre314
Mmaitre314 picklescan
References
Metrics cvssV3_1

{'score': 9.8, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H'}

cvssV4_0

{'score': 9.3, 'vector': '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'}

Weaknesses
  • CWE-184

    Incomplete List of Disallowed Inputs

Sources

Status
PUBLISHED
Assigner
VulnCheck
Published
Updated
Jun 23, 2026, 1:16 PM
Reserved
Jun 20, 2026, 12:59 PM
Status
Deferred
Published
Jun 23, 2026, 1:16 PM
Modified
Jun 23, 2026, 2:52 PM