Ruijie M18
CVE-2025-56089
HIGH
Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessAuthenticate to device management interface
-
DeliveryCraft POST to module_set in nbr_cwmp.lua
-
ExploitInject OS command via unsanitized parameter
-
ExecutionExecute arbitrary commands on router OS
-
ImpactFull device compromise and pivot
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 access to the device management interface and low-privilege authentication (PR:L) to the affected Ruijie M18 EW (3.0(1)B11P226) / RG-EW300G Pro (EW_3.0(1)B11P219) firmware, after which a crafted POST request to the module_set function in /usr/local/lua/dev_sta/nbr_cwmp.lua injects shell commands via an unsanitized parameter. No user interaction is needed (UI:N). Limiting factors: the attacker must hold valid credentials or an authenticated session (the flaw is not unauthenticated), and the management interface must be reachable from the attacker's position; devices that do not expose management to untrusted networks substantially reduce real-world exposure. |
| Impact | This is a credible but not top-tier emergency priority. The CVSS 3.1 vector (AV:N/AC:L/PR:L/UI:N) indicates a network-reachable, low-complexity attack that nonetheless requires low-level privileges (PR:L) - meaning the attacker needs valid, if low-privileged, authentication to the device management interface rather than fully unauthenticated access. Full C:H/I:H/A:H impact (command execution on an embedded router OS) justifies the 8.8 HIGH score. Supporting signals: a public exploit/PoC exists (raising practical exploitability) and EPSS is 2.84% at the 86th percentile - elevated relative to the average CVE but still an absolute low probability, suggesting known interest but not mass automated exploitation. There is no CISA KEV listing in the provided data, so there is no evidence of confirmed active in-the-wild exploitation. The combination of a working PoC, low attack complexity, and only a low-privilege authentication barrier makes this a real priority for exposed Ruijie M18/RG-EW300G Pro devices, but the authentication requirement and modest EPSS temper it below a 'drop-everything' unauthenticated RCE. |
| Exploit ScenarioDerived | An attacker with low-privilege credentials (or access to a device exposing its management interface to the network) sends a crafted POST request to the module_set handler in /usr/local/lua/dev_sta/nbr_cwmp.lua, injecting shell metacharacters that the Lua code passes to an OS command. A publicly available PoC exists, lowering the skill barrier, and the low attack complexity (AC:L) means the request succeeds reliably against affected firmware, yielding arbitrary command execution on the router. |
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 M18 EW_3.0(1)B11P226 firmware (with the same code path in RG-EW300G Pro EW_3.0(1)B11P219) lets a low-privileged authenticated attacker execute arbitrary shell commands on the device by sending a crafted POST request to the module_set function in /usr/local/lua/dev_sta/nbr_cwmp.lua. Exploitation requires network reachability to the device management interface plus valid credentials (CVSS:3.1/AV:N/AC:L/PR:L/UI:N, score 8.8), and no user interaction is needed. Publicly available exploit code exists and the EPSS score is 2.84% (86th percentile), so risk is real but this is a credible, not top-tier emergency, priority - exposure drops sharply for devices whose management UI is not reachable from untrusted networks.
RemediationAI
No vendor-released patch identified at time of analysis - no fixed firmware version is listed in the available vendor advisory, CPE, or reference data, so operators should not assume an upgrade path exists yet and should press Ruijie for a corrected EW_3.0 image for both the M18 (3.0(1)B11P226) and RG-EW300G Pro (EW_3.0(1)B11P219) builds. Until then, compensate by ensuring the management interface is not reachable from untrusted networks: place the device behind a firewall/segmented VLAN and block inbound access to its HTTP/HTTPS admin ports from the WAN, accepting the trade-off that remote administration must then go through a VPN or bastion; disable any remote-management or cloud-management features that expose the local admin UI, with the caveat that this may break vendor-app-based administration. Rotate the administrator and any low-privilege account credentials to non-default, high-entropy values and remove unused accounts, since exploitation requires a valid session (PR:L) - this raises the bar but does not fix the underlying injection. As an additional monitoring control, alert on POST requests targeting the module_set action or /usr/local/lua/dev_sta/nbr_cwmp.lua paths and on unexpected outbound shell-like traffic from router management IPs; these are detective, not preventive. Continue tracking the PoC reporting repository (https://github.com/flegoity/Ruijie-Multiple-Devices-Vulnerability-Reports-for-CVE/blob/main/CVE-2025-56089.md) and the NVD entry for an official firmware fix before exposing management interfaces again.
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 CWE-78 OS command injection in the Lua-based management stack of Ruijie consumer/SMB routers. The affected component, /usr/local/lua/dev_sta/nbr_cwmp.lua, handles neighbor-station/CPE WAN Management Protocol (CWMP, i.e., TR-069-style) related operations exposed through the module_set action, and it passes at least one request parameter into a shell invocation without sanitization or an allow-list, allowing command chaining. Because the request is processed by the device's configuration/management service, injected commands run with the privileges of that service - typically root on embedded firmware - enabling full device compromise (CVSS impacts C:H/I:H/A:H, scope unchanged). The vulnerability is not pre-authentication: the assessed vector is PR:L, meaning the attacker must already hold valid low-privilege credentials or an authenticated session, and must also be able to reach the management interface from their position on the network. The Lua layer and the CWMP/nbr helper scripts are the reusable root cause across the two firmware builds identified by CPE: cpe:2.3:o:ruijie:m18-ew_firmware:3.0(1)b11p226 and cpe:2.3:o:ruijie:rg-ew300g_pro_firmware:ew_3.0(1)b11p219, which share the affected file.
Know when M18 Ew 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 handler (AV:N) with simple crafted POST (AC:L) but requiring low-privilege authentication (PR:L); OS command execution gives full C:H/I:H/A:H on the device.
Primary rating from Vendor (mitre).
CVSS VectorVendor: mitre
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_sta/nbr_cwmp.lua.
Executive ViewAI
Organizations using Ruijie M18 (firmware EW_3.0(1)B11P226) or RG-EW300G Pro (firmware EW_3.0(1)B11P219) wireless routers face a high-severity command injection vulnerability that allows an authenticated low-privileged attacker to run arbitrary shell commands on the device if the management interface is reachable and valid credentials are obtained. Publicly available exploit code exists, and no vendor-released patch identified at time of analysis, so leadership should prioritize reducing exposure of these devices and preparing for remediation once a fix is available. The primary organizational risk is network compromise or lateral movement through trusted wireless infrastructure, particularly where management access is broadly accessible.
Restrict management interface to trusted networks; disable WAN/remote management; enforce strong unique credentials and least privilege; segment affected devices; monitor logs for module_set POST activity; consider temporary removal or replacement if exposure cannot be eliminated.
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 M18 Ew Firmware
View allAuthenticated OS command injection in Ruijie M18 (EW 3.0(1)B11P226) and RG-EW1200R (EW_3.0(1)B11P301) router firmware le
OS command injection in Ruijie M18 EW and RG-EW1300G router firmware allows a remote attacker holding a valid low-privil
NVD
CVE.org
EPSS
GitHub
Exploit-DB