Ruijie RG-EW1200
CVE-2025-56085
HIGH
Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessAuthenticate to router management interface
-
ExploitSend crafted POST to module_set handler
-
ExecutionInject shell metacharacters into config_retain.lua
-
ImpactExecute arbitrary OS commands on device
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 low-privilege authentication (CVSS PR:L), after which the attacker sends a crafted POST request targeting the module_set parameter processed by /usr/local/lua/dev_config/config_retain.lua on affected Ruijie RG-EW1200 (firmware 3.0(1)B11P227) and RG-EW300 Pro (firmware 3.0(1)B11P219) devices. The specific prerequisite is the ability to reach and submit to the config_retain.lua configuration-retention handler as an authenticated user; the primary limiting factor is that valid (even low-level) credentials are needed, so it is not exploitable fully unauthenticated - though exposed management interfaces and default/weak credentials on consumer routers can lower this barrier in practice. No special non-default feature toggle is indicated in the description. |
| Impact | This is a genuine elevated-priority issue for anyone operating the affected Ruijie SOHO routers, though not an emergency across the broad internet. The CVSS 3.1 base score of 8.8 (AV:N/AC:L/PR:L/UI:N) indicates a network-reachable, low-complexity attack requiring only low-level authentication, yielding full confidentiality, integrity, and availability impact - consistent with OS command injection (CWE-78) granting command execution on the device. Reinforcing this, publicly available exploit code exists and the EPSS score of 2.92% sits in the 87th percentile, which is comparatively high and reflects the published POC and ease of exploitation. However, the vulnerability is NOT listed in CISA KEV, so there is no confirmed active exploitation - the signals point to a credible, easily weaponizable flaw rather than one proven to be used in the wild. The key mitigating factor is PR:L: the CVSS vector states valid (low-privilege) authentication is required, so this is not an unauthenticated drive-by. On consumer routers, though, default or weak credentials and exposed management interfaces can effectively erode that barrier. Net assessment: a real priority to patch for owners of these devices, driven by POC availability and high EPSS, but tempered by the authentication requirement and absence of KEV/wild-exploitation confirmation. |
| Exploit ScenarioDerived | An attacker with low-privilege access to the router's management interface (e.g., valid or default credentials, or a reachable exposed admin panel) sends a crafted POST request to the module_set handler in /usr/local/lua/dev_config/config_retain.lua, injecting shell metacharacters that the device executes as OS commands. Because a public POC exists, exploitation is straightforward and repeatable, giving the attacker command execution to fully compromise the router, pivot into the internal network, or add persistence. The CVSS AV:N/AC:L vector confirms this is remotely reachable with low complexity once the low-privilege authentication condition is met. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Oct 14, 2026
Command injection in Ruijie RG-EW1200 and RG-EW300 Pro router firmware lets authenticated network attackers execute arbitrary operating system commands through a crafted POST request to the module_set handler in /usr/local/lua/dev_config/config_retain.lua. The vulnerable builds are RG-EW1200 firmware 3.0(1)B11P227 and RG-EW300 Pro firmware 3.0(1)B11P219, and exploitation requires network reachability to the web/management interface plus low-privilege credentials (CVSS PR:L). Publicly available exploit code exists, and EPSS is 2.92% (87th percentile), but there is no CISA KEV entry confirming active exploitation; the independent assessment rates this as elevated-priority for affected SOHO router operators rather than an internet-wide emergency.
RemediationAI
No vendor-released patch was identified in the provided data, so operators should treat mitigation as compensating controls until Ruijie publishes a fixed firmware version. Immediately disable WAN-side/remote management and restrict the router's web/management interface to trusted administrative VLANs or specific source IPs via firewall rules; this blocks the network precondition but prevents remote administration for legitimate users. Change default and weak administrative passwords and apply least-privilege accounts, since exploitation requires valid low-privilege credentials; this reduces the ease of the PR:L prerequisite but does not fix the command injection. Monitor or block POST requests that reference module_set or /usr/local/lua/dev_config/config_retain.lua at the management boundary where logging is available, recognizing that HTTPS/management traffic may need inspection and that false positives are possible. Consult the public vulnerability report at https://github.com/flegoity/Ruijie-Multiple-Devices-Vulnerability-Reports-for-CVE/blob/main/CVE-2025-56085.md and check Ruijie support advisories for a firmware update; if a fixed release becomes available, upgrade RG-EW1200 and RG-EW300 Pro to the vendor-specified version after validating hardware revision compatibility.
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 issue is CWE-78 OS command injection in the configuration-retention logic of Ruijie SOHO router firmware. The affected component is /usr/local/lua/dev_config/config_retain.lua, a Lua script that processes the module_set parameter from an HTTP POST request; because user-controlled input is not safely neutralized before being passed to a system shell, an attacker who can reach the management interface and authenticate at a low privilege level can inject shell metacharacters and run arbitrary commands with the router's privileges. CPE data identifies ruijie:rg-ew1200_firmware:3.0\(1\)b11p227 and ruijie:rg-ew300_pro_firmware:3.0\(1\)b11p219 as affected, consistent with the assessed CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H vector.
Know when Rg Ew1200 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 command injection via crafted POST requiring low-privilege authentication (PR:L), low complexity, no user interaction, yielding full OS command execution (C/I/A:H).
Primary rating from Vendor (mitre).
CVSS VectorVendor: mitre
DescriptionCVE.org
OS Command Injection vulnerability in Ruijie RG-EW1200 EW_3.0(1)B11P227_EW1200_11130208RG-EW1200 V1.00 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.
Executive ViewAI
Organizations using Ruijie RG-EW1200 firmware 3.0(1)B11P227 or RG-EW300 Pro firmware 3.0(1)B11P219 face a high-severity command-injection risk that can let authenticated low-privilege users with network access to the management interface take full control of these routers. Publicly available exploit code exists, and no vendor-released patch has been identified, so affected edge devices require immediate mitigation while a fix or replacement is arranged. Leadership should care because compromised SOHO routers can expose internal networks, disrupt connectivity, and serve as a foothold for broader attacks.
No vendor-released patch identified at time of analysis; restrict management access to trusted VLANs/IPs, disable WAN/remote administration, enforce unique strong credentials, segment affected routers from sensitive assets, monitor/IDS for module_set POST abuse, and replace or isolate devices that cannot be secured.
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 Ew1200 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-EW1200 (firmware 3.0(1)B11P227) and RG-X60 (firmware 3.0(1)B11P237) rout
OS command injection in Ruijie X60 PRO firmware (V1.00/V2.00, build X60_10212014RG) lets an authenticated remote attacke
A command injection vulnerability in RG-EW series home routers and repeaters v.EW_3.0(1)B11P219, RG-NBS and RG-S1930 ser
Authenticated command execution in Ruijie X60 PRO router firmware (RG-X60 PRO V1.00/V2.00, build 1.021.2014, with RG-EW1
Remote code execution vulnerability in Ruijie Networks Product: RG-EW series home routers and repeaters EW_3.0(1)B11P204
NVD
CVE.org
EPSS
GitHub
Exploit-DB