/

CVE-2026-65180

Severity:

HIGH RISK

(7.8)

Unsafe Deserialization (CWE-502) in Megatron-LM Checkpoints

CVE-2026-65180

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 also enable privilege escalation, information disclosure, and data tampering.

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 also enable privilege escalation, information disclosure, and data tampering.

Affected context

The vulnerability occurs in Megatron-LM environments that load checkpoint files from untrusted or insufficiently verified sources. Risk increases when a user, training workflow, or automated process deserializes a crafted checkpoint with elevated permissions or access to sensitive data and systems.

The vulnerability occurs in Megatron-LM environments that load checkpoint files from untrusted or insufficiently verified sources. Risk increases when a user, training workflow, or automated process deserializes a crafted checkpoint with elevated permissions or access to sensitive data and systems.

Exploit preconditions

  • Attack surface: Checkpoint loading and deserialization functionality
  • Required access: The attacker must cause a victim, job, or service to load a maliciously crafted checkpoint file
  • Trigger point: Processing the checkpoint during model or training-state loading
  • Why exploitation is possible: The loading process may deserialize attacker-controlled object data as executable or otherwise trusted runtime content
  • Attack surface: Checkpoint loading and deserialization functionality
  • Required access: The attacker must cause a victim, job, or service to load a maliciously crafted checkpoint file
  • Trigger point: Processing the checkpoint during model or training-state loading
  • Why exploitation is possible: The loading process may deserialize attacker-controlled object data as executable or otherwise trusted runtime content

Why this happens

The underlying issue is an unsafe deserialization pattern in checkpoint loading. When serialized data is treated as trusted and reconstructed without sufficiently restricting object types or validating its origin, attacker- controlled content may cause unintended object behavior during loading. This maps to CWE-502, Unsafe Deserialization, because data reconstruction crosses a trust boundary and may invoke behavior beyond ordinary data parsing.

The underlying issue is an unsafe deserialization pattern in checkpoint loading. When serialized data is treated as trusted and reconstructed without sufficiently restricting object types or validating its origin, attacker- controlled content may cause unintended object behavior during loading. This maps to CWE-502, Unsafe Deserialization, because data reconstruction crosses a trust boundary and may invoke behavior beyond ordinary data parsing.

Potential impact

  • Arbitrary code execution in the affected process
  • Privilege escalation within the execution environment
  • Disclosure of credentials, model data, or other accessible information
  • Tampering with checkpoints, training data, or generated outputs
  • Compromise of connected systems or computational resources
  • Arbitrary code execution in the affected process
  • Privilege escalation within the execution environment
  • Disclosure of credentials, model data, or other accessible information
  • Tampering with checkpoints, training data, or generated outputs
  • Compromise of connected systems or computational resources

General mitigation guidance

Mitigation generally focuses on reducing trust in checkpoint files and

eliminating unsafe deserialization behavior.

Common defensive patterns include:

  • Use data-only or restricted checkpoint formats and loaders that do not reconstruct arbitrary objects
  • Permit only explicitly allowlisted classes or primitive data types during deserialization
  • Verify checkpoint provenance, integrity, and authenticity before loading
  • Store checkpoints in access-controlled locations and limit who or what can replace them
  • Run checkpoint processing with least-privilege identities and isolated runtime permissions
  • Keep secrets and unnecessary network or filesystem access unavailable to loading processes

Mitigation generally focuses on reducing trust in checkpoint files and

eliminating unsafe deserialization behavior.

Common defensive patterns include:

  • Use data-only or restricted checkpoint formats and loaders that do not reconstruct arbitrary objects
  • Permit only explicitly allowlisted classes or primitive data types during deserialization
  • Verify checkpoint provenance, integrity, and authenticity before loading
  • Store checkpoints in access-controlled locations and limit who or what can replace them
  • Run checkpoint processing with least-privilege identities and isolated runtime permissions
  • Keep secrets and unnecessary network or filesystem access unavailable to loading processes

How teams detect issues like this

Detection approaches may include:

  • Static analysis rules for generic deserialization APIs and unrestricted object reconstruction
  • Code review checks for checkpoint loaders that process attacker-controlled or weakly verified files
  • Repository and artifact policies requiring signed, integrity-checked, or approved checkpoint sources
  • Runtime monitoring for unexpected child processes, filesystem changes, network connections, or privilege transitions during model loading
  • Automated security review tools that flag unsafe serialization and deserialization patterns

Detection approaches may include:

  • Static analysis rules for generic deserialization APIs and unrestricted object reconstruction
  • Code review checks for checkpoint loaders that process attacker-controlled or weakly verified files
  • Repository and artifact policies requiring signed, integrity-checked, or approved checkpoint sources
  • Runtime monitoring for unexpected child processes, filesystem changes, network connections, or privilege transitions during model loading
  • Automated security review tools that flag unsafe serialization and deserialization patterns

Sources

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

Frequently asked

questions

Exploitation is generally indirect rather than an unauthenticated network attack. It may occur when a victim, service, or automated workflow is persuaded or configured to load an attacker-controlled checkpoint.

The attacker needs a way to provide, replace, or influence the checkpoint that will be loaded, or to convince a user or process to obtain and load it.

Treat checkpoints as untrusted input and use restricted, data-only loading mechanisms with explicit type allowlists and integrity or authenticity verification.

Establish trusted artifact pipelines, enforce checkpoint provenance policies, isolate model-loading processes, and apply least privilege to training and inference workloads.

Exploitation is generally indirect rather than an unauthenticated network attack. It may occur when a victim, service, or automated workflow is persuaded or configured to load an attacker-controlled checkpoint.

The attacker needs a way to provide, replace, or influence the checkpoint that will be loaded, or to convince a user or process to obtain and load it.

Treat checkpoints as untrusted input and use restricted, data-only loading mechanisms with explicit type allowlists and integrity or authenticity verification.

Establish trusted artifact pipelines, enforce checkpoint provenance policies, isolate model-loading processes, and apply least privilege to training and inference workloads.

Find out what's already
exploitable in your codebase.