CVE-2026-136426
JSON

7.8high

PyTorch Foundation PyTorch PT2 File Parsing Code Injection Remote Code Execution Vulnerability

Severity
7.8high CVSS:3.0 by zdi
Exploit likelihood
0.46% (higher than 41% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
zdi

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.

Affected

Product or packageVersionsReported by
PyTorch Foundation PyTorch2.13.0CVE List

Classification

CWE-94

SSVC (CISA-ADP): exploitation none, automatable no, technical impact total.

References

Sources

SourceRecordLicence
CVE ListCVE-2026-136426 changed 2026-12-01CVE Terms of Use
NVDCVE-2026-136426 changed 2026-12-01Public domain