Ruijie RG-EW1200G PRO
CVE-2025-56123
HIGH
Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessAuthenticate/reach router web UI
-
DeliverySend crafted POST to module_get
-
ExploitInject shell metacharacters in networkConnect.lua
-
ExecutionExecute arbitrary OS commands on device
-
ImpactFull device compromise
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 network reachability to the device's web management interface and the ability to issue an authenticated (low-privilege, per CVSS PR:L) POST request to the module_get function in /usr/local/lua/dev_sta/networkConnect.lua; the request must carry shell metacharacters in a parameter that is passed unsanitized to an OS command. Limiting factors: the attacker needs at least low-privilege access/credentials to the router UI (not fully unauthenticated), and the management interface must be reachable from the attacker's position - devices whose admin interface is not WAN-exposed and that use strong, non-default credentials substantially reduce exposure. Affected scope is specifically Ruijie RG-EW1200G PRO firmware V1.00/V2.00/V3.00/V4.00 (and the related RG-EW1300G per CPE); no user interaction is required (UI:N). |
| Impact | This is a genuine, elevated-priority issue but not a top-tier internet-wide emergency. The CVSS 3.1 vector (AV:N/AC:L/PR:L/UI:N) describes a network-reachable, low-complexity flaw requiring only low-privilege authentication, yielding full compromise (C:H/I:H/A:H) consistent with OS command injection (CWE-78) that grants code execution on the device. Supporting signals align: publicly available exploit code exists (GitHub PoC by flegoity), and the EPSS score of 2.64% sits in the 85th percentile - moderately elevated above baseline, reflecting the public PoC, but far from the high-probability tier. Critically, this CVE is NOT on the CISA KEV list, so there is no confirmed active exploitation despite PoC availability - do not conflate the two. The main mitigating factor is PR:L: an attacker needs at least low-privilege credentials or an authenticated session to the router interface, which bounds mass unauthenticated exploitation. The prevalence of the affected product (Ruijie consumer/SMB WiFi router) is modest outside its core Asian markets, further limiting blast radius. Net: prioritize patching for anyone operating Ruijie RG-EW1200G PRO / RG-EW1300G devices, especially where the management interface is network-exposed, but this is a targeted-device risk rather than a ubiquitous-platform crisis. |
| Exploit ScenarioDerived | An attacker with low-privilege access to the router's web interface (or valid/weak credentials) sends a crafted POST request to the module_get handler in /usr/local/lua/dev_sta/networkConnect.lua, injecting shell metacharacters that are passed unsanitized to an OS command. This results in arbitrary command execution on the device with the privileges of the web service. A public proof-of-concept exists on GitHub, lowering the skill barrier; the low attack complexity (AC:L) means exploitation is reliable once the authenticated endpoint is reachable. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Oct 07, 2026
OS command injection in Ruijie RG-EW1200G PRO router firmware (V1.00/V2.00/V3.00/V4.00, with the related RG-EW1300G also listed via CPE) lets an authenticated, low-privilege user send a crafted POST request to the module_get handler that reaches /usr/local/lua/dev_sta/networkConnect.lua, where a parameter is passed unsanitized into a shell command - resulting in arbitrary command execution as the device's web/Lua process. Successful exploitation yields full loss of confidentiality, integrity, and availability (CVSS 3.1 base 8.8, AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H), and publicly available exploit code exists, though there is no confirmed active exploitation (not in CISA KEV). EPSS is 2.64% (85th percentile), indicating elevated but not top-tier likelihood of exploitation; the practical barrier is that the attacker needs at least low-privilege credentials and network reachability to the management interface, so devices with LAN-only, non-default-credentialed admin access are substantially less exposed.
RemediationAI
No vendor-released patch identified at time of analysis, and no fixed firmware version is specified in the available data, so administrators should treat the affected RG-EW1200G PRO V1.00/V2.00/V3.00/V4.00 and RG-EW1300G EW_3.0(1)B11P303 builds as unfixed until Ruijie publishes an advisory - monitor Ruijie's security/PSIRT channels and apply a firmware update as soon as one is issued. Until then, the most effective compensating control is to eliminate the preconditions: disable WAN-side/remote web management so the device UI (and the module_get handler in /usr/local/lua/dev_sta/networkConnect.lua) is reachable only from the trusted LAN, which removes AV:N exposure at the cost of losing remote administration; replace default and shared administrator credentials with unique strong passwords and remove any extra accounts, since exploitation requires low-privilege authentication (PR:L) - this raises the bar but does not eliminate risk if any low-privilege account is compromised; and isolate the router's management plane on a dedicated VLAN or restrict UI access by source IP so only trusted admin hosts can reach it. Where remote management is unavoidable, front the UI with a VPN or an authenticating reverse proxy that blocks POSTs to the Lua handler endpoints, accepting the added management complexity. Because public exploit code exists, monitor router logs and any upstream IDS/IPS for POST requests to module_get carrying shell metacharacters, and treat unexpected outbound connections or spawned processes on these devices as potential compromise indicators requiring rotation of any credentials stored or transmitted through the device. Detailed reproduction information is published at https://github.com/flegoity/Ruijie-Multiple-Devices-Vulnerability-Reports-for-CVE/blob/main/CVE-2025-56123.md.
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 root cause is CWE-78 (Improper Neutralization of Special Elements used in an OS Command), commonly called OS command injection. Ruijie RG-EW1200G PRO/EW1300G class routers run embedded Linux firmware whose web management UI is implemented largely in Lua, with request handlers such as module_get dispatching to scripts under /usr/local/lua/. The affected handler, /usr/local/lua/dev_sta/networkConnect.lua, takes user-supplied POST parameters and interpolates them into an operating-system command without sanitizing shell metacharacters, so injected syntax (command separators, backticks, or substitution operators) is interpreted by the underlying shell rather than treated as inert data. Per CPE data the affected scope covers Ruijie RG-EW1200G PRO firmware (tracked as all versions, cpe:2.3:o:ruijie:rg-ew1200g_pro_firmware:-:*:*:*:*:*:*:*) and Ruijie RG-EW1300G firmware EW_3.0(1)B11P303 (cpe:2.3:o:ruijie:rg-ew1300g_firmware:ew_3.0\(1\)b11p303:*:*:*:*:*:*:*). Because the vulnerable component is the firmware's own HTTP-facing Lua handler, the issue is network-reachable (AV:N) and needs no user interaction (UI:N), but the assessed vector requires low privileges (PR:L), meaning the request must come from a session that has already authenticated to the router UI.
Know when Rg Ew1200G 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
Network-reachable web endpoint (AV:N), reliable injection (AC:L), requires low-privilege authenticated access to the management interface (PR:L); command execution yields full device compromise (C/I/A:H).
Primary rating from Vendor (mitre).
CVSS VectorVendor: mitre
DescriptionCVE.org
OS Command Injection vulnerability in Ruijie RG-EW1200G PRO RG-EW1200G PRO V1.00/V2.00/V3.00/V4.00 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
The Ruijie RG-EW1200G PRO (firmware V1.00 through V4.00) and RG-EW1300G routers are affected by a high-severity OS command injection that allows an authenticated low-privilege user to fully compromise the device, leading to complete loss of confidentiality, integrity, and availability. Publicly available exploit code exists, though no confirmed active exploitation (not in CISA KEV) has been observed. Organizations using these devices for network edge or internal routing should prioritize mitigation because a compromised router can serve as a pivot point for broader attacks, disrupt connectivity, and expose sensitive data.
No vendor-released patch identified at time of analysis. Interim mitigations include isolating affected devices on segregated network segments, restricting management interface access to trusted IPs, enforcing strong credentials, disabling remote management, monitoring for exploitation attempts, and evaluating replacement options.
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 Ew1200G Pro Firmware
View allRuijie Networks RG-EW1200 Wireless Routers EW_3.0(1)B11P204 was discovered to contain a command injetion vulnerability v
Authenticated OS command injection in Ruijie RG-EW1200G PRO wireless routers (firmware V1.00, V2.00, V3.00 and V4.00) al
Authenticated OS command injection in Ruijie RG-EW1200G PRO routers running firmware V1.00, V2.00, V3.00 or V4.00 lets a
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