Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessCraft malicious serialized file
-
DeliveryDeliver via model hub or email
-
ExploitVictim opens/loads file
-
Executionload_compiled_function deserializes untrusted data
-
ImpactArbitrary code execution 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 the victim to open or load a malicious file that is processed by PyTorch's load_compiled_function, which deserializes untrusted data without proper validation (CWE-502). The limiting factor is mandatory user interaction (UI:R): the attacker cannot trigger this remotely without the victim loading the crafted artifact, and the attack vector is local (AV:L) despite 'remote attacker' delivery. No authentication or prior privileges are required (PR:N), and no special non-default configuration is called out in the available sources - the trigger is simply the act of loading an attacker-supplied serialized/compiled-function file. Realistic risk is therefore concentrated in workflows that load third-party or untrusted models and compiled artifacts. |
| Impact | This is a genuine high-priority issue for ML/AI environments, but its real-world risk is shaped by the delivery model rather than raw remote reachability. The CVSS 3.0 vector (AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H, 7.8 HIGH) describes a local attack vector requiring user interaction: no privileges or authentication are needed (PR:N), complexity is low (AC:L), but the victim must open a malicious file (UI:R). The description's phrase 'remote attackers' refers to delivery (an attacker ships a malicious model/compiled-function file); the actual trigger is local file opening, which is why ZDI scored AV:L rather than AV:N - note this tension between the 'remote' wording and the local vector, and treat exploitation as requiring a social-engineering/supply-chain delivery step. No EPSS score was provided, there is no CISA KEV listing, and no confirmed public exploit code was supplied - only the ZDI advisory reference. The vuln.today Decision label is 'this_week' (not act_now/emergency), consistent with a serious but not actively-exploited flaw. SSVC-style reading: exploitation is not confirmed in the wild, technical impact is total (full code execution in the process context), but automatability is limited by the required user interaction. Net: prioritize patching within the normal weekly cycle for PyTorch deployments, especially anywhere untrusted models or serialized artifacts are loaded; this is a real priority driven by impact and PyTorch's footprint, not an inflated high-CVSS-low-risk case, but it is not an emergency given no KEV/EPSS signal. |
| Exploit ScenarioDerived | An attacker crafts a malicious serialized PyTorch artifact (e.g., a shared model or compiled-function file) and distributes it via a model hub, email, or repository. When a victim loads the file and load_compiled_function deserializes the untrusted data, attacker-controlled code executes in the context of the victim's Python process. No public exploit code was identified at time of analysis; only the ZDI advisory reference is available. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Nov 24, 2026
PyTorch's load_compiled_function deserializes untrusted data without adequate validation, allowing arbitrary code execution in the context of the current process when a victim opens a crafted serialized/compiled-function file. The issue affects PyTorch Foundation PyTorch installations and requires user interaction, with a local attack vector and no required privileges; risk is concentrated in workflows that load third-party or untrusted model and compiled artifacts. No public exploit was identified at time of analysis, and no CISA KEV entry is indicated in the provided data.
RemediationAI
The available data does not specify a fixed PyTorch version or vendor patch; verify current remediation guidance in the ZDI advisory at https://www.zerodayinitiative.com/advisories/ZDI-26-1055/ and any PyTorch release information before upgrading. Until a fixed build is confirmed, avoid invoking load_compiled_function on untrusted or unverified compiled-function or serialized artifacts and restrict model-artifact ingestion to trusted sources with provenance checks; this directly reduces exposure but can block legitimate third-party model workflows. If untrusted artifacts must be processed, isolate the PyTorch workload in a low-privilege sandbox or container so that any code execution is contained, accepting the operational overhead and reduced convenience of sandboxed processing.
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
PyTorch is a machine-learning framework, and load_compiled_function is the component that loads compiled-function artifacts. The root cause is CWE-502 (Deserialization of Untrusted Data): the function does not properly validate user-supplied data, so a malicious artifact can be deserialized and lead to code execution in the current process. The provided CPE, cpe:2.3:a:pytorch_foundation:pytorch:*:*:*:*:*:*:*:*, identifies PyTorch Foundation PyTorch with a wildcard version rather than a specific affected range. The assessed CVSS vector is CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H, indicating a local attack path, no required privileges, mandatory user interaction, and high confidentiality, integrity, and availability impact; the trigger described in the sources is the victim opening or loading a malicious file processed by load_compiled_function, and no further exploitation mechanics are specified.
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
File-triggered deserialization RCE: AV:L and UI:R because the victim must open a malicious file, PR:N as no auth is needed, with full C/I/A impact from code execution.
Primary rating from Vendor (zdi).
CVSS VectorVendor: zdi
DescriptionCVE.org
PyTorch Foundation PyTorch load_compiled_function 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 open a malicious file.
The specific flaw exists within the load_compiled_function 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-32603.
Zero Day Initiative Advisories
Executive ViewAI
A high-severity vulnerability (CVE-2026-136428) in the PyTorch Foundation's PyTorch library allows arbitrary code execution when a user loads a maliciously crafted compiled-function file, affecting organizations that use PyTorch for machine learning workflows involving untrusted model artifacts. Since this flaw requires user interaction and a local attack vector, the risk is concentrated in data science and engineering teams that routinely download or share model files from external sources. Leadership should prioritize mitigating this risk to prevent potential data breaches, intellectual property theft, and operational disruption stemming from compromised machine learning pipelines.
No vendor-released patch identified at time of analysis. Interim mitigations include: restricting use of load_compiled_function to trusted, verified files only; implementing file integrity checks (e.g., digital signatures) for model artifacts; running PyTorch workloads in sandboxed or containerized environments with least privilege; and educating users on the risks of loading untrusted serialized data.
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-134450
GHSA-qxg3-cqcm-fvww
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB