Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessDeliver malicious PyTorch artifact to victim
-
ExploitVictim loads file via FileSystemReader
-
ExecutionUntrusted data deserialized without validation
-
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 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. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – 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
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 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
AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
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).
Primary rating from Vendor (zdi).
CVSS VectorVendor: zdi
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.
Zero Day Initiative Advisories
Executive ViewAI
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.
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
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-134454
GHSA-gm9v-m47m-rw2m
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB