Skip to main content

PyTorch CVE-2026-136428

| EUVDEUVD-2026-134450 HIGH
Deserialization of Untrusted Data (CWE-502)
2026-11-24 zdi GHSA-qxg3-cqcm-fvww
7.8
CVSS 3.0 · Vendor: zdi
View

Attack ChainAIDerived

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

  1. Access
    Craft malicious serialized file
  2. Delivery
    Deliver via model hub or email
  3. Exploit
    Victim opens/loads file
  4. Execution
    load_compiled_function deserializes untrusted data
  5. Impact
    Arbitrary 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.

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

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

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

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

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

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.

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_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.

Executive ViewAI

Why It Matters

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.

Business Impact: High
Compensating Controls

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

EPSS Score
0.6%
Top 58% exploitable
Prevalence
High
PyTorch is a dominant deep-learning framework across ML/AI production and research
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