/

CVE-2026-65110

Severity:

HIGH RISK

(7.8)

Unsafe Checkpoint Loading (CWE-502) in NVIDIA Megatron-LM

CVE-2026-65110

Awaiting Analysis

Vulnerability type

Category:

Unsafe Deserialization

CWE:

CWE-502

Impact:

Remote Code Execution

Severity:

HIGH RISK

(7.8)

CVSS version:

3.1

Catch this CVE while code is being written

Detect vulnerable code directly in pull requests, so CVEs are fixed before merge.

Summary

NVIDIA Megatron-LM contains an unsafe checkpoint-loading vulnerability that may allow arbitrary code execution when a user loads a maliciously crafted file. Successful exploitation could result in privilege escalation, information disclosure, or data tampering, particularly when checkpoint files come from untrusted or insufficiently verified sources.

NVIDIA Megatron-LM contains an unsafe checkpoint-loading vulnerability that may allow arbitrary code execution when a user loads a maliciously crafted file. Successful exploitation could result in privilege escalation, information disclosure, or data tampering, particularly when checkpoint files come from untrusted or insufficiently verified sources.

Affected context

The vulnerability occurs in Megatron-LM workflows that load checkpoint files using deserialization behavior capable of reconstructing executable or otherwise unsafe objects. Risk is higher when users obtain checkpoints from untrusted locations, accept files without integrity verification, or run loading processes with elevated permissions.

The vulnerability occurs in Megatron-LM workflows that load checkpoint files using deserialization behavior capable of reconstructing executable or otherwise unsafe objects. Risk is higher when users obtain checkpoints from untrusted locations, accept files without integrity verification, or run loading processes with elevated permissions.

Exploit preconditions

  • Attack surface: Checkpoint-loading functionality in NVIDIA Megatron-LM
  • Required access: The ability to provide or persuade a user or process to load a crafted checkpoint file
  • Trigger point: Deserialization during checkpoint loading
  • Why exploitation is possible: The loader may process attacker-controlled serialized content as executable object data rather than treating it as inert model state
  • Attack surface: Checkpoint-loading functionality in NVIDIA Megatron-LM
  • Required access: The ability to provide or persuade a user or process to load a crafted checkpoint file
  • Trigger point: Deserialization during checkpoint loading
  • Why exploitation is possible: The loader may process attacker-controlled serialized content as executable object data rather than treating it as inert model state

Why this happens

The underlying bug is unsafe deserialization of checkpoint data. A serialization format or loading routine that permits arbitrary object reconstruction can interpret attacker-controlled content as code-bearing objects during loading.

This maps to CWE-502: Deserialization of Untrusted Data, where data crossing a trust boundary is deserialized without sufficiently restricting the permitted types, behavior, or source integrity.

The underlying bug is unsafe deserialization of checkpoint data. A serialization format or loading routine that permits arbitrary object reconstruction can interpret attacker-controlled content as code-bearing objects during loading.

This maps to CWE-502: Deserialization of Untrusted Data, where data crossing a trust boundary is deserialized without sufficiently restricting the permitted types, behavior, or source integrity.

Potential impact

  • An attacker may execute arbitrary code in the context of the checkpoint-loading process.
  • The compromise could enable privilege escalation.
  • Sensitive information may be disclosed from the host or surrounding environment.
  • Model files, training data, or other artifacts could be modified or destroyed.
  • A compromised environment could facilitate further attacks against connected systems.
  • An attacker may execute arbitrary code in the context of the checkpoint-loading process.
  • The compromise could enable privilege escalation.
  • Sensitive information may be disclosed from the host or surrounding environment.
  • Model files, training data, or other artifacts could be modified or destroyed.
  • A compromised environment could facilitate further attacks against connected systems.

General mitigation guidance

Mitigation generally focuses on treating checkpoint files as untrusted input and eliminating executable deserialization behavior.

Common defensive patterns include:

  • Prefer restricted, data-only checkpoint formats and safe loading APIs.
  • Allow only explicitly approved primitive types and tensor structures during deserialization.
  • Verify checkpoint provenance and integrity before loading.
  • Keep model artifacts in controlled repositories with limited write access.
  • Load files in isolated, least-privileged environments with restricted network and filesystem access.
  • Avoid running checkpoint conversion or loading processes with unnecessary administrative privileges.

Mitigation generally focuses on treating checkpoint files as untrusted input and eliminating executable deserialization behavior.

Common defensive patterns include:

  • Prefer restricted, data-only checkpoint formats and safe loading APIs.
  • Allow only explicitly approved primitive types and tensor structures during deserialization.
  • Verify checkpoint provenance and integrity before loading.
  • Keep model artifacts in controlled repositories with limited write access.
  • Load files in isolated, least-privileged environments with restricted network and filesystem access.
  • Avoid running checkpoint conversion or loading processes with unnecessary administrative privileges.

How teams detect issues like this

Detection approaches may include:

  • Static analysis for generic deserialization APIs and loaders that permit arbitrary object reconstruction.
  • Code review checks for checkpoint paths that accept user-controlled or externally downloaded files.
  • Dependency and policy rules requiring approved data-only serialization formats.
  • Runtime monitoring for unexpected child processes, filesystem changes, network connections, or privilege transitions during checkpoint loading.
  • Artifact governance controls that record provenance, hashes, signatures, and approval status for model files.

Automated security review tools may help identify unsafe loading patterns during development.

Detection approaches may include:

  • Static analysis for generic deserialization APIs and loaders that permit arbitrary object reconstruction.
  • Code review checks for checkpoint paths that accept user-controlled or externally downloaded files.
  • Dependency and policy rules requiring approved data-only serialization formats.
  • Runtime monitoring for unexpected child processes, filesystem changes, network connections, or privilege transitions during checkpoint loading.
  • Artifact governance controls that record provenance, hashes, signatures, and approval status for model files.

Automated security review tools may help identify unsafe loading patterns during development.

Sources

SourceLink
github.comgithub.com/NVIDIA/product-security/tree/main/2026/5881
nvd.nist.govnvd.nist.gov/vuln/detail/CVE-2026-65110
cve.orgcve.org/CVERecord?id=CVE-2026-65110

Frequently asked

questions

It is generally triggered through a local file-loading action rather than a directly exposed network service. Remote impact may still be possible if an attacker can distribute or replace a checkpoint that a victim or automated pipeline later loads.

The attacker needs a path to cause a malicious checkpoint to be loaded, such as distributing a crafted artifact, influencing an artifact repository, or replacing a file in a location trusted by the loading workflow.

Use data-only or restricted checkpoint formats and loading APIs that do not reconstruct arbitrary objects. Validate provenance and integrity before deserialization, and isolate the loading process with minimal privileges.

Treat model and checkpoint artifacts as untrusted input, enforce repository and integrity policies, scan loading code for unsafe deserialization patterns, and monitor model-processing environments for unexpected behavior.

It is generally triggered through a local file-loading action rather than a directly exposed network service. Remote impact may still be possible if an attacker can distribute or replace a checkpoint that a victim or automated pipeline later loads.

The attacker needs a path to cause a malicious checkpoint to be loaded, such as distributing a crafted artifact, influencing an artifact repository, or replacing a file in a location trusted by the loading workflow.

Use data-only or restricted checkpoint formats and loading APIs that do not reconstruct arbitrary objects. Validate provenance and integrity before deserialization, and isolate the loading process with minimal privileges.

Treat model and checkpoint artifacts as untrusted input, enforce repository and integrity policies, scan loading code for unsafe deserialization patterns, and monitor model-processing environments for unexpected behavior.

Find out what's already
exploitable in your codebase.