Skip to main content

What Are NVIDIA NeMo and Megatron? Training Frameworks and Why They Carry Most of NVIDIA's Deserialization CVEs


For executives​

NeMo and Megatron are NVIDIA's open-source frameworks for building and training large AI models. Megatron provides the parallelism that spreads one model across thousands of GPUs; NeMo builds on it with recipes and tooling for language, speech, multimodal and biology models. They are also where most of NVIDIA's 2026 AI software vulnerabilities live: its 2026 CVE index lists 54 CVEs in Megatron and 25 in NeMo as of November 17, 2026, and 62 of those 79 are deserialization of untrusted data. Training frameworks load checkpoints, configurations and datasets from shared storage and public hubs, often on the largest and most privileged GPU clusters an organization runs.

What they are​

  • Megatron-LM and Megatron Core: NVIDIA's library for training transformer models at scale, splitting each model across GPUs with tensor, pipeline, sequence and expert parallelism.
  • Megatron Bridge: connects Megatron with the Hugging Face ecosystem, converting checkpoints between the two formats and providing training recipes.
  • NeMo Framework: NVIDIA's end-to-end framework for building, customizing and deploying generative models, including large language models, speech (NeMo Speech) and multimodal models.
  • BioNeMo: NeMo for biology and chemistry models.
  • Related tools: NeMo Curator for data preparation and NeMo Export-Deploy for exporting and serving trained models.

Why training frameworks are exposed​

Training is a pipeline of loading: base model checkpoints, intermediate checkpoints written by earlier runs, tokenizers, configuration files, datasets and preprocessing scripts. Much of it is Python objects saved with pickle, and much of it comes from shared file systems, object stores and public model hubs. The machines that load it are large GPU clusters with access to proprietary data, expensive compute and cloud credentials. A crafted checkpoint or configuration that runs code on load reaches all of that.

The 2026 record​

FrameworkCVEs in 2026 indexMain classesHighest score
Megatron (Megatron-LM and Megatron Bridge)5447 deserialization (CWE-502), 4 code injection (CWE-94)7.8
NeMo (NeMo Framework, NeMo Speech, BioNeMo, NeMo Export-Deploy)2515 deserialization, 4 code injection, 4 command injection8.8

Most are scored as local attacks, because a victim has to load a file. In a training cluster, that means anyone who can write a file a job will load.

Notable examples:

  • September 2026 Megatron Bridge bulletin: 30 deserialization CVEs in one bulletin, the largest single batch of CWE-502 flaws NVIDIA published in 2026.
  • CVE-2026-24157 (NeMo Framework): remote code execution through checkpoint loading.
  • CVE-2026-24217 (BioNeMo, 8.8): a path traversal flaw.
  • CVE-2025-33239 and CVE-2025-33240 (Megatron Bridge, February 2026): code injection in data merging and shuffling tutorials. Example code gets copied into production pipelines, so flaws in it matter.
  • CVE-2026-24252 (NeMo, June 2026): operating system command injection.

The pattern predates 2026: NVIDIA's 2025 bulletins already carried more than a dozen code injection CVEs in Megatron-LM and NeMo Framework.

Detection​

A training job should load data, compute on GPUs and write checkpoints. Malicious content in a checkpoint, configuration or tutorial-derived script runs inside that job, so the signals are behavioral: imports, exec or eval calls and child processes during loading that the framework does not normally produce; outbound connections from training nodes to hosts no job needs; writes outside checkpoint and log paths; and GPU modules loaded that no model requires. On multi-node jobs, the same anomaly on many ranks at once points to a poisoned shared file.

Securing training pipelines​

  • Keep NeMo, Megatron-LM and Megatron Bridge current; NVIDIA patched them repeatedly through 2026.
  • Prefer safetensors and torch.load with weights_only=True for checkpoints.
  • Restrict write access to checkpoint and dataset storage the way you would a code repository.
  • Review tutorial and example code before it enters production pipelines.
  • Pin base models and datasets by hash.