CVE-2026-136426: (0Day) PyTorch Foundation PyTorch PT2 File Parsing Code Injection Remote Code Execution Vulnerability
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.
Affected Software
Event History
Frequently Asked Questions
Which deployments are exposed to exploitation?
Affected PyTorch installations are exposed when they parse PT2 files containing attacker-controlled content. Exploitation requires interaction with the library, and the exact attack vector depends on the implementation.
What does an attacker need to do to trigger the issue?
The attacker needs a PT2 file to be processed by the affected library. The flaw is triggered when a user-supplied string in the file is insufficiently validated before it is used to execute Python code.
What access and impact does successful exploitation provide?
The vector indicates no prior privileges are required, but user interaction is required. Successful exploitation executes arbitrary code in the context of the current process and can affect confidentiality, integrity, and availability.