Skip to main content

PyTorch EUVDEUVD-2026-134448

| CVE-2026-136426 HIGH
Code Injection (CWE-94)
2026-11-24 zdi GHSA-9hqx-6m26-fqj3
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 PT2 file
  2. Delivery
    Distribute as trusted model artifact
  3. Exploit
    Victim loads file in PyTorch
  4. Execution
    Unvalidated string drives Python code execution
  5. Impact
    Arbitrary 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).

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
No patch listed yet 0.5% 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 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

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

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

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.

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

Executive ViewAI

Why It Matters

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.

Business Impact: High
Compensating 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

EPSS Score
0.5%
Top 69% exploitable
Prevalence
High
PyTorch is a dominant, widely-deployed ML framework across research and production
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.5%
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

Code Injection CRITICAL

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.

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