Skip to content
DayZeroHub
High Not yet writtenCVSS 7.8CVE-2026-136431

CVE-2026-136431: PyTorch Foundation PyTorch load_state_dict_from_url Deserialization of Untrusted Data Remote Code Execution Vulnerability

PyTorch Foundation PyTorch

Preliminary notice: published right away from the original source data, without editorial write-up. It will shortly be replaced by a written and reviewed version.

Summary

CVE-2026-136431: high-severity vulnerability (CVSS 7.8) in PyTorch Foundation PyTorch.

What happened

Original description from the source: PyTorch Foundation PyTorch load_state_dict_from_url 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 load_state_dict_from_url 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.

Why it matters

High severity, CVSS 7.8.

Affected products and versions

PyTorch Foundation PyTorch 2.13.0

ProductVersionsFixed in
PyTorch Foundation PyTorch2.13.0—

Action recommended by the source

See the official references for the fix or mitigation.

Information taken from the source or the vendor. Verify it at the original link before acting.

Sources and references

Weaknesses (CWE): CWE-502

Relevant change history

  1. Published

    Preliminary advisory published.