Skip to main content

Python EUVDEUVD-2025-19044

| CVE-2025-23265 HIGH
Code Injection (CWE-94)
2025-06-24 psirt@nvidia.com
7.8
CVSS 3.1 · NVD
View

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Code injection prevention, sandbox exec
MITRE ATT&CK

2 techniques across 2 tactics: Execution, Initial Access

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Impact

With a CVSS 3.1 score of 7.8 and vector AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H, this represents a high-severity vulnerability with several concerning characteristics: (1) Local attack vector (AV:L) limits exposure to systems with existing access, but common in shared HPC/cloud GPU clusters; (2) Low attack complexity (AC:L) indicates the exploit is straightforward requiring no special conditions; (3) Low privilege requirement (PR:L) means non-root local users can exploit; (4) No user interaction required (UI:N) enables automated attacks; (5) Unscoped impact (S:U) means only the vulnerable service is affected, not the entire system. The impact trio (C:H/I:H/A:H) demonstrates complete compromise potential. Real-world risk is elevated in multi-tenant ML training environments, data science clusters, and cloud GPU services where multiple users share compute resources. This is a legitimate priority vulnerability, not a CVSS inflation case—the combination of low barriers to exploitation with catastrophic impact makes it practically dangerous despite the local-only attack vector.

Exploit ScenarioDerived

An attacker with local system access to a shared GPU cluster or multi-tenant ML platform creates a malicious Megatron-LM configuration file or model checkpoint containing embedded Python code exploiting CWE-94. When a legitimate ML engineer or automated training pipeline loads this file using Megatron-LM (e.g., megatron_lm.load_model(attacker_file)), the Python code is deserialized and executed within the process context. The attacker gains: (1) Access to model weights and training data in memory, (2) Ability to modify model files or inject data poisoning, (3) Lateral movement to other cluster nodes if the Megatron process has network access, (4) Potential privilege escalation if the process runs with elevated permissions or has sudo rules. No user interaction is required—if the file is loaded automatically during scheduled training jobs, exploitation occurs unattended. A realistic attack vector is a compromised researcher sharing a 'pre-trained model' via internal repository, or an attacker planting malicious checkpoint files in shared storage (NFS mounts, S3 buckets).

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
No patch listed yet 0.0% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Mar 15, 2026

CVE-2025-23265 is a code injection vulnerability in NVIDIA Megatron-LM's Python component that allows local attackers with low privileges to execute arbitrary code by providing a malicious file. Successful exploitation enables code execution, privilege escalation, information disclosure, and data tampering. This vulnerability affects all platforms running Megatron-LM and poses significant risk to machine learning infrastructure, particularly in multi-tenant or shared compute environments.

RemediationAI

Immediate actions: (1) Consult NVIDIA security advisory (referenced in CVE documentation) for patched versions—apply patches prioritizing production ML training clusters; (2) Implement file access controls restricting which users can provide configuration/model files to Megatron-LM processes; (3) Run Megatron-LM processes with minimal required privileges (non-root service account with restricted file system access); (4) Validate and sanitize all external file inputs before processing—implement file format verification and signatures; (5) Use containerization (Docker/Kubernetes) with read-only file systems and network policies to limit blast radius. Longer-term: (1) Update to patched Megatron-LM versions once available from NVIDIA; (2) Implement input validation in upstream code for all file handling operations; (3) Replace dynamic code execution patterns (if applicable) with safe alternatives; (4) Deploy runtime monitoring to detect suspicious Python code execution patterns.

Affected VersionsENISA

Megatron LM All versions prior to 0.12.0

Affected Packages

euvd megatron_lm_all_versions_prior_to no fix

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

NVIDIA Megatron-LM is a large-scale language model training framework that processes Python files and configurations during model initialization and execution. The vulnerability resides in a Python component (likely related to configuration loading, model serialization, or dynamic code execution) and is classified as CWE-94 (Improper Control of Generation of Code), indicating unsafe deserialization, eval-like functions, or dynamic code generation from untrusted input. The vulnerability stems from insufficient validation of file contents before processing, allowing attackers to inject arbitrary Python code through crafted files that are subsequently executed within the Megatron-LM process context. This affects all platform variants (Linux, cloud deployments, on-premises installations) where Megatron-LM is deployed.

