Skip to main content

Ruijie RG-EW1800GX PRO CVE-2025-56097

HIGH
OS Command Injection (CWE-78)
2025-12-11 cve@mitre.org
8.8
CVSS 3.1 · Vendor: mitre
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Authenticate to router web interface
  2. Delivery
    Send crafted POST to module_set in config_retain.lua
  3. Exploit
    Inject OS command via unsanitized parameter
  4. Execution
    Execute arbitrary commands on device
  5. Impact
    Full 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.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
No patch listed yet 2.6% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

Vendor (mitre) PRIMARY 8.8 HIGH
AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
vuln.today AI 8.8 HIGH

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.

3.1 AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
4.0 AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N

Primary rating from Vendor (mitre).

CVSS VectorVendor: mitre

Attack Vector
Network
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

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

Why It Matters

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.

Business Impact: High
Compensating Controls

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

EPSS Score
2.6%
Top 15% exploitable
Prevalence
Low
regional-vendor consumer/SMB WiFi router, limited global production footprint
Exploit
POC
Public exploit code exists
Data Quality
4 sources
Confidence: Medium

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.

SignalValue
Severity HIGH
CISA KEV No
Public POC Yes
EPSS 2.6%
Patch available No
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
Poc
System Exposure· derived
Open
Automatable· derived
No
Human Impact
High

Priority Score

67
Low Medium High Critical
KEV: 0
EPSS: +3
CVSS: +44
PoC: +20
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

OS command injection occurs when an application passes unsanitized user input directly into system shell commands.

Affected Products (CPE)CVE.org

cpe:2.3:o:ruijie:rg-ew1800gx_pro_firmware:3.0\(1\)b11p226:*:*:*:*:*:*:*
cpe:2.3:o:ruijie:rg-ew300n_firmware:3.0\(1\)b11p300:*:*:*:*:*:*:*

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy