CVE-2026-136431: (0Day) PyTorch Foundation PyTorch load_state_dict_from_url Deserialization of Untrusted Data Remote Code Execution Vulnerability
PyTorch Foundation PyTorch loadstatedictfromurl Deserialization of Untrusted Data 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 loadstatedictfromurl function. The issue results from the lack of proper validation of user-supplied data, which can result in deserialization of untrusted data. An attacker can leverage this vulnerability to execute code in the context of the current process. Was ZDI-CAN-32601.
Affected Software
Event History
Frequently Asked Questions
What must an attacker do to exploit this issue?
The attacker must induce the target to visit a malicious page or open a malicious file. Exploitation involves supplying untrusted data that reaches the load_state_dict_from_url function and is deserialized without proper validation.
What level of access does successful exploitation provide?
Successful exploitation can allow arbitrary code execution in the context of the current process. The stated impact includes compromise of confidentiality, integrity, and availability.
Is prior authentication or local access required?
No prior privileges are required according to the provided vector, but user interaction is required. The attack vector is local, with exploitation dependent on the target opening malicious content or visiting a malicious page.