Deserialization of Untrusted Data in PyTorch from PyTorch Foundation
CVE-2026-136431
7.8HIGH
What is CVE-2026-136431?
The PyTorch load_state_dict_from_url function contains a vulnerability that allows remote attackers to execute arbitrary code. The flaw arises from inadequate validation of user-supplied data during the deserialization process. By enticing a user to visit a malicious page or open a compromised file, an attacker can exploit this weakness to execute arbitrary code within the context of the current process. This highlights the need for stricter input validations to mitigate risks associated with deserializing untrusted data.
Affected Version(s)
PyTorch 2.13.0
