Skip to main content

PyTorch EUVDEUVD-2026-134453

| CVE-2026-136431 HIGH
Deserialization of Untrusted Data (CWE-502)
2026-11-24 zdi GHSA-m6wf-3m4q-fm89
7.8
CVSS 3.0 · Vendor: zdi
View

Attack ChainAIDerived

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

  1. Access
    Host malicious model checkpoint at URL
  2. Exploit
    Lure user to load via load_state_dict_from_url
  3. Execution
    Untrusted data deserialized (CWE-502)
  4. Impact
    Arbitrary code executes in process context

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 an application or user to invoke PyTorch's load_state_dict_from_url against an attacker-influenced source, and the target must take an action - visiting a malicious page or opening/loading a malicious model file (UI:R) - so there is no fully passive or unattended trigger. The concrete prerequisite is that untrusted/attacker-supplied checkpoint data reaches load_state_dict_from_url, which deserializes it without proper validation (CWE-502). LIMITING FACTORS: user interaction is mandatory; the CVSS vector is local (AV:L), meaning the artifact must be processed on the victim host rather than against an exposed network service; pipelines that only load trusted, internally-produced checkpoints are not realistically exposed. No privileges are required (PR:N), and successful loading yields code execution with the loading process's privileges. The exact affected and fixed PyTorch versions are not stated in the available data.

Impact

Signals are moderate-but-credible rather than emergency. The CVSS 3.0 base score is 7.8 (High) driven by full C:H/I:H/A:H impact with low complexity and no privileges, but note the vector is AV:L (local) with UI:R - exploitation is NOT network-automatable despite the advisory title calling it 'Remote Code Execution.' This is a ZDI-reported deserialization flaw (CWE-502) where 'remote' refers to the attacker delivering a malicious artifact, not a remote network service; the local vector plus required user interaction materially lowers real-world urgency versus a true AV:N unauthenticated RCE. The vuln.today decision label is 'this_week' (not act_now/emergency). No EPSS score, no CISA KEV listing, and no confirmed exploit code are present in the input, so there is no evidence of active exploitation or mass scanning. Conflict to verify with vendor: the description and title say 'remote attackers' while the CVSS vector is AV:L/UI:R - the practical attack is a malicious model file or page consumed locally, so treat this as a supply-chain/untrusted-artifact risk, not an internet-facing service exposure. Net: a legitimate High-severity issue warranting prompt patching in ML pipelines that load external checkpoints, but not a drop-everything network wormable threat.

Exploit ScenarioDerived

An attacker publishes a malicious PyTorch checkpoint (or a page/repository linking one) and convinces a developer or ML pipeline to load it via load_state_dict_from_url; because the function deserializes the untrusted data (pickle/torch.load path), attacker-controlled objects execute arbitrary code in the context of the loading process. Exploitation requires user interaction (visiting a malicious page or opening a malicious file) and local processing of the artifact, consistent with AV:L/UI:R. No verified working exploit code is identified in the provided data - only the ZDI advisory reference.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
No patch listed yet 0.6% exploitation probability (EPSS)

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

Alert me

AnalysisAIv1 – Nov 24, 2026

Remote code execution in the PyTorch Foundation's PyTorch arises when the load_state_dict_from_url function deserializes untrusted checkpoint data, letting an attacker-influenced model source run arbitrary code in the context of the loading process. The CVSS:3.1 vector (AV:L/AC:L/PR:N/UI:R) means unauthenticated attackers can exploit it, but the victim must take an action - visiting a malicious page or opening/loading a malicious model file - and the artifact must be processed on the victim host rather than against an exposed network service. Reported through ZDI as ZDI-CAN-32601 with an advisory at ZDI-26-1058, it is not in CISA KEV and no public exploit code has been identified at time of analysis; priority is this_week, with the practical exposure limited to pipelines that pull checkpoints from untrusted or attacker-influenceable sources.

RemediationAI

No vendor-released patch version is identified in the available data, so a fixed release cannot be cited; track the ZDI advisory at https://www.zerodayinitiative.com/advisories/ZDI-26-1058/ and the PyTorch project for a version-specific fix. Until then, the effective control is to prevent untrusted data from reaching load_state_dict_from_url: do not pass attacker-influenceable URLs or third-party checkpoints to it, and restrict loading to internally produced artifacts whose provenance and integrity (for example a pinned hash) are verified before deserialization. Where untrusted models must be handled, load them only through a safer serialization path that does not perform arbitrary object construction, and treat any fallback to the pickle-based loader as equivalent to running the checkpoint as code. Perform model loads in a sandboxed, low-privilege process or container isolated from credentials, network egress, and sensitive mounts, accepting the operational overhead of that isolation and the risk that escapes from it are not prevented by the boundary alone. Because exploitation requires user interaction and local processing of the artifact, blocking untrusted checkpoint downloads and removing load_state_dict_from_url calls from automation that consumes external model sources removes the realistic attack path; these are compensating controls, not a substitute for a patched PyTorch release once one is published.

Affected VersionsENISA

PyTorch 2.13.0

Affected Packages

euvd pytorch no fix

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

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

Technical ContextAI · show details

