CVE-2026-136426
Received Received - Intake

PyTorch PT2 File Parsing Code Injection Vulnerability

Vulnerability report for CVE-2026-136426, including description, CVSS score, EPSS score, affected products, exploitability, helpful resources, and attack-flow context.

Publication date: 2026-11-24

Last updated on: 2026-11-24

Assigner: Zero Day Initiative

Description

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.

CVSS Scores

EPSS Scores

Probability:
Percentile:

Meta Information

Published
2026-11-24
Last Modified
2026-11-24
Generated
2026-11-24
AI Q&A
2026-11-24
EPSS Evaluated
N/A
NVD
EUVD

Affected Vendors & Products

Showing 1 associated CPE
Vendor Product Version / Range
PyTorch Foundation PyTorch 2.13.0

Helpful Resources

Exploitability

CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-94 The product constructs all or part of a code segment using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the syntax or behavior of the intended code segment.

Attack-Flow Graph

AI Quick Actions

Instant insights powered by AI
Executive Summary

This is a remote code execution vulnerability in PyTorch affecting PT2 file parsing. It occurs due to insufficient validation of user-supplied strings, allowing attackers to execute arbitrary code in the current process. The flaw was reported to PyTorch but dismissed as expected behavior before public disclosure.

Detection Guidance

Detecting this vulnerability requires checking for PyTorch installations and monitoring for suspicious PT2 file parsing activities. Inspect system logs for unexpected Python code execution or unauthorized file access. Use commands like 'pip list | grep torch' to identify PyTorch versions and 'find / -name "*.pt2" 2>/dev/null' to locate PT2 files.

Impact Analysis

An attacker could exploit this to run malicious code on your system, potentially stealing data, installing malware, or disrupting operations. Since PyTorch is used for machine learning, attackers might target models or datasets processed by the library.

Compliance Impact

This vulnerability could lead to unauthorized code execution, potentially causing data breaches. This may violate GDPR (data protection) or HIPAA (health data privacy) by exposing sensitive information, leading to legal penalties or compliance failures.

Mitigation Strategies

Immediately restrict interaction with PyTorch, especially PT2 file parsing. Update PyTorch to the latest version if available. Disable or remove unused PyTorch components. Monitor network traffic for unusual activity and block suspicious file uploads or executions.

Chat Assistant

Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-136426. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70

EPSS Chart

Security Radar

News mentioning this vulnerability
Loading related security news...