Skip to main content

PyTorch EUVDEUVD-2026-134454

| CVE-2026-136432 HIGH
Deserialization of Untrusted Data (CWE-502)
2026-11-24 zdi GHSA-gm9v-m47m-rw2m
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 PyTorch artifact to victim
  2. Exploit
    Victim loads file via FileSystemReader
  3. Execution
    Untrusted data deserialized without validation
  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 that a victim load or process attacker-supplied data through PyTorch's FileSystemReader class, which deserializes untrusted input without proper validation (UI:R in the CVSS vector). The concrete prerequisite is a workflow that reads externally sourced PyTorch artifacts/checkpoints (e.g., downloaded models, shared files, or data from an untrusted pipeline) - environments that only load first-party, trusted artifacts are not realistically exposed. Limiting factors: the vector is LOCAL (AV:L), so the attacker must get the malicious data in front of the victim and the victim must actively load it; there is no network-facing, zero-click path. The description's note that 'attack vectors may vary depending on the implementation' means downstream applications embedding PyTorch may expose this differently depending on how they ingest files.

Impact

This is a CWE-502 deserialization-of-untrusted-data flaw in PyTorch's FileSystemReader class, scored CVSS 7.8 (HIGH) with vector AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H. The signals are moderate rather than emergency: the CVSS vector is LOCAL (AV:L) and requires user interaction (UI:R), meaning a victim must load/process an attacker-supplied file or data source through the vulnerable class - it is NOT remote unauthenticated exploitation despite the prose 'remote attackers' wording. There is a notable discrepancy to flag: the description says 'remote attackers to execute arbitrary code' and even notes 'attack vectors may vary depending on the implementation,' yet the CVSS vector is AV:L - this reflects that the malicious data must reach the victim's process (e.g., via a shared model/checkpoint file), so treat the effective exploitability as 'open/load a malicious artifact,' not 'network-facing service.' No EPSS score, no CISA KEV listing, and no confirmed public exploit code are present in the input; the only reference is the ZDI advisory (ZDI-26-1054, ZDI-CAN-32600). The vuln.today decision label is 'this_week' (not act_now/emergency), consistent with a real-but-not-actively-exploited priority. Net: a credible, high-impact RCE class issue in a very widely used ML library, but gated by user interaction and local data delivery - prioritize patching within normal cycles and, critically, in any workflow that loads third-party PyTorch artifacts.

Exploit ScenarioDerived

An attacker publishes or shares a malicious PyTorch checkpoint/model artifact (e.g., on a model hub or via a data pipeline) crafted so that FileSystemReader deserializes attacker-controlled data without proper validation. When a victim loads that artifact in their PyTorch process, embedded malicious objects are deserialized and arbitrary code executes in the context of the current process. No public working exploit code is identified in the input, but the ZDI advisory documents the flaw; the attack requires the victim's interaction (UI:R) to load the untrusted data.

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

Deserialization of untrusted data in PyTorch's FileSystemReader class can lead to arbitrary code execution in the context of the current process when a victim loads or processes attacker-supplied data through that reader. The flaw is rated CVSS 7.8 (HIGH) with the vector AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H, meaning no privileges are required (PR:N) and no credentials are needed, but the attack path is local (AV:L) and depends on the victim actively loading the malicious artifact (UI:R) rather than on a network-facing, zero-click path. Exposure is therefore concentrated in workflows that ingest externally sourced PyTorch artifacts such as downloaded models, checkpoints, or files from a shared or untrusted pipeline; no public exploit has been identified at the time of analysis, and the issue was reported through Trend Micro ZDI as ZDI-CAN-32600 / ZDI-26-1054.

RemediationAI

No vendor-released patch or fixed version is identified in the available data, so the first action is to obtain the vendor's guidance directly from the ZDI advisory (https://www.zerodayinitiative.com/advisories/ZDI-26-1054/) and the corresponding PyTorch security release notes, and to apply an updated build as soon as one is published; do not assume that any currently published version is remediated until the vendor confirms it. Until then, the effective control follows from the assessed prerequisite: only load PyTorch artifacts and checkpoints from first-party or cryptographically verified sources, and treat any externally sourced model file as executable code rather than data - the trade-off is that legitimate third-party model distribution channels must be re-mediated, for example by re-serializing artifacts into a trusted, non-code-bearing format on a controlled host before use. Where policy allows, perform the ingest and load step inside a sandboxed, low-privilege process with no access to production credentials, network egress, or writable system paths, accepting the performance and operational overhead this adds. Restricting which applications and services accept user-supplied file paths or uploads into PyTorch-based loading code reduces reachability of the FileSystemReader path, at the cost of narrowing legitimate import workflows; because the vector is AV:L rather than network-facing, per-endpoint data-handling policy and user awareness about opening untrusted model files are the most direct compensating measures available while the vendor fix is pending.

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 root cause class is CWE-502, Deserialization of Untrusted Data: the FileSystemReader class in PyTorch does not perform proper validation of user-supplied data before reconstructing objects from it, so data controlled by an attacker can be turned into object state that results in code execution. This is a well-known hazard class for Python machine-learning tooling, where model and checkpoint artifacts are commonly persisted as serialized object graphs and loading an artifact is effectively equivalent to executing it; note, however, that the available sources do not specify which serialization format or internal code path within FileSystemReader is reached, so the precise trigger is not described in the available evidence. Per the supplied CPE data (cpe:2.3:a:pytorch_foundation:pytorch:*:*:*:*:*:*:*:*), the affected product is PyTorch with no version boundary enumerated, so all versions should be presumed in scope until the vendor's advisory narrows the range. Because the CVSS vector is AV:L with UI:R, the practical attack surface is the data-ingestion boundary of an application embedding or using PyTorch, not the network stack; the advisory's caveat that attack vectors may vary depending on the implementation reflects that downstream consumers of PyTorch may expose the same flawed reader through differing file-ingest features.

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

Malicious data must be delivered locally and loaded by the victim (AV:L, UI:R); no auth needed to craft the artifact (PR:N); deserialization yields full code execution in-process (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 FileSystemReader Deserialization of Untrusted Data Remote Code Execution Vulnerability. This vulnerability allows remote attackers to execute arbitrary code on affected installations of PyTorch. Interaction with this library is required to exploit this vulnerability but attack vectors may vary depending on the implementation.

The specific flaw exists within the FileSystemReader class. 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-32600.

Executive ViewAI

Why It Matters

A high-severity vulnerability in PyTorch, a widely used machine learning framework, allows arbitrary code execution when a user loads a malicious model file, potentially compromising the entire system. This affects any team downloading models from external sources, such as open-source repositories or partner pipelines, and could lead to data breaches or intellectual property theft. Leadership should prioritize mitigating this risk, especially given the growing reliance on third-party AI models.

Business Impact: High
Compensating Controls

No vendor-released patch identified at time of analysis. Interim mitigations include loading models only from trusted sources, using sandboxed environments with minimal privileges, and verifying model integrity via cryptographic signatures.

Threat Intelligence Overview

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