Know when Python gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

NVD PRIMARY 7.8 HIGH
AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Primary rating from NVD · only source for this CVE.

CVSS VectorNVD

Attack Vector
Local
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

DescriptionCVE.org

NVIDIA Megatron-LM for all platforms contains a vulnerability in a python component where an attacker may cause a code injection issue by providing a malicious file. A successful exploit of this vulnerability may lead to Code Execution, Escalation of Privileges, Information Disclosure and Data Tampering.

Executive ViewAI

Why It Matters

NVIDIA Megatron-LM contains a critical code injection vulnerability affecting all platforms that could allow attackers to execute arbitrary code and escalate privileges on affected systems. Organizations using Megatron-LM for machine learning workloads face immediate risk of data compromise, service disruption, and unauthorized access until mitigation measures are implemented.

Business Impact: High
Compensating Controls

Implement strict input validation and file type whitelisting for any file submissions to Megatron-LM; isolate Megatron-LM instances on segmented networks with no direct internet access; disable or restrict file upload/import features; monitor process execution and file system changes for suspicious activity; run Megatron-LM with minimal required privileges and in containerized environments with strict resource limits; maintain offline backups of critical ML models and data; implement application whitelisting on systems running Megatron-LM.

Threat Intelligence Overview

EPSS Score
0.0%
Top 90% exploitable
Data Quality
4 sources
Confidence: Medium

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.0%
Patch available No
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
None
System Exposure· derived
Small
Automatable· derived
No
Human Impact
High

Priority Score

39
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +39
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.

Remote Code Execution represents the critical moment when an attacker successfully runs arbitrary code on a target system without physical access.

More in Python

View all
CVE-2025-24016 CRITICAL POC
9.9 Feb 10

Wazuh SIEM platform versions 4.4.0 through 4.9.0 contain an unsafe deserialization vulnerability in the DistributedAPI t

CVE-2025-27520 CRITICAL POC
9.8 Apr 04

BentoML version 1.4.2 and earlier contains an unauthenticated remote code execution vulnerability through insecure deser

CVE-2025-2945 CRITICAL POC
9.9 Apr 03

pgAdmin 4 contains critical remote code execution vulnerabilities in the Query Tool download and Cloud Deployment endpoi

CVE-2013-5093 MEDIUM POC
6.8 Sep 27

The renderLocalView function in render/views.py in graphite-web in Graphite 0.9.5 through 0.9.10 uses the pickle Python

CVE-2025-32375 CRITICAL POC
9.8 Apr 09

BentoML is a Python library for building online serving systems optimized for AI apps and model inference. Rated critica

CVE-2014-0224 HIGH POC
7.4 Jun 05

OpenSSL before 0.9.8za, 1.0.0 before 1.0.0m, and 1.0.1 before 1.0.1h does not properly restrict processing of ChangeCiph

CVE-2024-21644 HIGH POC
7.5 Jan 08

pyLoad download manager version prior to 0.5.0b3.dev77 exposes the Flask SECRET_KEY through an unauthenticated endpoint.

CVE-2026-33017 CRITICAL POC
9.3 Mar 17

Langflow (a visual LLM pipeline builder) contains a critical unauthenticated code execution vulnerability (CVE-2026-3301

CVE-2017-9462 HIGH POC
8.8 Jun 06

In Mercurial before 4.1.3, "hg serve --stdio" allows remote authenticated users to launch the Python debugger, and conse

CVE-2026-49869 CRITICAL POC
10.0 Jun 26

Unauthenticated remote code execution affects Kestra OSS (the open-source event-driven orchestration platform) prior to

CVE-2026-39987 CRITICAL POC
9.3 Apr 08

Unauthenticated remote code execution in Marimo ≤0.20.4 allows attackers to execute arbitrary system commands via the `/

CVE-2024-21645 MEDIUM POC
5.3 Jan 08

pyLoad is the free and open-source Download Manager written in pure Python. Rated medium severity (CVSS 5.3), this vulne

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy