Read the docs

Code injection in PyTorch PT2 file parsing enables code execution

Priority LOW 36CWE-94Published · Updated

Key facts

Attack vector
Local
Privileges required
None
User interaction
Required
Attack complexity
Low
Impact type
Code execution
Confidentiality · integrity · availability
High · High · High
Fix status
No fix listed

Attack profile from CVSS 3.0 · CNA. Fix status from CNA. Impact type from CWE-94.

Summary

The PyTorch Foundation PyTorch version 2.13.0 is affected. Parsing of PT2 files executes Python code from a user-supplied string without proper validation (CWE-94). A remote attacker can execute arbitrary code in the context of the current process when a user interacts with the library, and attack vectors vary by implementation.

Written with Claude Haiku 5.5 from the sources below · 2026-11-24

Description from the CNA

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.

Why it matters now

Exploitation None reported CISA SSVC · not in CISA KEV
EPSS 0.00455 31st percentileScored 2026-11-30
Fix No fix listed No fixed version in the sources yet

SSVC decision points

CISA ADP · SSVC 2.0.3

Exploitation
None
Automatable
No
Technical impact
Total

The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.

Affected products

VendorProductAffected versionsFixed inStatusSource
PyTorch FoundationPyTorch2.13.0—No fix listedCNA

Remediation

The sources list no fixed version for PyTorch.

Written with Claude Haiku 5.5 from the sources below · 2026-11-24

Timeline

  1. 2026-11-24 Threatist record created from CVE-2026-136426
  2. 2026-11-24 Alias added: GHSA-9hqx-6m26-fqj3
  3. 2026-11-25 CISA SSVC decision points changed

References

  • TI-2026-97753 PyTorch load_state_dict_from_url flaw allows remote code execution CVSS 3.0HIGH 7.8
  • TI-2026-97752 Path traversal in PyTorch AOTIModelPackageLoader allows code execution CVSS 3.0HIGH 7.8
  • TI-2026-97750 PyTorch load_compiled_function Deserialization Allows Remote Code Execution CVSS 3.0HIGH 7.8
  • TI-2026-97749 Command injection in PyTorch AOTIModelPackageLoader CVSS 3.0HIGH 7.8
  • TI-2026-97755 Untrusted data deserialization in PyTorch allows remote code execution CVSS 3.0HIGH 7.8
  • TI-2026-97754 PyTorch FileSystemReader deserialization flaw allows code execution CVSS 3.0HIGH 7.8
See all 7 →

Sources