Skip to main content

PyTorch EUVDEUVD-2026-134455

| CVE-2026-136433 HIGH
Deserialization of Untrusted Data (CWE-502)
2026-11-24 zdi GHSA-3rc2-9x43-cg72
7.8
CVSS 3.0 · Vendor: zdi
View

Attack ChainAIDerived

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

  1. Access
    Deliver malicious checkpoint file to victim
  2. Exploit
    Victim runs torch_save_to_dcp conversion
  3. Execution
    Untrusted data deserialized (CWE-502)
  4. Impact
    Arbitrary code executes as current user

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 process an attacker-supplied PyTorch checkpoint through the checkpoint format-conversion path (torch_save_to_dcp), which deserializes untrusted data without proper validation. Concrete prerequisites: the attacker must get a crafted checkpoint/file to the target, and the target must actively open or convert it (UI:R) - there is no remotely reachable network service here (AV:L). Limiting factors that reduce real-world risk: mandatory user interaction, the need for the victim to run the specific conversion utility on attacker-controlled input, and that code runs only in the context of the current user (S:U, no privilege escalation). Default remote unauthenticated exploitation does not apply.

Impact

This is a local, user-interaction-dependent code-execution flaw (CVSS 3.0 7.8, AV:L/AC:L/PR:N/UI:R) rooted in CWE-502 deserialization of untrusted data within PyTorch's checkpoint format conversion utilities (torch_save_to_dcp). The CVSS vector is self-consistent with the description: AV:L plus UI:R matches a 'victim must open a malicious file or visit a malicious page' trigger rather than a remotely reachable network service, so despite the 'Remote Code Execution' title in the ZDI advisory this is not an unauthenticated network-service RCE. PR:N confirms no attacker authentication is needed, but exploitation is gated on social engineering (UI:R), which materially lowers real-world urgency compared to a wormable network flaw. No EPSS score, no CISA KEV listing, and no confirmed working exploit code were supplied; the only intelligence source is the ZDI advisory (ZDI-26-1059, ZDI-CAN-32834), and the vuln.today decision label is 'this_week' (not act_now/emergency). Net: a genuine high-severity bug worth patching promptly for teams that process third-party checkpoints, but the signals point to opportunistic/targeted social-engineering risk, not mass automated exploitation. Key missing data - EPSS, KEV, and verified PoC status - should be confirmed before escalating further.

Exploit ScenarioDerived

An attacker crafts a malicious PyTorch checkpoint file embedding a serialized object payload and distributes it via a model-sharing hub, email, or a malicious web page. When a victim runs the checkpoint format-conversion utility (torch_save_to_dcp) against the file, the untrusted data is deserialized and attacker-controlled code executes in the context of the current user. No verified working exploit code is identified in the supplied data; only the ZDI advisory reference exists.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
No patch listed yet 0.4% 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 checkpoint format conversion utilities (torch_save_to_dcp) deserialize attacker-supplied checkpoint data without adequate validation, letting a crafted file execute arbitrary code in the context of the current user when the victim opens or converts it. The flaw is local and requires user interaction (CVSS 3.0 7.8, AV:L/AC:L/PR:N/UI:R/S:U), so the attacker must first deliver the malicious checkpoint and convince the target to run the conversion path; there is no remotely reachable service component and code executes only with the victim's own privileges. Exploitation status per the available intelligence: no public exploit identified at time of analysis; a public ZDI advisory (ZDI-26-1059 / ZDI-CAN-32834) documents the issue.

RemediationAI

No fixed version is listed in the supplied intelligence, so a vendor-released patch cannot be cited here; PyTorch users should consult https://www.zerodayinitiative.com/advisories/ZDI-26-1059/ and PyTorch project channels for the current fix status before assuming a patched release exists. Until a fix is confirmed, the actionable control is to avoid running the checkpoint format conversion utilities (torch_save_to_dcp) against checkpoints from untrusted or unverified sources, since the vulnerability is only reached when the victim opens or converts an attacker-supplied file; the trade-off is that this blocks legitimate conversion of externally sourced checkpoints, which would then need to be produced or vetted in a trusted environment. Because code executes with the privileges of the invoking user (S:U, no privilege escalation), running any unavoidable conversion in a low-privilege, isolated sandbox or container limits post-exploitation reach, at the cost of operational overhead rather than removing the flaw. No other workarounds are specified in the available evidence.

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 vulnerability is a CWE-502 deserialization-of-untrusted-data defect in PyTorch's checkpoint format conversion utilities, specifically the torch_save_to_dcp path that converts a checkpoint into the Distributed Checkpoint (DCP) format. Because the conversion path loads attacker-controlled checkpoint content without proper validation, malicious serialized payloads reach the deserializer and can lead to code execution under the invoking user's account. PyTorch's pickle-based checkpoint ecosystem is the relevant underlying technology; CPE data identifies pytorch_foundation:pytorch (all versions, wildcarded) as the affected product, meaning no specific version boundary is established in the supplied data. The CPE does not scope the flaw to a single release, so any deployment exposing checkpoint loading or conversion to untrusted files should be considered in scope. The precise trigger mechanics beyond the conversion-utility deserialization path are not described in the available sources.

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/config-driven trigger makes it local (AV:L) with required victim interaction (UI:R); no auth needed (PR:N) and deserialization yields full code execution as the user (C/I/A:H).

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:P/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 torch_save_to_dcp 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 checkpoint format conversion utilities. 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 user. Was ZDI-CAN-32834.

Executive ViewAI

Why It Matters

PyTorch's checkpoint conversion utility contains a high-severity deserialization flaw that could allow a crafted checkpoint file to execute arbitrary code under the victim's privileges when opened or converted. This affects data scientists, ML engineers, and anyone handling model files from external sources, creating a risk of sensitive data exposure, model theft, or lateral movement within research and production environments. Leadership should prioritize this because ML workflows often involve untrusted model artifacts, and a successful exploit could undermine trust in the AI pipeline and lead to regulatory or reputational damage.

Business Impact: High
Compensating Controls

No vendor-released patch identified at time of analysis. Interim mitigations: prohibit opening or converting checkpoint files from untrusted sources; process all checkpoints in sandboxed, low-privilege environments; implement integrity verification and malware scanning for checkpoint files; restrict use of torch_save_to_dcp to trusted inputs only; monitor for anomalous process execution linked to PyTorch utilities.

Threat Intelligence Overview

EPSS Score
0.4%
Top 76% exploitable
Prevalence
High
PyTorch is a dominant, widely deployed ML framework across enterprise 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.4%
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

39
Low Medium High Critical
KEV: 0
EPSS: 0
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