/

CVE-2026-65178

Severity:

HIGH RISK

(7.8)

Unsafe Deserialization (CWE-502) in NVIDIA NeMo Loader

CVE-2026-65178

Analyzed

Vulnerability type

Category:

Unsafe Deserialization

CWE:

CWE-502

Impact:

Code Execution, Data Tampering, Denial of Service, and Information Disclosure

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 NeMo contains an unsafe dataset-loading workflow in which a maliciously crafted model_config.yaml may inject parameters during model configuration processing. If an attacker can cause the vulnerable workflow to process that file, exploitation may enable code execution, data tampering, denial of service, or information disclosure.

Affected context

The vulnerability occurs in NVIDIA NeMo deployments that load datasets or related model configuration through model_config.yaml. Risk depends on whether an attacker can supply, replace, or influence the configuration file and whether the loading workflow processes injected parameters without sufficiently restricting their meaning or validating their source.

Exploit preconditions

  • Attack surface: NeMo's dataset-loading and model-configuration workflow
  • Required access: Ability to provide, modify, or influence a processed model_config.yaml
  • Trigger point: Loading and interpreting model configuration during dataset or model preparation
  • Why exploitation is possible: Configuration data can introduce unsafe parameters that are processed as trusted input, potentially causing unintended object behavior or execution

Why this happens

The underlying bug is an unsafe deserialization and configuration-handling pattern. A configuration loader interprets attacker-influenced serialized data with more capability than is necessary for ordinary settings, allowing crafted values to affect program behavior beyond simple data representation. This maps to CWE-502: Deserialization of Untrusted Data, because serialized configuration is treated as trusted input without sufficiently restricting accepted types, parameters, or behaviors.

Potential impact

  • An attacker may execute code in the NeMo process context.
  • Data or model artifacts could be modified or poisoned.
  • Processing jobs could become unavailable through denial-of-service conditions.
  • Sensitive configuration, datasets, or runtime information could be disclosed.
  • A compromised process could provide a path toward broader environment compromise, depending on its privileges.

General mitigation guidance

Mitigation generally focuses on reducing trust in configuration files and preventing configuration parsing from invoking unintended behavior.

Common defensive patterns include:

  • Using safe, data-only deserialization APIs with explicit type restrictions.
  • Defining allowlisted configuration schemas and rejecting unknown or executable parameters.
  • Validating configuration before use and separating parsing from operational behavior.
  • Treating model and dataset configuration as untrusted when sourced from external users or repositories.
  • Restricting write access to configuration files and verifying their integrity where appropriate.
  • Running dataset-loading processes with least privilege, isolated credentials, and constrained filesystem and network access.

How teams detect issues like this

Detection can focus on both code and deployment behavior:

  • Use static analysis to identify YAML or serialized-data loaders that permit arbitrary object construction.
  • Review code paths where configuration values are converted into classes, callables, commands, or dynamic imports.
  • Flag configuration schemas that accept unknown fields or map user-controlled values directly into runtime options.
  • Monitor unexpected changes to model_config.yaml, including modifications from untrusted identities or processes.
  • Enforce repository and CI policies requiring schema validation, configuration ownership, and integrity checks.
  • Use automated code-review or software-composition analysis tools as supplementary checks for unsafe deserialization patterns.

Sources

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

Frequently asked

questions

Exploitability depends on the deployment and data-ingestion model. It may be reachable remotely when untrusted users, repositories, jobs, or services can supply a model_config.yaml that the NeMo workflow later processes.

The key prerequisite is the ability to create, replace, or influence a configuration file consumed by the vulnerable dataset-loading workflow. The required permissions vary by deployment.

Use data-only YAML parsing with strict allowlisted schemas, reject unexpected parameters, and ensure configuration values cannot trigger object construction or executable behavior.

Treat model and dataset metadata as untrusted, enforce configuration integrity and ownership controls, scan code for unsafe deserialization APIs, and run processing jobs with minimal privileges and isolation.

Find out what's already
exploitable in your codebase.