Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessHost malicious model checkpoint at URL
-
ExploitLure user to load via load_state_dict_from_url
-
ExecutionUntrusted data deserialized (CWE-502)
-
ImpactArbitrary 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. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – 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
Affected Packages
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
AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
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.
Primary rating from Vendor (zdi).
CVSS VectorVendor: zdi
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.
Zero Day Initiative Advisories
Executive ViewAI
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.
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
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.
What every action level means
SSVC AssessmentENISA
Priority Score
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.
TorchServe is a tool for serving and scaling PyTorch models in production. Rated critical severity (CVSS 9.8), this vuln
In PyTorch <=2.4.1, the RemoteModule has Deserialization RCE. Rated critical severity (CVSS 9.8), this vulnerability is
PickleScan before 0.0.23 can be bypassed by flipping specific ZIP file header flag bits, allowing malicious pickle files
In PyTorch before trunk/89695, torch.jit.annotations.parse_type_line can cause arbitrary code execution because eval is
PyTorch is a Python package that provides tensor computation. [CVSS 8.8 HIGH]
A vulnerability in lightning-ai/pytorch-lightning version 2.3.2 allows an attacker to cause a denial of service by sendi
Out-of-bounds heap read in PyTorch torchvision's native GIF decoder (versions through 0.28.0) lets attackers who supply
picklescan before 0.0.23 is vulnerable to a ZIP archive manipulation attack that causes it to crash when attempting to e
TorchServe is a flexible and easy-to-use tool for serving and scaling PyTorch models in production. Rated critical sever
PyTorch is a Python package that provides tensor computation with strong GPU acceleration and deep neural networks built
NVIDIA APEX for Linux contains a deserialization of untrusted data vulnerability that affects environments using PyTorch
A vulnerability, which was classified as problematic, has been found in PyTorch 2.6.0+cu124. Rated medium severity (CVSS
EUVD-2026-134453
GHSA-m6wf-3m4q-fm89
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB