cbcvebase.
CVE-2025-23304
published 2025-08-13

CVE-2025-23304: NVIDIA NeMo library for all platforms contains a vulnerability in the model loading component, where an attacker could cause code injection by loading .nemo…

PriorityP262critical9.8CVSS 3.1
AVNACLPRNUINSUCHIHAH
EPSS
0.99%
58.5th percentile
NVIDIA NeMo library for all platforms contains a vulnerability in the model loading component, where an attacker could cause code injection by loading .nemo files with maliciously crafted metadata. A successful exploit of this vulnerability may lead to remote code execution and data tampering.

Affected

4 ranges
VendorProductVersion rangeFixed in
msrccbl2_wpa_supplicant_2.10-1_on_cbl_mariner_2.0
msrccm1_wpa_supplicant_2.10-1_on_cbl_mariner_1.0
nvidianemo< 2.3.22.3.2
nvidianvidia_nemo_framework

Detection & IOCsextracted from sources · hover to see the quote

filenamemodel_config.yaml
commandhydra.utils.instantiate() with builtins.exec() as _target_
commandenum.bltns.eval
commandnemo.core.classes.common.os.system
  • Monitor for loading of .nemo or .qnemo files (TAR archives) containing a model_config.yaml with a _target_ key referencing callable builtins such as builtins.exec, builtins.eval, or os.system — these are the primary RCE payload delivery mechanism for CVE-2025-23304.
  • Inspect model_config.yaml files inside .nemo/.qnemo archives for the presence of _target_ or _args_ keys pointing to non-NeMo callables (e.g., builtins.exec, os.system, eval) — this is the attacker-controlled field passed unsanitized to hydra.utils.instantiate().
  • Alert on calls to hydra.utils.instantiate() where the _target_ value resolves to builtins.exec or builtins.eval at runtime, as these are the confirmed PoC payload patterns for this CVE.
  • ·The Hydra block-list mitigation (comparing _target_ against known-dangerous callables like builtins.exec) is NOT yet available in a released version of Hydra as of January 2026, and is trivially bypassed even when present. Do not rely on it as a control.
  • ·The fix for CVE-2025-23304 is present in NeMo version 2.3.2. Environments running earlier versions of NeMo remain vulnerable whenever a .nemo or .qnemo file is loaded.
  • ·Over 700 HuggingFace models are distributed in NeMo format as of January 2026. Any of these could be weaponized with a malicious model_config.yaml without changing the model weights, making the attack invisible to weight-only integrity checks.
  • ·No malicious in-the-wild exploitation of CVE-2025-23304 had been observed as of December 2025, but the attack surface is broad given the popularity of affected HuggingFace models.

CVSS provenance

nvdv3.19.8CRITICALCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
vendor_msrc9.8CRITICAL
Stop checking back — get the weekly exploitation signal.

Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.