Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessCraft malicious PT2 file
-
DeliveryDistribute as trusted model artifact
-
ExploitVictim loads file in PyTorch
-
ExecutionUnvalidated string drives Python code execution
-
ImpactArbitrary code runs in process context
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Code injection prevention, sandbox exec
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 a victim to load/parse an attacker-crafted PT2 file through PyTorch (UI:R, AV:L); the unvalidated user-supplied string is then used to execute Python code. There is no network-reachable, interaction-free path - the file must be delivered and willingly opened by the target process (developer workstation, CI job, or model-serving pipeline). Limiting factors: mandatory user interaction and local vector mean the attacker depends on social engineering or a compromised model-supply channel; no authentication is required on the target (PR:N) and no special non-default configuration is documented, though the advisory notes attack vectors 'may vary depending on the implementation.' The specific trigger within the parser beyond 'lack of proper validation of a user-supplied string before using it to execute Python code' is not further detailed in the available sources. |
| Impact | Signals point to a real but conditional risk rather than a drop-everything emergency. The CVSS 3.0 vector (AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H, base 7.8) describes local attack vector with low complexity, no privileges, but mandatory user interaction and full confidentiality/integrity/availability impact within an unchanged scope - i.e. an attacker must get a victim to load a malicious PT2 file, after which arbitrary code runs in the victim process. Note the tension between the vector and the prose: the ZDI description says 'remote attackers' and 'attack vectors may vary depending on the implementation,' yet the CVSS vector is AV:L - the 'remote' framing refers to remote delivery of a crafted file that is then parsed locally, not network-reachable exploitation; verify intended delivery model with the vendor/ZDI advisory. No EPSS score, KEV listing, or SSVC automatable/technical-impact decision was supplied, so probability-of-exploitation and automatability cannot be quantified from this input. The vuln.today priority is 'this_week' (not act_now/emergency). There is no public exploit identified - only a ZDI advisory reference - so this is a credible, vendor-reported code-execution flaw in widely used ML tooling that warrants prompt patching, but current evidence indicates no confirmed active or automated exploitation. |
| Exploit ScenarioDerived | An attacker crafts a malicious PT2 file embedding an attacker-controlled string that PyTorch's parser passes into Python code execution without validation, then distributes it as a shared model or dataset artifact. A developer, CI pipeline, or inference service loads the file through PyTorch, and arbitrary code executes in the context of that process. No weaponized public exploit is identified at time of analysis; exploitation depends on the victim choosing to load the file (UI:R). |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Nov 24, 2026
PyTorch installations that parse attacker-supplied PT2 files can be induced to execute arbitrary Python code in the context of the current process, because a user-supplied string is used for code execution without proper validation (CWE-94 code injection), rated CVSS 7.8. The assessed vector is local with mandatory user interaction (AV:L/AC:L/PR:N/UI:R) - the target must load or parse a crafted PT2 file, so the realistic delivery paths are social engineering or a compromised model-supply channel rather than a network-reachable, interaction-free attack. No public exploit code or active exploitation is identified at the time of analysis, and the priority signal places this in the this-week remediation cycle rather than an emergency; a public advisory exists (ZDI-26-1052) but no vendor patch version is present in the available data.
RemediationAI
No vendor-released patch or fixed version is identified in the available data; the only reference supplied is the ZDI advisory ZDI-26-1052 (https://www.zerodayinitiative.com/advisories/ZDI-26-1052/), which should be checked for the vendor's remediation status and any version-specific guidance before planning an upgrade. Because the assessed exploitation condition is that a victim process loads or parses an attacker-crafted PT2 file (UI:R, AV:L), the effective compensating control is to stop untrusted PT2 artifacts from reaching parsing code: block or quarantine PT2 files arriving through untrusted channels (email attachments, downloads, third-party model hubs, contributed pull requests) before they are opened by developer tooling, and restrict automated CI or model-loading jobs that must handle externally supplied PT2 artifacts to least-privilege, isolated workers so that code executed in the parsing process cannot reach production credentials or internal networks. The trade-off is reduced workflow convenience and the need for an explicit allowlist of trusted model sources, plus the operational overhead of sandboxing load jobs; these measures reduce exposure but do not remove the underlying parser flaw, so they should be replaced by a vendor fix once one is available.
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 flaw is a CWE-94 improper control of code generation issue in PyTorch's PT2 file parsing path. PT2 artifacts are serialized/exported model representations handled by PyTorch's compiler and serialization machinery, and the parsing of such a file can reach Python code execution; the advisory states the specific defect is the lack of proper validation of a user-supplied string before it is used to execute Python code. Because the payload executes in the context of the process doing the loading, impact is bounded by the privileges and reach of that process - a developer workstation, a CI job, or a model-serving pipeline. The CPE entry (cpe:2.3:a:pytorch_foundation:pytorch:*:*:*:*:*:*:*:*) carries a wildcard version, so the referenced intelligence does not scope the defect to a discrete release range, and the sources do not describe the exact parser routine or the precise trigger beyond the missing validation of the user-supplied string; the advisory notes attack vectors 'may vary depending on the implementation.' No authentication is required on the target per the CVSS vector (PR:N), and no non-default configuration prerequisite is documented.
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
Exploitation requires parsing a malicious local file (AV:L) with user interaction (UI:R) and no privileges (PR:N); code injection yields full C/I/A impact in an unchanged scope.
Primary rating from Vendor (zdi).
CVSS VectorVendor: zdi
DescriptionCVE.org
PyTorch Foundation PyTorch PT2 File Parsing Code Injection 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 parsing of PT2 files. The issue results from the lack of proper validation of a user-supplied string before using it to execute Python code. An attacker can leverage this vulnerability to execute code in the context of the current process. Was ZDI-CAN-32602.
Zero Day Initiative Advisories
Executive ViewAI
CVE-2026-136426 in PyTorch allows arbitrary code execution when a user loads a maliciously crafted PT2 file, threatening any team that ingests models from external sources. This puts data scientists, ML engineers, and the wider organization at risk of code execution on developer workstations and training servers, potentially leading to data loss, intellectual property theft, or lateral movement. Leadership should care because model supply chains are increasingly targeted, and the absence of a vendor patch means remediation relies on strict intake controls.
Enforce a strict ban on loading PT2 files from untrusted or unverified sources; require security review and sandboxed execution for any externally sourced models; restrict PyTorch model parsing to isolated, low-privilege environments; and increase monitoring for anomalous process behavior on ML workstations.
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
Code injection occurs when an application accepts user input and passes it directly into a language interpreter or evaluator without proper sanitization.
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-134448
GHSA-9hqx-6m26-fqj3
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB