Skip to main content

picklescan CVE-2025-71353

| EUVDEUVD-2025-210414 HIGH
Deserialization of Untrusted Data (CWE-502)
2026-07-04 VulnCheck GHSA-chm9-4rm6-p4gf
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 with GuardBuilder.get reduce gadget
  2. Delivery
    Publish or deliver model to victim
  3. Exploit
    Bypass pre-0.0.28 picklescan as clean
  4. Execution
    Victim loads file via torch.load
  5. Impact
    Reduce method executes arbitrary commands

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 (1) the victim environment uses picklescan before 0.0.28 as its vetting control, (2) the malicious pickle is crafted to invoke torch._dynamo.guards.GuardBuilder.get from within a reduce method so it evades detection, and (3) the victim subsequently deserializes the file in a PyTorch-enabled environment (the gadget is torch-specific). Limiting factors, consistent with the CVSS AT:P and UI:P metrics, are that a user must be induced to load the attacker-supplied artifact (passive user interaction) and PyTorch must be present; there is no authentication requirement (PR:N), but the flaw yields nothing on its own - it only enables a payload that already depends on the victim calling torch.load or an equivalent unsafe deserialization path. Environments that use safetensors, weights_only loading, or that do not rely on picklescan are not meaningfully exposed.

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) describes a network-delivered, unauthenticated issue that nonetheless requires an attack prerequisite (AT:P) and passive user interaction (UI:P) - the victim must load an attacker-supplied file, and the environment must both use PyTorch and rely on picklescan for vetting. That AT:P/UI:P combination is the key nuance: this is a trojaned-artifact / supply-chain scenario, not a self-propagating remote exploit, so raw severity overstates spray-and-pray risk. No EPSS score, SSVC decision, or KEV entry was provided; absence of KEV means no confirmed active exploitation, and no POC was indicated in the input. Because the vulnerability defeats a detection control rather than granting direct access, its true danger is amplified in organizations that treat a clean picklescan result as sufficient to trust a model - for them effective risk is high; for those using layered controls or safetensors it is lower. Note the impact metrics list VA:N even though arbitrary command execution typically threatens availability - treat the C/I focus as vendor scoping, not a guarantee that availability is unaffected.

Exploit ScenarioDerived

An attacker publishes a PyTorch model to a public hub or sends it to a target whose ingestion pipeline scans uploads with a pre-0.0.28 picklescan; the model's __reduce__ method routes through torch._dynamo.guards.GuardBuilder.get so the scanner marks it clean. When a data scientist or automated job later calls torch.load on the 'verified' file, the embedded payload runs arbitrary commands in that context. No public POC was indicated in the input, and the CVSS AT:P/UI:P metrics mean success hinges on the victim actually loading the file in a torch-enabled environment.

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

Detection bypass in picklescan before 0.0.28 lets attackers smuggle malicious pickle files past the scanner by abusing the torch._dynamo.guards.GuardBuilder.get gadget inside a __reduce__ method, so a file that picklescan reports as safe still executes arbitrary commands when deserialized (e.g. via torch.load). This undermines the security control that ML pipelines and model hubs rely on to vet untrusted model artifacts, turning a trusted-scan result into a false negative. Reported by VulnCheck with a vendor GHSA advisory; no public exploit identified at time of analysis and it is not listed in CISA KEV.

RemediationAI

Vendor-released patch: upgrade picklescan to 0.0.28 or later, which adds detection for the torch._dynamo.guards.GuardBuilder.get gadget; see GHSA-86cj-95qr-2p4f (https://github.com/mmaitre314/picklescan/security/advisories/GHSA-86cj-95qr-2p4f) and the VulnCheck writeup (https://www.vulncheck.com/advisories/picklescan-remote-code-execution-via-torch-dynamo-guards-guardbuilder-get). Because the flaw is a scanner blind spot rather than a runtime bug, the strongest compensating control is to stop treating pickle scanning as a sufficient trust boundary: prefer non-executable model formats such as safetensors (trade-off: requires re-exporting or converting existing checkpoints), and load untrusted PyTorch checkpoints with weights_only=True where feasible (trade-off: fails on checkpoints that legitimately pickle non-tensor objects). Additionally, load only models from trusted, integrity-verified sources using signing or hash allowlists, and deserialize untrusted artifacts in a sandboxed or network-isolated environment so a successful reduce-method callback cannot reach sensitive systems (trade-off: added pipeline complexity and latency).

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

The affected component (cpe:2.3:a:picklescan:picklescan) is a Python security scanner that statically inspects pickle opcode streams to flag dangerous callables before a model is deserialized. Python's pickle format (CWE-502, Deserialization of Untrusted Data) allows an object to define a __reduce__ method that returns a callable and arguments executed at load time; picklescan works by detecting known-dangerous callables in that stream. This flaw is a gadget-coverage gap: the torch._dynamo.guards.GuardBuilder.get function - part of PyTorch's Dynamo guard machinery - can be reached through a reduce method to obtain code execution, but picklescan's pre-0.0.28 detection logic did not recognize it as a dangerous import, so the crafted stream evades the allow/deny analysis. The actual code-execution primitive lives in PyTorch's deserialization path; picklescan's defect is failing to detect it.

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 7.5 HIGH

Network-delivered malicious artifact but AC:H and UI:R because the victim must load it in a torch environment relying on picklescan; PR:N as no auth is needed, and full RCE gives C/I/A:H.

3.1 AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H
4.0 AV:N/AC:L/AT:P/PR:N/UI:P/VC:H/VI:H/VA:H/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 pickle files that exploit torch._dynamo.guards.GuardBuilder.get function in reduce methods. Attackers can craft pickle files with embedded code that evades picklescan detection and executes arbitrary commands when loaded.

Executive ViewAI

Why It Matters

Picklescan, used widely to validate third-party machine learning models, contains a vulnerability that allows attackers to hide malicious code from detection. Models certified as safe by picklescan will execute arbitrary code when loaded into production systems. This exposes organizations to supply-chain compromise whenever they integrate external models without additional validation controls.

Business Impact: High
Compensating Controls

No vendor-released patch identified at time of analysis. Eliminate pickle-based deserialization by migrating to safer model formats (safetensors, ONNX, or non-Python serialization standards). Sandbox model loading in isolated containers or VMs with restricted filesystem and network access to contain code execution. Implement defense-in-depth: run picklescan alongside secondary validation tools (signature verification, static analysis, behavioral monitoring). Restrict model import access to authorized personnel and require cryptographic signatures and audit logs for all external artifacts. Monitor deserialization events and alert on suspicious model-loading patterns. For high-risk systems, disable external model loading until replacement controls are operational.

Threat Intelligence Overview

EPSS Score
0.3%
Top 78% exploitable
Prevalence
Medium
common pickle-safety scanner in ML and model-hub supply-chain pipelines, not universal
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
Partial

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