Skip to main content

Ruijie M18 CVE-2025-56089

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 interface
  2. Delivery
    Craft POST to module_set in nbr_cwmp.lua
  3. Exploit
    Inject OS command via unsanitized parameter
  4. Execution
    Execute arbitrary commands on router OS
  5. Impact
    Full 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.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
No patch listed yet 2.8% 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 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

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

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_sta/nbr_cwmp.lua.

Executive ViewAI

Why It Matters

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.

Business Impact: High
Compensating Controls

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

EPSS Score
2.8%
Top 14% exploitable
Prevalence
Medium
regional SMB/consumer networking vendor, specific router firmware models
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.8%
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:m18-ew_firmware:3.0\(1\)b11p226:*:*:*:*:*:*:*
cpe:2.3:o:ruijie:rg-ew300g_pro_firmware:ew_3.0\(1\)b11p219:*:*:*:*:*:*:*

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