Ruijie RG-EW1800GX PRO
CVE-2025-56122
HIGH
Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessAuthenticate to router management interface
-
DeliverySend crafted POST to module_get (networkConnect.lua)
-
ExploitInject shell metacharacters into parameter
-
ExecutionExecute arbitrary OS commands on device
-
ImpactFull compromise of router
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization OS command sanitization, avoid shell exec
MITRE ATT&CK
2 techniques across 1 tactic: Execution The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation requires authenticated access (PR:L) to the device's web management interface and the ability to reach the module_get endpoint backed by /usr/local/lua/dev_sta/networkConnect.lua; the attacker submits a crafted POST request whose parameter is passed unsanitized into an OS command (CWE-78). No user interaction is needed. Key limiting factors: valid low-privilege credentials (or a hijacked session) are required, and on these consumer/SOHO routers the management interface is typically LAN-only - so remote (WAN) exploitation generally depends on remote administration being explicitly enabled or the panel being internet-exposed. Risk is highest where default/weak credentials are in use or remote management is turned on. |
| Impact | Signals are largely consistent and point to a genuine but conditionally-gated risk. The CVSS 3.1 vector (AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H, base 8.8) describes a low-complexity, network-reachable command injection requiring only low privileges and no user interaction, yielding full confidentiality/integrity/availability impact - consistent with CWE-78 arbitrary command execution on an embedded router. Exploitation status is 'publicly available exploit code exists' (POC=YES) but this is NOT confirmed active exploitation: the CVE is not in CISA KEV, so POC availability and in-the-wild use must not be conflated. EPSS of 2.64% (85th percentile) is moderate - elevated above background but far from the high-probability tier, suggesting interest but no evidence of mass automated exploitation yet. The PR:L requirement is the single largest risk-dampener: an attacker needs authenticated access to the router's management interface, which on consumer/SOHO routers is frequently LAN-restricted unless remote administration is enabled. Net: a real priority for exposed or remote-managed devices and for defense-in-depth, but not a drop-everything emergency for devices with management confined to the LAN and non-default credentials. Verify remote-management exposure before assigning emergency priority. |
| Exploit ScenarioDerived | An attacker with low-privileged access to the router's web management interface (e.g., stolen/default credentials, or reaching an internet-exposed admin panel) sends a crafted POST request to the module_get handler in /usr/local/lua/dev_sta/networkConnect.lua, injecting shell metacharacters into an unsanitized parameter. The injected commands execute with the device's privileges, giving full control of the router. Public exploit code is available, lowering the skill barrier to weaponize this. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Oct 14, 2026
OS command injection in Ruijie RG-EW1800GX PRO (and related RG-EW1800GX / RG-EW300N) router firmware lets an attacker who already holds valid low-privilege credentials execute arbitrary OS commands on the device by sending a crafted POST request to the module_get handler backed by /usr/local/lua/dev_sta/networkConnect.lua. Because the CVSS vector is AV:N/AC:L/PR:L/UI:N, exploitation is remote but gated on authenticated access - on these consumer/SOHO routers the management panel is normally LAN-only, so WAN exploitation depends on remote administration being enabled or the panel being internet-exposed. Publicly available exploit code exists (a GitHub PoC writeup plus OneDrive payload links), and EPSS sits at ~2.64% (85th percentile), indicating elevated but not top-tier predicted exploitation; it is not a confirmed actively exploited (CISA KEV) issue.
RemediationAI
No vendor-released patch was identified at time of analysis; check Ruijie's official support/security pages for updated firmware for RG-EW1800GX PRO (1.022.3117), RG-EW1800GX (3.0(1)b11p226) and RG-EW300N (3.0(1)b11p300) before applying anything from third-party mirrors. Until a fixed build is published, apply compensating controls that directly close the PR:L / exposure gate: (1) Disable remote/WAN management and UPnP-triggered port mappings so the web panel is reachable only from the trusted LAN - trade-off is loss of remote administration, requiring VPN for off-site access. (2) Replace all default and weak admin credentials and, where supported, create least-privilege accounts - trade-off is operational overhead, and it does not help against session hijacking. (3) Segment IoT/guest traffic onto a separate SSID/VLAN that cannot reach the router management interface - trade-off is added network complexity. (4) Enable HTTPS-only admin access and log/monitor POST requests to module_get or /dev_sta/networkConnect.lua for shell metacharacters as a detection tripwire - trade-off is log noise and no prevention. As a last resort for high-value deployments, replace the affected units with models receiving active firmware support. Public PoC code exists, so treat unpatched, internet-exposed or default-credentialed devices as effectively compromised-capable and audit them for unauthorized changes.
Affects your stack
Find out whether the stacks and servers you run are on an affected version.
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
The flaw is a classic CWE-78 OS command injection in the Lua-based web management stack of Ruijie EW-series home/SOHO routers. The handler function module_get in /usr/local/lua/dev_sta/networkConnect.lua takes an HTTP POST parameter and passes it into a shell invocation without sanitization or escaping, so shell metacharacters in the crafted request are interpreted by the underlying OS. The affected CPE strings cover three firmware trains: ruijie:rg-ew1800gx_pro_firmware:1.022.3117, ruijie:rg-ew1800gx_firmware:3.0(1)b11p226, and ruijie:rg-ew300n_firmware:3.0(1)b11p300, spanning both the EW1800GX PRO and its sibling models built on the same Lua dev_sta code path. Exploitation gives the command context of the web process, which on embedded router firmware is effectively full device control (C:H/I:H/A:H). The authenticated precondition (PR:L) reflects that the endpoint sits behind the management login, but the boundary is thin: default/weak credentials, session hijacking, or CSRF-style abuse of an authenticated browser can supply the required access.
Know when Rg Ew1800Gx Pro Firmware gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Router web management requires login, so PR:L; command injection is low-complexity and network-reachable with no user interaction, yielding full device-level C/I/A impact.
Primary rating from Vendor (mitre).
CVSS VectorVendor: mitre
DescriptionCVE.org
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.
Executive ViewAI
Ruijie RG-EW1800GX PRO, RG-EW1800GX, and RG-EW300N routers used in branch or home-office networks are affected by a high-severity OS command injection flaw that allows an authenticated low-privilege user to take full control of the device. No vendor-released patch identified at time of analysis, and publicly available exploit code exists, so organizations relying on these routers face elevated risk of network compromise, traffic interception, or lateral movement if the management interface is reachable from untrusted networks. Leadership should prioritize identifying exposed devices and tightening access controls until a fixed firmware release is available.
Disable remote/WAN administration and internet exposure of the management interface; restrict administrative access to trusted LAN/VLAN; enforce strong unique credentials and least privilege; segment affected routers; monitor for crafted POST requests to module_get or /usr/local/lua/dev_sta/networkConnect.lua; replace or isolate internet-exposed devices until a vendor patch is released.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
OS command injection occurs when an application passes unsanitized user input directly into system shell commands.
Affected Products (CPE)CVE.org
More in Rg Ew1800Gx Pro Firmware
View allAuthenticated OS command injection in Ruijie RG-EW1800GX PRO (firmware 3.0(1)B11P226) and RG-EW300N (firmware 3.0(1)B11P
A command injection vulnerability in RG-EW series home routers and repeaters v.EW_3.0(1)B11P219, RG-NBS and RG-S1930 ser
RG-EW1200G PRO Wireless Routers EW_3.0(1)B11P204, RG-EW1800GX PRO Wireless Routers EW_3.0(1)B11P204, and RG-EW3200GX PRO
NVD
CVE.org
EPSS
GitHub
Exploit-DB