Skip to main content

PyTorch EUVDEUVD-2026-134449

| CVE-2026-136427 HIGH
OS Command Injection (CWE-78)
2026-11-24 zdi GHSA-3rwm-vcqc-hww8
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 AOTI model package
  2. Delivery
    Distribute via model hub or supply chain
  3. Exploit
    Victim loads package with AOTIModelPackageLoader
  4. Execution
    Unvalidated string reaches system call
  5. Impact
    Execute arbitrary code as current user

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization OS command sanitization, avoid shell exec
MITRE ATT&CK

2 techniques across 1 tactic: Execution

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 an attacker-supplied model package through PyTorch's AOTIModelPackageLoader; the attacker must control the string that is passed unvalidated into a system call (CWE-78). This is a user-interaction-gated, local vector (AV:L/UI:R) - there is no listening network service, so the attacker depends on social or supply-chain delivery of a malicious package. Limiting factors: the victim must actively load the crafted package, code runs only in the context of the current user (S:U, no privilege escalation), and the description notes attack vectors 'may vary depending on the implementation,' so successful exploitation can depend on how the loader is integrated into the downstream application.

Impact

The input signals point to a serious but interaction-gated code-execution flaw rather than a mass-exploitable remote one. The CVSS 3.0 vector (CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H, score 7.8) is internally consistent with the description: AV:L plus UI:R reflect that exploitation requires a victim to load a crafted model package through the AOTIModelPackageLoader, not a server listening on a network port - so despite the 'Remote Code Execution' label this is a victim-triggered, local attack vector, not unauthenticated network-facing exploitation. PR:N means no attacker privileges are needed, and C:H/I:H/A:H with S:U match code execution confined to the current user's context. No EPSS probability, no CISA KEV entry, and no confirmed public exploit were supplied; the only reference is the ZDI advisory itself, so exploitation is: no public exploit identified at time of analysis. The vuln.today decision label is 'this_week', indicating a prioritized-but-not-emergency triage. Net: a genuine high-severity RCE worth near-term patching given PyTorch's reach, but gated by user interaction and lacking any evidence of active or automated exploitation - treat as important hygiene, not a fire-drill. Note the signal tension worth verifying: the title says 'Remote' while the CVSS vector is AV:L (local), which is reconciled by the UI:R delivery model (user opens a malicious artifact) rather than true network reachability - confirm the intended deployment context with the vendor/ZDI.

Exploit ScenarioDerived

An attacker crafts a malicious AOTI model package and distributes it (for example via a model hub, shared repository, or supply-chain artifact). When a developer or application loads that package with AOTIModelPackageLoader, the unvalidated attacker-controlled string is passed into a system call, executing arbitrary OS commands as the user running the process. No confirmed public exploit is available, but ZDI documents the flaw and user interaction (loading the package) is the required trigger.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
No patch listed yet 0.7% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Nov 24, 2026

Command injection in PyTorch's AOTIModelPackageLoader allows an attacker to execute arbitrary code in the context of the user who loads a crafted model package. The flaw affects PyTorch (CPE: pytorch_foundation:pytorch:*) with a 7.8 high severity score and a local, user-interaction-gated vector (AV:L/UI:R), so exploitation depends on social or supply-chain delivery rather than a listening network service. No CISA KEV entry is present and no public exploit identified at time of analysis.

RemediationAI

No vendor-released patch or fixed version is identified in the supplied data; consult ZDI-26-1053 at https://www.zerodayinitiative.com/advisories/ZDI-26-1053/ for current vendor guidance. Because exploitation requires the victim to load an attacker-supplied AOTIModelPackageLoader package, restrict the loader to packages from trusted, integrity-verified sources and disable or isolate it in applications that accept externally supplied models; the trade-off is reduced ability to consume third-party model packages. These are compensating controls for the delivery prerequisite, not a fix for the underlying CWE-78 command-injection flaw.

Affected VersionsENISA

PyTorch 2.12.1

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

PyTorch is a machine-learning library, and AOTIModelPackageLoader is the component used to load AOT-compiled model packages. The flaw is CWE-78 command injection: a user-supplied string is passed into a system call without proper validation, allowing arbitrary command execution when a crafted package is loaded. The supplied CPE is cpe:2.3:a:pytorch_foundation:pytorch:*:*:*:*:*:*:*:*, which does not narrow affected releases to a specific version range. The assessed vector is CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H, meaning the victim must load an attacker-controlled package and the resulting code runs only as the current user, with no privilege escalation. The exact system call and trigger details are not described in the available sources, and the description notes that attack vectors may vary depending on how the loader is integrated into downstream applications.

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

AV:L and UI:R because the victim must load a malicious model package; PR:N since no attacker privileges are needed; C/I/A:H for full code execution as the current user.

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 AOTIModelPackageLoader Command 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 AOTIModelPackageLoader. The issue results from the lack of proper validation of a user-supplied string before using it to execute a system call. An attacker can leverage this vulnerability to execute code in the context of the current user. Was ZDI-CAN-32262.

Executive ViewAI

Why It Matters

PyTorch, a widely used machine learning framework, contains a high-severity command injection vulnerability (CVE-2026-136427) that allows attackers to execute arbitrary code when a crafted model package is loaded by a user. This impacts any organization using PyTorch for AI/ML workflows, as malicious model files could be distributed via supply chains or social engineering, potentially leading to data breaches or system compromise. Leadership should prioritize mitigation because ML adoption is growing and model sharing is common, increasing exposure.

Business Impact: High
Compensating Controls

No vendor-released patch identified at time of analysis. Interim mitigations include: load only model packages from trusted, verified sources; implement sandboxing or containerization for model execution; restrict user permissions; monitor for suspicious process creation from PyTorch; and conduct security awareness training on model supply-chain risks.

Threat Intelligence Overview

EPSS Score
0.7%
Top 54% 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.7%
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

40
Low Medium High Critical
KEV: 0
EPSS: +1
CVSS: +39
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

OS command injection occurs when an application passes unsanitized user input directly into system shell commands.

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