NVIDIA Megatron-LM Pretrain_GPT Code Injection
CVE-2025-23348 Published on September 24, 2025
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.
Vulnerability Analysis
CVE-2025-23348 is exploitable with local system access, and requires small amount of user privileges. This vulnerability is considered to have a low attack complexity. The potential impact of an exploit of this vulnerability is considered to be very high.
Weakness Type
What is a Code Injection Vulnerability?
The software constructs all or part of a code segment using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the syntax or behavior of the intended code segment.
CVE-2025-23348 has been classified to as a Code Injection vulnerability or weakness.
Products Associated with CVE-2025-23348
You can be notified by email with stack.watch whenever vulnerabilities like CVE-2025-23348 are published in NVIDIA Megatron Lm:
Affected Versions
NVIDIA Megatron-LM Version All versions prior to 0.13.1 and 0.12.3 is affected by CVE-2025-23348Exploit Probability
EPSS (Exploit Prediction Scoring System) scores estimate the probability that a vulnerability will be exploited in the wild within the next 30 days. The percentile shows you how this score compares to all other vulnerabilities.