(0Day) PyTorch Foundation PyTorch AOTIModelPackageLoader Directory Traversal Remote Code Execution Vulnerability
Vulnerability Details
This vulnerability allows remote attackers to execute arbitrary code on affected installations of PyTorch Foundation PyTorch. User interaction is required to exploit this vulnerability in that the target must visit a malicious page or open a malicious file.
The specific flaw exists within the AOTInductor model package loader. The issue results from the lack of proper validation of a user-supplied path prior to using it in file operations. An attacker can leverage this vulnerability to execute code in the context of the current user.
Additional Details
09/02/26 - ZDI submitted the report to the vendor’s GitHub account
09/15/26 - the vendor rejected the report as expected behavior and closed the advisory
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-09-09 - Vulnerability reported to vendor
- 2026-11-24 - Coordinated public release of advisory
- 2026-11-24 - Advisory Updated
Credit
Alex Williams (https://www.al443x.com)