---
id: CVE-2025-71356
title: >-
  picklescan before 0.0.28 fails to detect malicious
  torch.fx.experimental.symbolic_shapes.ShapeEnv.evaluate_guards_expression
  function calls in pickle files
summary: >-
  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 wh…
severity: high
cvss: 8.1
cvssVector: 'CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N'
cwe:
  - CWE-502
published: '2026-07-04'
updated: '2026-07-04'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2025-71356'
references:
  - url: >-
      https://github.com/mmaitre314/picklescan/security/advisories/GHSA-f4x7-rfwp-v3xw
    label: disclosure@vulncheck.com
  - url: >-
      https://www.vulncheck.com/advisories/picklescan-arbitrary-code-execution-via-torch-fx-experimental-symbolic-shapes-shapeenv-evaluate-guards-expression
    label: disclosure@vulncheck.com
tags:
  - nvd
epss: 0.00431
epssPercentile: 0.34753
ingestedAt: '2026-07-04T21:57:46.837Z'
---

## Overview

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.

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.
