Skip to main content

picklescan EUVDEUVD-2025-210415

| CVE-2025-71356 HIGH
Deserialization of Untrusted Data (CWE-502)
2026-07-04 VulnCheck GHSA-gpmh-464g-j3r8
7.6
CVSS 4.0 · Vendor: VulnCheck
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Craft pickle invoking ShapeEnv.evaluate_guards_expression
  2. Delivery
    Publish/deliver malicious model file
  3. Exploit
    Bypass picklescan (<0.0.28) scan as clean
  4. Execution
    Victim unpickles trusted-looking model
  5. Impact
    Execute arbitrary code on victim host

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A08:2025 - Software or Data Integrity Failures
ASVS 5.0
V1 - Encoding and Sanitization Safe deserialization, type allowlists
MITRE ATT&CK

2 techniques across 2 tactics: Execution, Initial Access

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Exploitation requires that the victim uses picklescan (any version before 0.0.28) as their safety check on an untrusted pickle/model file AND then deserializes that file (UI:P), typically via PyTorch, so that the embedded torch.fx.experimental.symbolic_shapes.ShapeEnv.evaluate_guards_expression call runs. The specific technical prerequisite is a pickle crafted to invoke that exact function, which the pre-0.0.28 denylist does not recognize. Limiting factors: no code runs from scanning alone - the malicious file must actually be loaded/unpickled; the PyTorch (torch.fx) gadget must be importable in the victim's environment; and the attacker gains nothing against users who avoid pickles or use safetensors. There is no authentication requirement on the attacker side (PR:N) since the attack is delivered as a file, but exploitation is gated entirely on victim-side actions rather than a directly reachable service.

Impact

The supplied CVSS 4.0 vector (AV:N/AC:L/AT:P/PR:N/UI:P/VC:H/VI:H/VA:N, base 7.6) is internally consistent with a supply-chain scanner bypass: network delivery of a malicious model, no privileges, but two real dampeners - AT:P (a specific attack requirement, i.e. the victim must actually use picklescan as their gate and then unpickle the file) and UI:P (the victim must load the file). No EPSS score was provided, this CVE is not in CISA KEV, and no proof-of-concept is referenced, so all real-world-exploitation signals are absent - the risk is currently theoretical/technique-level rather than evidence of active campaigns. The nuance that raises priority despite this is that picklescan is a security control: its failure silently converts a 'scanned and clean' verdict into false assurance, which is exactly the kind of gap targeted attackers seeking ML supply-chain footholds would exploit. Net: patch-worthy for anyone relying on picklescan as a gate, but not an emergency drop-everything issue absent exploitation evidence.

Exploit ScenarioDerived

An attacker publishes a poisoned PyTorch model to a model hub or sends it to a victim who runs it through picklescan (< 0.0.28) first; the file embeds a ShapeEnv.evaluate_guards_expression call that the scanner does not flag, so the model is reported clean. When the victim subsequently loads the model with torch/pickle, the embedded code executes on their machine. No public proof-of-concept is referenced, and success requires the victim to both rely on picklescan and then deserialize the file (UI:P/AT:P).

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.3% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Jul 04, 2026

Security scanner bypass in picklescan before 0.0.28 allows attackers to smuggle arbitrary code past the tool's malware detection by abusing torch.fx.experimental.symbolic_shapes.ShapeEnv.evaluate_guards_expression, which is not on picklescan's dangerous-globals blocklist. Because picklescan is a defensive tool used to vet untrusted ML pickle files (notably in the Hugging Face ecosystem), a bypass causes a malicious model to be marked safe and then execute remote code when the victim deserializes it. There is no public exploit identified at time of analysis and this CVE is not listed in CISA KEV, but the technique is fully described in the VulnCheck advisory.

RemediationAI

Upgrade picklescan to version 0.0.28 or later, which adds detection for the torch.fx.experimental.symbolic_shapes.ShapeEnv.evaluate_guards_expression gadget (Vendor-released patch: 0.0.28); see GHSA-f4x7-rfwp-v3xw. Because this is a denylist-completeness bug, treat picklescan's verdict as advisory rather than authoritative: where feasible, avoid loading untrusted pickles entirely and prefer non-executable serialization such as safetensors for model weights, which eliminates the deserialization code-execution class rather than merely scanning for it. As compensating controls until every scanning host is upgraded, unpickle untrusted files only inside a sandboxed/network-isolated process with least privilege so that a bypass yields no useful execution context, and quarantine or re-scan already-ingested models that passed an older picklescan version - the trade-off is added pipeline latency and, for safetensors migration, re-exporting existing model artifacts.

Affected VersionsENISA

picklescan 0 <0.0.28

Affected Packages

pypi picklescan fix: 0.0.28

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in pypi

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

