CVE-2026-136433 in PyTorchinfo

Summary

by MITRE • 11/24/2026

PyTorch Foundation PyTorch torch_save_to_dcp 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 checkpoint format conversion utilities. 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 user. Was ZDI-CAN-32834.

VulDB is the best source for vulnerability data and more expert information about this specific topic.

Analysis

by VulDB Data Team • 11/25/2026

The PyTorch Foundation has addressed a critical security flaw within its deep learning framework, specifically identified as CVE ID associated with advisory ZDI-CAN-32834. This vulnerability resides in the checkpoint format conversion utilities, which are designed to facilitate the transfer and storage of model states across different environments or versions of the software. The core technical deficiency is a failure to implement proper validation mechanisms for user-supplied data prior to processing it through Python's serialization protocols. When an application utilizes these specific utility functions to load or convert checkpoint files that have been crafted by an adversary, the system proceeds with deserializing the untrusted input without sufficient scrutiny of its structure or content. This lack of sanitization allows malicious payloads embedded within the serialized data to be executed automatically upon loading, bypassing standard security controls that might otherwise prevent such execution paths in more rigorously validated contexts.

From a technical perspective, this vulnerability is classified under CWE-502, which denotes Deserialization of Untrusted Data. The attack vector relies on the inherent risks associated with Python's pickle module and similar serialization libraries, where arbitrary objects can be instantiated during the deserialization process if not properly restricted. An attacker who successfully exploits this flaw can achieve Remote Code Execution by tricking a user into opening a malicious checkpoint file or visiting a webpage that triggers the automatic loading of such files through integrated web interfaces or automated pipelines. The operational impact is severe, as the executed code runs with the privileges of the current user account. This means that if an analyst or developer opens a compromised model file on their workstation, they may inadvertently grant an attacker full control over their system, potentially leading to data exfiltration, installation of persistent backdoors, or lateral movement within a connected network infrastructure.

The exploitation scenario typically involves social engineering elements where the target must interact with the malicious artifact, aligning with ATT&CK technique T1203, which covers Exploitation for Client Execution. This highlights that while the vulnerability is technically remote in nature due to the potential delivery mechanisms like web pages or file sharing services, it requires a degree of user interaction to trigger the initial deserialization event. The severity of this issue underscores the importance of treating all external model checkpoints and serialized data as potentially hostile inputs. Security teams must recognize that deep learning frameworks are not immune to traditional software vulnerabilities when they handle dynamic code execution features like serialization.

To mitigate this risk, organizations should immediately apply the latest patches provided by the PyTorch Foundation for their specific version of the framework. In environments where patching is not instantly feasible, defensive measures should include restricting the use of checkpoint conversion utilities to trusted internal sources only and implementing strict file type validation at the network perimeter or application gateway level. Additionally, adopting a principle of least privilege can limit the blast radius if an exploitation attempt occurs by ensuring that development workstations do not run with administrative rights. Security awareness training is also critical to educate users on the risks associated with opening model files from unverified sources, thereby reducing the likelihood of successful social engineering attacks targeting this specific vulnerability vector.

Responsible

Zdi

Reservation

11/24/2026

Disclosure

11/24/2026

Moderation

accepted

CPE

ready

EPSS

0.00384

KEV

no

Activities

very low

Sources

Do you want to use VulDB in your project?

Use the official API to access entries easily!