Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB
CVE-2024-0129 Overview
CVE-2024-0129 is a path traversal vulnerability [CWE-22] in NVIDIA NeMo, an open-source conversational AI toolkit. The flaw resides in the SaveRestoreConnector component, which performs unsafe extraction of .tar archive files. An authenticated local user can craft a malicious archive containing path traversal sequences that write files outside the intended extraction directory. Successful exploitation can lead to arbitrary code execution and data tampering on the host running NeMo. The vulnerability affects NeMo deployments across Windows, Linux, and macOS platforms.
Critical Impact
Local attackers with low privileges can achieve code execution and tamper with model artifacts or training data by supplying a malicious NeMo archive.
Affected Products
- NVIDIA NeMo (all versions prior to the fix referenced in NVIDIA Security Bulletin ID 5580)
- Linux kernel-based systems running NeMo
- Microsoft Windows and Apple macOS hosts running NeMo
Discovery Timeline
- 2024-10-15 - CVE-2024-0129 published to the National Vulnerability Database (NVD)
- 2026-06-17 - Last updated in NVD database
Technical Details for CVE-2024-0129
Vulnerability Analysis
NVIDIA NeMo packages model checkpoints and configuration data inside .tar archives. The SaveRestoreConnector class is responsible for restoring these archives when loading a saved model. The connector extracts archive members without validating that resolved member paths remain within the designated extraction directory. An attacker who can convince a NeMo user to load a crafted model archive can write arbitrary files to attacker-chosen locations.
Because NeMo often runs under user accounts with access to Python environments, startup scripts, and training datasets, file writes outside the extraction root can escalate quickly. Overwriting a Python module imported later in the workflow, or planting a shell initialization file, converts the path traversal into code execution within the user context.
Root Cause
The root cause is improper limitation of a pathname to a restricted directory. The underlying extraction routine trusts archive member names supplied by the .tar file. Entries containing ../ sequences or absolute paths are not sanitized before being joined to the extraction root, allowing directory escape.
Attack Vector
The attack vector is local and requires low privileges with no user interaction beyond loading the malicious archive. An attacker distributes a weaponized NeMo model file through a shared model hub, internal repository, or supply chain channel. When a victim invokes NeMo's restore functionality on the file, the embedded path traversal entries extract to attacker-controlled locations, enabling code execution and data tampering as described in NVIDIA's advisory.
No verified public proof-of-concept is available. See the NVIDIA Support Article for vendor-provided technical details.
Detection Methods for CVE-2024-0129
Indicators of Compromise
- Unexpected files appearing outside the NeMo extraction working directory, particularly in user home directories, Python site-packages, or startup script locations.
- .tar archives containing member names with ../ sequences or absolute paths loaded by NeMo processes.
- Modified timestamps on Python modules or configuration files immediately following a NeMo model restore operation.
Detection Strategies
- Inspect NeMo model archives before loading by listing archive contents and flagging entries with traversal sequences or absolute paths.
- Monitor Python processes invoking SaveRestoreConnector for file write operations outside the expected extraction directory.
- Audit model provenance by validating cryptographic hashes against trusted sources prior to restore.
Monitoring Recommendations
- Enable file integrity monitoring on Python environments, user profile directories, and NeMo working paths used by data science workloads.
- Log and alert on process execution chains where NeMo spawns unexpected child processes shortly after a model load.
- Correlate archive download events with subsequent file creation outside standard directories to identify traversal attempts.
How to Mitigate CVE-2024-0129
Immediate Actions Required
- Upgrade NeMo to the fixed version identified in the NVIDIA Support Article.
- Restrict NeMo model loading to archives sourced from trusted internal repositories with verified integrity.
- Run NeMo workloads under dedicated, least-privileged service accounts isolated from developer and production environments.
Patch Information
NVIDIA has released an updated version of NeMo that corrects the unsafe archive extraction in SaveRestoreConnector. Refer to NVIDIA Security Bulletin ID 5580 for the specific fixed version and upgrade guidance. Organizations should prioritize patching NeMo installations on shared research hosts and continuous integration systems where multiple users or pipelines load third-party models.
Workarounds
- Validate .tar archive contents prior to restore and reject any archive containing members with ../ sequences or absolute paths.
- Execute NeMo model restore operations inside containers or sandboxes with read-only bind mounts over sensitive host paths.
- Apply mandatory access controls such as AppArmor or SELinux profiles that constrain where the NeMo process may write files.
# Configuration example: list archive members and reject traversal entries before loading
tar -tf suspect_model.nemo | awk '/(^\/|\.\.\/)/ {print "BLOCKED: " $0; found=1} END {exit found}'
Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB

