Skip to main content

Ruijie RG-EW1200G PRO CVE-2025-56123

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/reach router web UI
  2. Delivery
    Send crafted POST to module_get
  3. Exploit
    Inject shell metacharacters in networkConnect.lua
  4. Execution
    Execute arbitrary OS 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 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.

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

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 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).

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

Why It Matters

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.

Business Impact: High
Compensating Controls

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

EPSS Score
2.6%
Top 15% exploitable
Prevalence
Low
niche consumer/SMB Ruijie WiFi routers, limited footprint outside Asian markets
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-ew1200g_pro_firmware:-:*:*:*:*:*:*:*
cpe:2.3:o:ruijie:rg-ew1300g_firmware:ew_3.0\(1\)b11p303:*:*:*:*:*:*:*

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