Preliminary notice: published right away from the original source data, without editorial write-up. It will shortly be replaced by a written and reviewed version.
Summary
CVE-2026-136427: high-severity vulnerability (CVSS 7.8) in PyTorch Foundation PyTorch.
What happened
Original description from the source: 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.
Why it matters
High severity, CVSS 7.8.
Affected products and versions
PyTorch Foundation PyTorch 2.12.1
| Product | Versions | Fixed in |
|---|---|---|
| PyTorch Foundation PyTorch | 2.12.1 | — |
Action recommended by the source
See the official references for the fix or mitigation.
Sources and references
Weaknesses (CWE): CWE-78
Relevant change history
Published
Preliminary advisory published.