CVE-2025-23354
7.8NVIDIA · Megatron-LM
NVIDIA Megatron-LM contains a code injection vulnerability in the ensemble_classifier script that may allow local attackers to achieve code execution and privilege escalation.
Executive summary
A high-severity code injection vulnerability in NVIDIA Megatron-LM could allow an authenticated local attacker to execute arbitrary code and compromise system integrity.
Vulnerability
The vulnerability is a code injection flaw (CWE-94) within the ensemble_classifier script, which fails to properly sanitize inputs. An attacker with local low-level privileges can supply malicious data to trigger this injection, leading to unauthorized code execution.
Business impact
Successful exploitation of this vulnerability poses a significant risk to organizational infrastructure. An attacker could leverage this flaw to escalate privileges, disclose sensitive information, or tamper with system data, potentially leading to a complete compromise of the affected host. Given the CVSS score of 7.8, this is classified as a High-severity issue that requires timely attention to prevent lateral movement or data loss.
Remediation
Immediate Action: Update NVIDIA Megatron-LM to version 0.13.1 or 0.12.3 as specified in the official vendor advisory.
Proactive Monitoring: Review system logs for unusual script execution patterns or unauthorized attempts to access or modify the ensemble_classifier utility.
Compensating Controls: Restrict local access to the affected environment and ensure that only authorized users with verified integrity can interact with the machine learning toolset.
Exploitation status
Public Exploit Available: No
Analyst recommendation
Organizations utilizing NVIDIA Megatron-LM must prioritize upgrading to the patched versions to eliminate the code injection risk. Given the potential for privilege escalation and data tampering, immediate deployment of these security updates is essential to maintain the security posture of the affected systems.