VYPR
advisoryPublished Nov 24, 2026· 1 source

Zero-Day Deserialization Vulnerability in Microsoft DeepSpeed Allows RCE

A critical deserialization vulnerability in Microsoft's DeepSpeed library, ZDI-26-1064, allows remote attackers to execute arbitrary code on affected systems.

Zero Day Initiative (ZDI) has disclosed a critical deserialization vulnerability, identified as ZDI-26-1064, affecting Microsoft's DeepSpeed library. This flaw, carrying a CVSS score of 7.8, enables remote attackers to execute arbitrary code on vulnerable installations. Exploitation requires user interaction, typically by luring a user to interact with a malicious web page or open a specially crafted file.

The vulnerability stems from an issue within the build_engine_from_ds_checkpoint function, where the library fails to properly validate user-supplied data during the parsing of model configuration. This lack of validation allows for the deserialization of untrusted data, which an attacker can leverage to inject and execute malicious code within the context of the running process.

Microsoft's DeepSpeed is a widely used open-source deep learning optimization library that aims to make distributed training of large models faster and more efficient. Its ability to handle complex model configurations and checkpoints makes it a powerful tool for researchers and developers working with large-scale AI models. However, this reliance on parsing external data makes it susceptible to deserialization vulnerabilities if not handled with extreme care.

The disclosure timeline indicates that ZDI first reported the vulnerability to the vendor via GitHub on May 7, 2026. Following a period of communication and follow-ups, ZDI ultimately decided to publish the advisory as a zero-day due to a lack of timely response or acknowledgment from the maintainers, notifying the vendor of their intention on November 19, 2026.

Given the nature of this deserialization vulnerability, which requires user interaction, the primary mitigation strategy recommended by ZDI is to restrict user interaction with the product. This means users should be cautious about opening files or visiting links related to DeepSpeed configurations from untrusted sources. Organizations should also ensure that any systems running DeepSpeed are monitored for suspicious activity.

While a specific patch is not mentioned in the advisory, the vendor's awareness of the issue is noted through the reporting process. Users are advised to stay informed about any updates or security advisories released by Microsoft or the DeepSpeed project maintainers regarding this vulnerability. Until a patch is available, strict input validation and user awareness remain the most effective defenses.

This vulnerability highlights the ongoing challenges in securing complex software libraries, particularly those that handle external data inputs. The widespread adoption of deep learning frameworks like DeepSpeed means that vulnerabilities within them can have a significant impact on the security posture of organizations engaged in AI research and development.

Synthesized by Vypr AI