Skip to main content

Ruijie M18 CVE-2025-56114

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 device management (PR:L)
  2. Delivery
    Send crafted POST to module_set in config_retain.lua
  3. Exploit
    Inject shell metacharacters into OS command
  4. Execution
    Execute arbitrary commands on device
  5. Impact
    Full device takeover

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 web/management interface and a valid low-privilege authenticated session (CVSS PR:L), after which a crafted POST request to the module_set endpoint handled by /usr/local/lua/dev_config/config_retain.lua injects OS commands. Limiting factors: the attacker must first obtain management-interface credentials or a session (PR:L, so not fully unauthenticated), and exposure depends on whether the management interface is reachable from the attacker's network segment (LAN by default on such routers/APs; higher risk if remote administration is enabled). No user interaction is required. Affected to the specific Ruijie firmware builds listed (RG-EW1300G ew_3.0(1)b11p303 and M18 EW 3.0(1)b11p226).

Impact

Signals are largely consistent and point to a credible but conditional priority. The provided CVSS 3.1 vector (AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H, 8.8) indicates network-reachable, low-complexity exploitation that requires some level of privilege (PR:L) and no user interaction, yielding full confidentiality, integrity, and availability impact - consistent with OS command injection granting command execution on the device. A public exploit/PoC exists (GitHub write-up referenced), which lowers the barrier to weaponization. EPSS is 2.57% (85th percentile): elevated relative to the average CVE but not indicative of mass exploitation, aligning with a PoC-available-but-not-yet-widely-weaponized state. This CVE is NOT in CISA KEV and there is no evidence of active exploitation. Net: a genuinely dangerous device-takeover bug on affected Ruijie firmware, but gated by the PR:L authentication requirement and by how exposed the management interface is - treat as high priority where these routers/APs have internet- or LAN-reachable admin interfaces, and as moderate elsewhere. No SSVC decision data was provided in the input, so automatable/technical-impact framing cannot be confirmed.

Exploit ScenarioDerived

An attacker with low-privilege access to the device 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. The payload executes arbitrary commands in the device context, enabling full compromise of the router/access point. A public PoC write-up exists, reducing the effort required to reproduce the attack.

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

OS command injection in Ruijie M18 EW and RG-EW1300G router firmware allows a remote attacker holding a valid low-privilege management session (CVSS PR:L) to run arbitrary OS commands as the device through a crafted POST request to the module_set handler in /usr/local/lua/dev_config/config_retain.lua. The assessed vector (AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H, 8.8) and the independent assessment agree that exploitation is conditional rather than fully unauthenticated: the attacker must first reach the web/management interface and obtain credentials or a session, with exposure highest where remote administration is enabled. Publicly available exploit code exists (a GitHub proof-of-concept/advisory repository), but there is no CISA KEV listing confirming active exploitation, and EPSS is 2.57% (85th percentile), indicating a credible but conditional priority.

RemediationAI

No vendor-released patch was identified in the available data at time of analysis; the only public reference is a third-party advisory/PoC repository (https://github.com/flegoity/Ruijie-Multiple-Devices-Vulnerability-Reports-for-CVE/blob/main/CVE-2025-56114.md), so remediation currently depends on compensating controls. First, disable WAN/remote management and UPnP-based external exposure so the module_set endpoint is reachable only from a trusted LAN segment (trade-off: remote administration becomes unavailable and must be performed on-site or via VPN). Second, enforce strong, unique administrative credentials and change any default passwords, since exploitation requires a valid low-privilege session (PR:L) - this raises the bar but does not eliminate risk from an already-authenticated or compromised account. Third, segment IoT/consumer routers onto an isolated VLAN with egress filtering so that a successful command injection cannot reach other internal assets, accepting the added management complexity. Finally, monitor and alert on anomalous POST traffic to the module_set endpoint and on unexpected outbound connections or process activity from the device, and check with Ruijie for an updated firmware release for M18 EW 3.0(1)b11p226 and RG-EW1300G ew_3.0(1)b11p303 before relying on any specific fixed version.

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 CWE-78 OS command injection in embedded Linux/Lua router firmware. Ruijie M18 and RG-EW1300G devices implement parts of their configuration and management logic in Lua scripts under /usr/local/lua/; the specific component is dev_config/config_retain.lua, which exposes a module_set operation reachable from the web management interface. When a crafted POST request is processed by module_set, attacker-controlled values are passed to a shell context without adequate sanitization or escaping, allowing injected OS commands to execute with the privileges of the management service (typically root on such firmware). CPE data scopes the affected builds to Ruijie m18-ew firmware 3.0(1)b11p226 and Ruijie rg-ew1300g_firmware ew_3.0(1)b11p303, matching the description's EW_3.0(1)B11P226_M18_10223116 build string. Because the vulnerable path is the router/AP management plane, exploitability is governed by whether the interface is reachable from the attacker's network segment and whether a session or credentials can be obtained; the provided CVSS vector confirms network attack (AV:N) with low privileges required (PR:L), and no user interaction (UI:N).

Know when Rg Ew1300G 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 management endpoint (AV:N), low complexity (AC:L), requires an authenticated low-privilege session (PR:L); command execution yields full C/I/A impact.

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 M18 EW_3.0(1)B11P226_M18_10223116 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 M18 EW and RG-EW1300G routers - networking equipment commonly deployed at branch offices and small sites - carry a high-severity command injection flaw that lets someone with any valid management login take full control of the device. Because no vendor patch exists and exploit code is publicly circulating, any organization running these models with remote administration enabled faces a credible risk of full device compromise, network traffic interception, and a foothold into the wider corporate network. Leadership should care because the exposure is not theoretical, remediation depends on configuration changes rather than a patch, and affected devices are typically internet- or WAN-adjacent with minimal oversight.

Business Impact: High
Compensating Controls

No vendor-released patch identified at time of analysis. Interim mitigations: disable remote/WAN-side administration and restrict the management interface to a trusted internal management VLAN or jump host; block inbound management ports at the perimeter firewall; enforce least privilege and strong, unique credentials with rotation and MFA where supported; remove dormant or shared accounts to limit the exposure of the required low-privilege session; monitor for anomalous POST requests to the config_retain.lua module_set handler; and plan hardware replacement for devices that cannot be segmented and hardened, given that publicly available exploit code exists.

Threat Intelligence Overview

EPSS Score
2.6%
Top 15% exploitable
Prevalence
Low
Niche SMB/consumer Ruijie Wi-Fi hardware, limited global enterprise 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-ew1300g_firmware:ew_3.0\(1\)b11p303:*:*:*:*:*:*:*
cpe:2.3:o:ruijie:m18-ew_firmware:3.0\(1\)b11p226:*:*:*:*:*:*:*

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