CVE-2026-136426

7.8High

Published Nov 24, 2026 · NVD status: Awaiting Analysis · AI triage by gemini-3.1-flash-lite

7.8CVSS

High

0CVSS v3.010

Attack vector
Local
Complexity
Low
Privileges
None
User action
Required
Impact
Full C/I/A compromise
Weakness
CWE-94

What an attacker gets

Remote attackers can execute arbitrary code in the context of the current process. This requires a user to open a malicious PT2 file with the affected PyTorch library.

Root cause

The PT2 file parser fails to validate user-supplied strings before using them to execute Python code.

Affected versions

Versions not listed — check the vendor advisory.

CVSS v3.0 · CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

Fix & remediation

Update to the latest patched version of PyTorch once available. Avoid parsing untrusted PT2 files until the patch is applied.

remediation — bash
$ pip list | grep torch

AI-suggested. Run it in staging first and check it against the vendor advisory. Why?

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

References

Source: nvd.nist.gov/vuln/detail/CVE-2026-136426

More fully triaged vulnerabilities you may want to check next.