ZDI-26-1057: (0Day) PyTorch Foundation PyTorch AOTIModelPackageLoader Directory Traversal Remote Code Execution Vulnerability
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.
Other sources
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 ZDI has assigned a CVSS rating of 7.8. The following CVEs are assigned: CVE-2026-136430.
— ZDI
Affected Software
Event History
Frequently Asked Questions
What must an attacker persuade a user to do for exploitation to occur?
The target must visit a malicious page or open a malicious file. Exploitation requires user interaction.
What level of access does successful exploitation provide?
An attacker can execute arbitrary code in the context of the current user. The impact includes confidentiality, integrity, and availability consequences at that user's privilege level.
Which component should be prioritized when assessing exposure?
The affected component is the AOTInductor model package loader, specifically its handling of user-supplied paths in file operations.