Description
NVIDIA Megatron-LM for all platforms contains a vulnerability in the pretrain_gpt script, where malicious data created by an attacker may cause a code injection issue. A successful exploit of this vulnerability may lead to code execution, escalation of privileges, information disclosure, and data tampering.
Problem types
CWE-94 Improper Control of Generation of Code ('Code Injection')
Product status
All versions prior to 0.13.1 and 0.12.3
References
nvd.nist.gov/vuln/detail/CVE-2025-23348
www.cve.org/CVERecord?id=CVE-2025-23348
nvidia.custhelp.com/app/answers/detail/a_id/5698