Ruijie RG-EW1800GX PRO
CVE-2025-56097
HIGH
Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessAuthenticate to router web interface
-
DeliverySend crafted POST to module_set in config_retain.lua
-
ExploitInject OS command via unsanitized parameter
-
ExecutionExecute arbitrary 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 an authenticated session on the device management interface (CVSS PR:L) and the ability to reach the HTTP management endpoint that routes to the module_set handler in /usr/local/lua/dev_config/config_retain.lua; the attacker then supplies a crafted POST parameter containing shell metacharacters that reach an OS command unsanitized. Limiting factors: valid low-privilege credentials (or a hijacked session) are needed, and the affected firmware builds must be running (confirmed: rg-ew1800gx_pro_firmware 3.0(1)B11P226 and rg-ew300n_firmware 3.0(1)B11P300). Management interfaces on home/SMB routers are typically LAN-facing by default, which further constrains remote reach unless remote administration is enabled. |
| Impact | Signals are largely consistent and point to a genuine but conditional priority. 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 network-reachable, low-complexity flaw that nonetheless requires some privilege (PR:L), meaning an attacker must first be authenticated to the router's management interface. Per CVSS PR:L this is an authenticated attack, not an unauthenticated one. Publicly available exploit code exists (POC=YES), which raises practical exploitability, but there is no CISA KEV listing, so this is not confirmed actively exploited. EPSS of 2.57% (85th percentile) is moderately elevated relative to the overall CVE population and is broadly consistent with 'POC exists but no confirmed mass exploitation' - i.e., exploitation is plausible and above-average-likely but not yet observed at scale. No SSVC decision record was provided in the input, so automatable/exploitation/technical-impact cannot be stated from an authoritative framework. Net: a real, actionable issue (full command execution on the device) gated by the need for prior authenticated access to the router, rather than a drive-by unauthenticated takeover. |
| Exploit ScenarioDerived | An attacker who has obtained low-privilege credentials or an authenticated session on the Ruijie RG-EW1800GX PRO web management interface sends a crafted POST request to the module_set handler in /usr/local/lua/dev_config/config_retain.lua, injecting shell metacharacters that are passed to an OS command. Because public exploit code is available, the barrier to reproduction is low, and successful injection yields arbitrary command execution on the router with full confidentiality, integrity, and availability impact. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Oct 14, 2026
Authenticated OS command injection in Ruijie RG-EW1800GX PRO (firmware 3.0(1)B11P226) and RG-EW300N (firmware 3.0(1)B11P300) routers allows an attacker holding a valid low-privilege management session to execute arbitrary shell commands on the device by sending a crafted POST request to the module_set handler. Because the injected commands run with the privileges of the router's web/config service, a successful exploit yields full compromise 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), enabling configuration tampering, credential theft, traffic interception, and potential use of the device as a pivot into the LAN. Publicly available exploit code exists (including a detailed write-up and proof-of-concept hosted on OneDrive and GitHub), and EPSS sits at 2.57% (85th percentile), so exploitation is feasible for anyone who can authenticate to the management interface, though reachability of that interface (typically LAN-facing unless remote administration is enabled) and the requirement for valid credentials remain the main gates.
RemediationAI
No vendor-released patch was identified in the available data (no fixed firmware version is cited by Ruijie in the provided references), so remediation currently depends on reducing exposure and hardening access until updated firmware appears; monitor Ruijie's official support/download pages and the published report at https://github.com/flegoity/Ruijie-Multiple-Devices-Vulnerability-Reports-for-CVE/blob/main/CVE-2025-56097.md for a patched build covering 3.0(1)B11P226 (RG-EW1800GX PRO) and 3.0(1)B11P300 (RG-EW300N). The single most effective compensating control is to ensure the web management interface is not reachable from untrusted networks: disable WAN/remote administration and cloud-based remote management, restrict the admin UI to a dedicated management VLAN or specific trusted source IPs via ACL/firewall rules, and disable any wireless client isolation bypass that would let a guest or compromised host reach the admin port - the trade-off is loss of convenient remote administration, which must then be replaced by an in-band VPN or SSH tunnel. Because exploitation requires a valid low-privilege session (PR:L), credential hygiene directly limits attack surface: change default admin passwords, use unique high-entropy credentials, avoid reusing router credentials elsewhere, and rotate passwords plus invalidate sessions on any suspicion of prior compromise, since a hijacked or stolen session cookie is sufficient to trigger the flaw. Where the product permits, disable or restrict the configuration-retention/module_set functionality and any unused configuration-import or backup-restore endpoints, though this may reduce legitimate management capabilities. Add detection and monitoring for anomalous POST requests to endpoints that route to module_set, shell metacharacter patterns in configuration parameters, and unexpected outbound connections or DNS changes originating from the router; these measures are detective only and do not remediate the underlying flaw. As the device is end-of-support or slow to receive fixes, replacing the affected units with supported hardware that has a maintained firmware pipeline should be evaluated as the durable long-term mitigation.
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 OS command injection (CWE-78) rooted in the Lua-based configuration subsystem of Ruijie EW-series router firmware. The affected handler lives at /usr/local/lua/dev_config/config_retain.lua; the module_set function accepts POST parameters intended to persist device configuration, but values are passed to an OS command without adequate sanitization or shell-metacharacter filtering, letting attacker-supplied input break out of the intended argument context and be interpreted by the underlying shell. The CVSS vector CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H confirms a network-reachable, low-complexity attack that requires only low-privilege authenticated access (PR:L) with no user interaction, and that the impact stays within the router's security scope while fully compromising confidentiality, integrity, and availability. Because the vulnerable code executes in the router's embedded Linux userland, post-exploitation activity inherits whatever privileges the config service runs with, which on this class of consumer/SMB device is typically sufficient to read and rewrite configuration, access stored credentials, and alter routing or DNS behavior. The CPE entries confirm two distinct affected firmware builds: rg-ew1800gx_pro_firmware 3.0(1)B11P226 and rg-ew300n_firmware 3.0(1)B11P300, indicating the same Lua config pattern is shared across at least these two hardware models.
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
Network-reachable HTTP endpoint with low-complexity injection requiring a low-privilege authenticated session (PR:L); command execution yields full C/I/A impact on the device with no scope change.
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_set in file /usr/local/lua/dev_config/config_retain.lua.
Executive ViewAI
Ruijie RG-EW1800GX PRO (firmware 3.0(1)B11P226) and RG-EW300N (firmware 3.0(1)B11P300) routers are affected by a high-severity authenticated command injection vulnerability (CVE-2025-56097) that allows an attacker with a low-privilege management session to gain full control of the device. Publicly available exploit code exists, and no vendor-released patch identified at time of analysis. Organizations using these routers in their network infrastructure should treat this as a significant risk because a compromised router can lead to data theft, traffic interception, and lateral movement within the LAN.
Interim mitigations: restrict management interface access to trusted networks, enforce strong authentication, monitor for suspicious POST requests to module_set, segment network, disable remote management if not needed, and review logs for signs of compromise.
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 allOS command injection in Ruijie RG-EW1800GX PRO (and related RG-EW1800GX / RG-EW300N) router firmware lets an attacker wh
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