Description
picklescan before 0.0.30 fails to detect malicious pickle files using idlelib.run.Executive.runcode in reduce methods. Attackers can embed undetected code in pickle files that executes during pickle.load, enabling remote code execution in PyTorch models and supply chain attacks.
Published: 2026-07-04
Score: 7.6 High
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

picklescan for Python loads serialized data using pickle.load and internally processes payloads with idlelib.run.Executive.runcode during reduce methods. The vulnerability allows an attacker to embed malicious code that is executed automatically when an unserialized pickle file is loaded, enabling arbitrary code execution in the context of the application. This flaw, classified as CWE‑502 (Deserialization of Untrusted Data), can be used to compromise systems that load PyTorch models or other data via picklescan, and can be exploited in supply chain attacks.

Affected Systems

The software affected is the Python package picklescan developed by mmaitre314. All releases prior to version 0.0.30 contain the issue; later releases do not have the defect.

Risk and Exploitability

The CVSS score of 7.6 indicates a high‑severity vulnerability, and the EPSS score below 1 % suggests that automated exploitation is currently uncommon. The vulnerability is not listed in CISA’s KEV catalog. An attacker would need to provide a crafted malicious pickle file to an application that uses picklescan for deserialization; the code executes with the privileges of the running process, making the attack vector a malicious file delivered to the target.

Generated by OpenCVE AI on August 1, 2026 at 19:53 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade picklescan to version 0.0.30 or later to apply the vendor‑supplied fix.
  • Configure the application to validate and reject any untrusted pickle files before they reach pickle.load, ensuring only known safe data is deserialized.
  • If an upgrade cannot be performed immediately, wrap picklescan’s deserialize call in a restricted sandbox or neutralize the use of idlelib.run.Executive.runcode within the reduce methods.

Generated by OpenCVE AI on August 1, 2026 at 19:53 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Mon, 06 Jul 2026 17:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

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


Sat, 04 Jul 2026 03:45:00 +0000

Type Values Removed Values Added
First Time appeared Picklescan
Picklescan picklescan
Vendors & Products Picklescan
Picklescan picklescan

Sat, 04 Jul 2026 01:45:00 +0000

Type Values Removed Values Added
Description picklescan before 0.0.30 fails to detect malicious pickle files using idlelib.run.Executive.runcode in reduce methods. Attackers can embed undetected code in pickle files that executes during pickle.load, enabling remote code execution in PyTorch models and supply chain attacks.
Title picklescan - Undetected Remote Code Execution via idlelib.run.Executive.runcode
First Time appeared Mmaitre314
Mmaitre314 picklescan
Weaknesses CWE-502
CPEs cpe:2.3:a:mmaitre314:picklescan:*:*:*:*:*:*:*:*
Vendors & Products Mmaitre314
Mmaitre314 picklescan
References
Metrics cvssV3_1

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

cvssV4_0

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


Subscriptions

Mmaitre314 Picklescan
Picklescan Picklescan
cve-icon MITRE

Status: PUBLISHED

Assigner: VulnCheck

Published:

Updated: 2026-07-06T16:28:15.247Z

Reserved: 2026-06-20T12:48:06.735Z

Link: CVE-2025-71342

cve-icon Vulnrichment

Updated: 2026-07-06T16:28:10.576Z

cve-icon NVD

Status : Deferred

Published: 2026-07-04T02:16:21.387

Modified: 2026-07-06T18:19:55.220

Link: CVE-2025-71342

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-08-01T20:00:07Z

Weaknesses
  • CWE-502

    Deserialization of Untrusted Data