CVE-2025-23306 Code injection in Megatron-LM

High 7.8 Published Updated

An attacker can inject malicious code into NVIDIA Megatron-LM via arguments.py, leading to code execution, privilege escalation, and data compromise.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Local or same network only
Victim action needed
Not needed
Fix
None listed

What is CVE-2025-23306?

CVE-2025-23306 is a high-severity code injection vulnerability in NVIDIA Megatron-LM, published on 13 Aug 2025. It can only be exploited from the same machine or local network, with no action from the victim.

Official description

NVIDIA Megatron-LM for all platforms contains a vulnerability in the megatron/training/ arguments.py component where an attacker could cause a code injection issue by providing a malicious input. A successful exploit of this vulnerability may lead to code execution, escalation of privileges, information disclosure, and data tampering.

Weakness: CWE-94

Which versions are affected by CVE-2025-23306?

It affects 1 product.

Products include Nvidia Megatron-Lm.

How do I fix CVE-2025-23306?

No fix has been published for CVE-2025-23306 yet. Limit exposure of the affected software until one is available.

Upgrade, and never evaluate templates, expressions or code built from user input. More about Code injection.

Is CVE-2025-23306 being exploited?

There is no known exploitation of CVE-2025-23306 in the wild and no public exploit code.

Sources

Also known as GHSA-63mx-9cw2-m4wm.

Is CVE-2025-23306 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free