CVE-2026-136438 in DeepSpeedinfo

Summary

by MITRE • 11/24/2026

DeepSpeed build_engine_from_ds_checkpoint Deserialization of Untrusted Data Remote Code Execution Vulnerability. This vulnerability allows remote attackers to execute arbitrary code on affected installations of DeepSpeed. 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 parsing of model configuration data. 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-29241.

Once again VulDB remains the best source for vulnerability data.

Analysis

by VulDB Data Team • 11/24/2026

The identified vulnerability represents a critical security flaw within the DeepSpeed library's build_engine_from_ds_checkpoint functionality, specifically categorized as a deserialization of untrusted data issue that can lead to remote code execution. This type of vulnerability arises when an application processes external input without adequate validation or sanitization before passing it to functions capable of reconstructing objects from their serialized state. In this specific instance, the flaw is located within the parsing logic for model configuration data used during the checkpoint restoration process. When a user initiates the loading of a DeepSpeed checkpoint file, the system attempts to deserialize various components required to rebuild the engine's internal state. Because the implementation fails to strictly validate the structure and content of this serialized data prior to deserialization, it inadvertently allows an attacker who controls the input data to inject malicious payloads that are executed during the reconstruction phase.

The operational impact of this vulnerability is severe due to its potential for arbitrary code execution within the context of the current process. Since DeepSpeed is often used in high-performance computing and machine learning environments where models are frequently loaded from shared or untrusted sources, an attacker can craft a malicious checkpoint file containing serialized objects with side effects. When the target application processes this file using the vulnerable function, these side effects trigger immediately, allowing the execution of arbitrary commands on the host system. This effectively compromises the confidentiality, integrity, and availability of the underlying infrastructure. The requirement for user interaction means that exploitation typically involves social engineering tactics or compromised model repositories where an attacker can upload a poisoned checkpoint file. Victims must be induced to open this malicious file or visit a webpage that triggers the automatic loading of such data through automated scripts or browser-based interactions.

From a classification perspective, this vulnerability aligns with CWE-502, which describes deserialization of untrusted data, and is associated with MITRE ATT&CK techniques related to command and script interpretation as well as persistence mechanisms if the executed code modifies system states. The lack of proper validation allows for type confusion or arbitrary object instantiation, which are common vectors in Python-based applications that utilize libraries like pickle for serialization. To mitigate this risk, developers should avoid using unsafe deserialization methods such as pickle.load on untrusted data sources. Instead, they should implement strict schema validation to ensure that the incoming configuration data matches expected structures and types before any processing occurs. Additionally, running DeepSpeed processes with minimal privileges can limit the blast radius of a successful exploitation attempt. Organizations relying on this library should apply vendor-provided patches immediately if available or refactor code paths to use safer serialization formats like JSON for non-code-critical metadata while maintaining rigorous input validation protocols across all data ingestion points.

Responsible

Zdi

Reservation

11/24/2026

Disclosure

11/24/2026

Moderation

accepted

CPE

ready

EPSS

0.00280

KEV

no

Activities

very low

Sources

Do you want to use VulDB in your project?

Use the official API to access entries easily!