The flaw is CWE-502, deserialization of untrusted data, in PyTorch's load_state_dict_from_url helper. That function fetches a serialized state dict from a URL and hands it to PyTorch's checkpoint loading path, which historically relies on Python pickle-based deserialization; pickle can encode arbitrary object construction and callable references, so materializing an attacker-controlled checkpoint can execute code during load. The weakness here is not in the transport but in the absence of proper validation of the user-supplied data before it is deserialized. The assessed vector is local (AV:L) with user interaction required (UI:R) and no privileges required (PR:N): the attacker must get a malicious checkpoint or URL in front of a victim who loads it, and the resulting code runs with whatever rights the loading process holds. The CPE entry (cpe:2.3:a:pytorch_foundation:pytorch) is an unbounded wildcard, so the exact affected and fixed PyTorch releases are not stated in the available data.

Know when Pytorch 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 (zdi) PRIMARY 7.8 HIGH
AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
vuln.today AI 7.8 HIGH

Loading an untrusted checkpoint requires the victim's action (UI:R) and local processing of the artifact (AV:L); deserialization yields full code execution in-process, so C/I/A:H, no privileges (PR:N), scope unchanged.

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

Primary rating from Vendor (zdi).

CVSS VectorVendor: zdi

Attack Vector
Local
Attack Complexity
Low
Privileges Required
None
User Interaction
Required
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

DescriptionCVE.org

PyTorch Foundation PyTorch load_state_dict_from_url Deserialization of Untrusted Data Remote Code Execution Vulnerability. This vulnerability allows remote attackers to execute arbitrary code on affected installations of PyTorch Foundation PyTorch. User interaction is required to exploit this vulnerability in that the target must visit a malicious page or open a malicious file.

The specific flaw exists within the load_state_dict_from_url function. The issue results from the lack of proper validation of user-supplied data, which can result in deserialization of untrusted data. An attacker can leverage this vulnerability to execute code in the context of the current process. Was ZDI-CAN-32601.

Executive ViewAI

Why It Matters

A high-severity vulnerability in PyTorch (CVE-2026-136431) enables remote code execution when loading model checkpoints from untrusted sources, potentially compromising the host system. This impacts machine learning pipelines and users who download or load model files from external repositories, posing a risk of data breach and operational disruption, though exploitation requires user interaction and no active exploitation has been reported. Leadership should prioritize remediation within the week to safeguard critical AI workflows and prevent potential lateral movement.

Business Impact: High
Compensating Controls

No vendor patch available. Interim mitigations: restrict loading of model checkpoints to trusted sources, verify digital signatures of model files, use network segmentation to isolate ML workloads, and employ runtime monitoring for anomalous process behavior.

Threat Intelligence Overview

EPSS Score
0.6%
Top 58% exploitable
Prevalence
High
PyTorch is a dominant, widely deployed ML/AI framework across research and production
Data Quality
3 sources
Confidence: Low

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.6%
Patch available No
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
None
System Exposure· derived
Small
Automatable
No
Human Impact
High
Technical Impact
Total

Priority Score

40
Low Medium High Critical
KEV: 0
EPSS: +1
CVSS: +39
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.

Remote Code Execution represents the critical moment when an attacker successfully runs arbitrary code on a target system without physical access.

CVE-2023-43654 CRITICAL POC
9.8 Sep 28

TorchServe is a tool for serving and scaling PyTorch models in production. Rated critical severity (CVSS 9.8), this vuln

CVE-2024-48063 CRITICAL POC
9.8 Oct 29

In PyTorch <=2.4.1, the RemoteModule has Deserialization RCE. Rated critical severity (CVSS 9.8), this vulnerability is

CVE-2025-1945 CRITICAL POC
9.8 Mar 10

PickleScan before 0.0.23 can be bypassed by flipping specific ZIP file header flag bits, allowing malicious pickle files

CVE-2022-45907 CRITICAL POC
9.8 Nov 26

In PyTorch before trunk/89695, torch.jit.annotations.parse_type_line can cause arbitrary code execution because eval is

CVE-2026-24747 HIGH POC
8.8 Jan 27

PyTorch is a Python package that provides tensor computation. [CVSS 8.8 HIGH]

CVE-2024-8020 HIGH POC
7.5 Mar 20

A vulnerability in lightning-ai/pytorch-lightning version 2.3.2 allows an attacker to cause a denial of service by sendi

CVE-2026-65918 HIGH POC
7.1 Jul 23

Out-of-bounds heap read in PyTorch torchvision's native GIF decoder (versions through 0.28.0) lets attackers who supply

CVE-2025-1944 MEDIUM POC
6.5 Mar 10

picklescan before 0.0.23 is vulnerable to a ZIP archive manipulation attack that causes it to crash when attempting to e

CVE-2024-35198 CRITICAL
9.8 Jul 19

TorchServe is a flexible and easy-to-use tool for serving and scaling PyTorch models in production. Rated critical sever

CVE-2025-32434 CRITICAL POC
9.3 Apr 18

PyTorch is a Python package that provides tensor computation with strong GPU acceleration and deep neural networks built

CVE-2025-33244 CRITICAL
9.0 Mar 24

NVIDIA APEX for Linux contains a deserialization of untrusted data vulnerability that affects environments using PyTorch

CVE-2025-2953 MEDIUM POC
4.8 Mar 30

A vulnerability, which was classified as problematic, has been found in PyTorch 2.6.0+cu124. Rated medium severity (CVSS

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