Description
picklescan before 0.0.28 fails to detect malicious torch.fx.experimental.symbolic_shapes.ShapeEnv.evaluate_guards_expression function calls in pickle files. Attackers can embed undetected code in pickle files that executes remote code when loaded by victims.
Published: 2026-07-04
Score: 7.6 High
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

picklescan versions prior to 0.0.28 fail to detect malicious calls to torch.fx.experimental.symbolic_shapes.ShapeEnv.evaluate_guards_expression embedded in pickle files. When such a pickle is loaded, the function is executed automatically, allowing an attacker to run arbitrary code on the host. This is a classic insecure deserialization flaw identified as CWE‑502, which can compromise confidentiality, integrity, and availability of the affected system.

Affected Systems

The affected product is picklescan, developed by mmaitre314. Versions earlier than 0.0.28 lack the mitigation for evaluating guard expressions during deserialization and are therefore vulnerable when they process untrusted pickle files.

Risk and Exploitability

The CVSS score of 7.6 indicates a high severity vulnerability, while the EPSS score of < 1% suggests a very low probability of exploitation at the time in CISA’s KEV catalog. The likely attack vector is that an attacker supplies a crafted pickle file containing a malicious ShapeEnv.evaluate_guards_expression call; a victim process that deserializes the file with picklescan will execute the embedded code, leading to remote code execution.

Generated by OpenCVE AI on July 21, 2026 at 08:56 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade picklescan to version 0.0.28 or later
  • Configure picklescan to reject or validate pickle files before processing, limiting trust to known safe objects
  • Replace pickle‑based deserialization with a safer serialization format or implement custom whitelisting if an upgrade is not immediately possible

Generated by OpenCVE AI on July 21, 2026 at 08:56 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Mon, 06 Jul 2026 15: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 02: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.28 fails to detect malicious torch.fx.experimental.symbolic_shapes.ShapeEnv.evaluate_guards_expression function calls in pickle files. Attackers can embed undetected code in pickle files that executes remote code when loaded by victims.
Title picklescan - Arbitrary Code Execution via torch.fx.experimental.symbolic_shapes.ShapeEnv.evaluate_guards_expression
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-06T15:03:48.468Z

Reserved: 2026-06-20T12:55:02.882Z

Link: CVE-2025-71356

cve-icon Vulnrichment

Updated: 2026-07-06T15:03:38.195Z

cve-icon NVD

No data.

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-07-21T09:00:03Z

Weaknesses
  • CWE-502

    Deserialization of Untrusted Data