(0Day) PyTorch Foundation PyTorch PT2 File Parsing Code Injection Remote Code Execution Vulnerability

November 24th, 2026

Vulnerability Details

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.

Additional Details

07/17/26 - ZDI submitted the report to the vendor’s GitHub account
07/23/26 - the vendor rejected the report as expected behavior and closed the advisory
07/29/26 - ZDI replied with an evidence form the product’s documentation
11/03/26 - ZDI notified the vendor of the intention to publish the case as a 0-day advisory

-- Mitigation: Given the nature of the vulnerability, the only salient mitigation strategy is to restrict interaction with the product


Disclosure Timeline

  • 2026-07-17 - Vulnerability reported to vendor
  • 2026-11-24 - Coordinated public release of advisory
  • 2026-11-24 - Advisory Updated

Credit

YJK(@YJK0805) of ZUSO ART

Back to Advisories