Skip to content

PyTorch and DeepSpeed wave (13 GHSAs): the checkpoint loader is the RCE

Source: GitHub Security Advisories published 2026-11-24T21:31Z, a coordinated ZDI-style engagement (ZDI-CAN-28091 through ZDI-CAN-33055) against PyTorch Foundation PyTorch and Microsoft DeepSpeed checkpoint/model loading. All thirteen legs are rated high and all are "open a malicious file / interact with the library" to code execution.

Wave in one line: thirteen advisories on the two most-used ML training stacks, every one of them the same sentence: loading a model checkpoint parses attacker bytes, and the parsers for torch.load-family paths, DCP format conversion, PT2 archives, AOTInductor packages, and DeepSpeed optimizer states treat model files as trusted code.

GHSA CVE Loader sink Shape
3rc2 CVE-2026-136433 torch_save_to_dcp checkpoint format conversion Deserialization of untrusted data
gm9v CVE-2026-136432 FileSystemReader (DCP reader) Deserialization of untrusted data
m6wf CVE-2026-136431 load_state_dict_from_url Deserialization of untrusted data
qxg3 CVE-2026-136428 load_compiled_function Deserialization of untrusted data
qx8f CVE-2026-136429 PT2 archive parsing Exposed dangerous function reachable from file
9hqx CVE-2026-136426 PT2 file parsing Code injection from parsed string
fpqm CVE-2026-136430 AOTIModelPackageLoader Directory traversal in package extraction
3rwm CVE-2026-136427 AOTIModelPackageLoader Command injection via unvalidated string into a system call
6w35 CVE-2026-136436 DeepSpeed torch_checkpoint_engine Checkpoint data deserialization
hf46 CVE-2026-136437 DeepSpeed parse_optim_states Checkpoint data deserialization
8gj7 CVE-2026-136439 DeepSpeed _get_zero_stage Checkpoint data deserialization
95rc CVE-2026-136438 DeepSpeed build_engine_from_ds_checkpoint Model-config data deserialization
6vpm CVE-2026-136435 DeepSpeed InferenceEngine Checkpoint data deserialization

Authorized validation only

Build inert checkpoints and model packages you authored yourself, run loaders inside a disposable venv or container you own, and use marker files rather than reverse shells. Never load third-party or production model weights on a workstation holding credentials. This page deliberately contains no payload shapes.

Why this is an operator page

Model-sharing culture makes checkpoint files the most-trusted untrusted artifact in AI infrastructure. A pentester or bounty hunter rarely gets to "submit a model," but the same loader sinks are reached indirectly through any workflow that ingests a third-party artifact: HuggingFace-style model hubs, fine-tune services that accept uploaded adapters, inference platforms with user-supplied checkpoint paths, MLOps pipelines pulling unvetted revisions, and collaboration tools that let a user "import a trained model." This wave is the authoritative inventory of which function names to grep for when a target runs PyTorch or DeepSpeed anywhere in the pipeline.

Operator rules

  1. Model file = code; enumerate loader sinks by name. For any AI/ML target, grep the dependency tree for load/parse/read entry points: torch.load, load_state_dict_from_url, torch.distributed.checkpoint readers (FileSystemReader), save_to_dcp-family converters, load_compiled_function, PT2/AOTIModelPackageLoader, and DeepSpeed parse_optim_states / build_engine_from_ds_checkpoint / _get_zero_stage / torch_checkpoint_engine / InferenceEngine. Every name on that list is a documented code-execution sink in current or recent versions; anything you find that is not on the list is your fuzzing queue.
  2. Format converters are the underrated leg. torch_save_to_dcp (format conversion utility) deserializes on a conversion path, not a training path. Conversion/import endpoints in MLOps UIs are attacker-reachable file parsers that security reviews tend to miss because "it just re-saves the file." Test conversion routes with lab-built malformed artifacts separately from load routes.
  3. Compiled-model packages combine archive and shell. The AOTInductor loader got both a directory traversal (extraction writes outside the package root) and a command injection (package-supplied string reaches a system call). Compiled-model formats run compiler/build tooling at load time; treat their metadata fields as argv material. Validation shape: a model package you build yourself with synthetic traversal members and an inert marker-file command, loaded in a disposable container.
  4. Deserialization "user interaction required" is a bounty-grade precondition, not a dismissal. Every ZDI leg here needs the victim to open a file, exactly like office-document bugs. In AI workflows the "user" is often a service (auto-sync from a hub, queued import job), which removes the human from the precondition entirely. Map whose account opens your artifact before writing the report severity.
  5. Wave fingerprint predicts sibling gaps. Thirteen advisories published in the same minute from one research engagement means the auditors enumerated loader functions systematically. The useful move after such a wave: diff the patched functions against the library's remaining unpicked loaders (new torch.export/torch.package paths, additional DeepSpeed engine constructors), fuzz the unpicked set with the same malformed-input shapes, and check whether the fixes were per-function or at a shared deserialization choke point (per-function fixes predict bypasses via unpicked functions).

Cross-references

Sources

  • GitHub Advisory Database, published 2026-11-24T21:31Z: the thirteen GHSAs linked in the table.
  • ZDI-CAN-28091, 29214, 29241-29243, 32262, 32600-32603, 32653, 32834, 33055 as cited per advisory.