picklescan is a Python static-analysis utility that inspects Python pickle streams for references to dangerous callables (globals) before a user unpickles an untrusted file, a common defense for machine-learning model files (.pt/.bin/.pkl) that are natively pickle-serialized. CWE-502 (Deserialization of Untrusted Data) is the root class: Python's pickle can invoke arbitrary importable callables during load via REDUCE/GLOBAL opcodes. picklescan works from a denylist of known-dangerous functions, and this flaw is a denylist gap - torch.fx.experimental.symbolic_shapes.ShapeEnv.evaluate_guards_expression evaluates attacker-controllable expressions but was not recognized as dangerous, so pickles invoking it pass the scan yet still achieve code execution when loaded through PyTorch. The affected component is picklescan itself (cpe:2.3:a:picklescan:picklescan), not PyTorch; PyTorch is merely the vehicle supplying the abusable gadget.

Know when Picklescan gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (VulnCheck) PRIMARY 7.6 HIGH
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
vuln.today AI 6.8 MEDIUM

Network-delivered malicious file with high confidentiality/integrity impact, but AC:H and UI:R because success depends on the victim relying on picklescan and then unpickling the file.

3.1 AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:N
4.0 AV:N/AC:L/AT:P/PR:N/UI:P/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N

Primary rating from Vendor (VulnCheck).

CVSS VectorVendor: VulnCheck

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
Present
Privileges Required
None
User Interaction
Passive
Vulnerable system: Confidentiality
High
Vulnerable system: Integrity
High
Vulnerable system: Availability
None
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

Lifecycle Timeline

1
Patch available
Jul 04, 2026 - 03:01 EUVD

DescriptionCVE.org

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.

Executive ViewAI

Why It Matters

Picklescan, a defensive security tool widely used to vet untrusted ML models in the Hugging Face ecosystem and beyond, contains a bypass vulnerability allowing attackers to smuggle malicious code past detection. Models crafted to exploit this bypass will be marked safe by picklescan but execute remote code when deserialized, converting a security control into a supply-chain attack vector. Organizations using picklescan as a primary security gate for external model validation require immediate compensating measures.

Business Impact: High
Compensating Controls

No vendor-released patch identified at time of analysis. Interim mitigations: disable picklescan for untrusted external models; substitute with manual pickle file inspection or alternative scanning tools; require sandboxed evaluation environments for external models before production use; establish strict source-verification policies for ML model acquisition; implement network segmentation to limit RCE lateral movement; monitor ML inference pipeline executions for anomalous behavior and unauthorized network connections.

Threat Intelligence Overview

EPSS Score
0.3%
Top 78% exploitable
Prevalence
Medium
pickle-scanning library used across the ML model supply-chain ecosystem
Social Media
2
Sightings
Data Quality
7 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment CIRCL GitHub VulDB

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.3%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Scheduled
Exploitation
Poc
System Exposure· derived
Open
Automatable
No
Human Impact
High
Technical Impact
Total

Priority Score

38
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +38
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Insecure deserialization occurs when an application converts serialized data (a stream of bytes representing an object's state) back into a living object without proper validation.

CVE-2026-3490 CRITICAL POC
10.0 Jun 17

Remote code execution against users of picklescan versions prior to 1.0.4 is achievable by smuggling any blocked functio

CVE-2025-10156 CRITICAL POC
9.3 Sep 17

An Improper Handling of Exceptional Conditions vulnerability in the ZIP archive scanning component of mmaitre314 pickles

CVE-2025-10157 CRITICAL POC
9.3 Sep 17

A Protection Mechanism Failure vulnerability in mmaitre314 picklescan versions up to and including 0.0.30 allows a remot

CVE-2025-10155 CRITICAL POC
9.3 Sep 17

An Improper Input Validation vulnerability in the scanning logic of mmaitre314 picklescan versions up to and including 0

CVE-2025-71341 HIGH POC
7.6 Jun 23

Detection bypass in picklescan prior to 0.0.29 allows attackers to smuggle remote code execution payloads through pickle

CVE-2025-71351 HIGH POC
7.6 Jun 21

Detection bypass in picklescan versions before 0.0.25 allows attackers to embed remote code execution payloads in pickle

CVE-2025-71370 HIGH POC
7.6 Jun 23

Detection bypass in picklescan before 0.0.28 allows attackers to embed malicious torch.jit.unsupported_tensor_ops.execWr

CVE-2025-71348 HIGH POC
7.6 Jun 21

Detection bypass in picklescan before 0.0.28 allows attackers to smuggle arbitrary code through pickle files by abusing

CVE-2025-71361 HIGH POC
7.6 Jun 24

Detection bypass in picklescan before 0.0.29 allows malicious pickle files to evade scanning by abusing the undetected i

CVE-2025-71378 HIGH POC
7.6 Jun 21

Detection bypass in picklescan versions before 0.0.30 allows malicious pickle files to evade security scanning by using

CVE-2025-71376 HIGH POC
7.6 Jun 23

Detection bypass in picklescan versions prior to 0.0.29 allows attackers to smuggle arbitrary code execution payloads th

CVE-2025-71365 HIGH POC
7.6 Jun 23

Detection bypass in picklescan before 0.0.33 allows attackers to smuggle arbitrary code through malicious pickle files b

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy