Skip to main content

Ruijie RG-EW1800GX CVE-2025-56091

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
    Obtain low-privilege router access
  2. Delivery
    Send crafted POST to module_set
  3. Exploit
    Inject OS commands via config_retain.lua
  4. Execution
    Execute arbitrary commands on device
  5. Impact
    Full router 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 the attacker to reach the device's web/management interface and submit a crafted POST request to the module_set endpoint handled by /usr/local/lua/dev_config/config_retain.lua. Per CVSS PR:L, a low-privilege authenticated session is required (not unauthenticated), so the attacker needs valid, low-level credentials or access to a weak/default login - this is the primary limiting factor. No user interaction is required (UI:N) and attack complexity is low (AC:L). Exploitation applies to the specific firmware builds RG-EW1800GX B11P226 (3.0(1)B11P226) and RG-EW300R (3.0(1)B11P301); other versions/platforms are not confirmed affected. Internet-exposed management interfaces materially increase real-world risk.

Impact

This is a credible, actionable priority but not a drop-everything emergency. The CVSS 3.1 vector (AV:N/AC:L/PR:L/UI:N) describes a network-reachable, low-complexity OS command injection requiring only low-level authentication, with total compromise impact (C:H/I:H/A:H) - consistent with CWE-78 yielding device takeover. Publicly available exploit code exists (GitHub writeup plus two hosted exploit files), which materially lowers the barrier to attack. However, this is NOT in CISA KEV, so there is no confirmed active exploitation. EPSS is 2.91% (87th percentile) - elevated relative to the average CVE and consistent with public POC availability, but still a low absolute probability, suggesting opportunistic rather than confirmed widespread exploitation. The key tension: CVSS 8.8 and a public POC argue for prompt patching, while the PR:L requirement (authentication needed) and absence of KEV listing temper the real-world urgency. No SSVC decision data was provided in the input, so automatable/exploitation-status fields could not be cross-referenced. Net: treat as a high priority for exposed/internet-facing Ruijie routers given the public exploit, but the authentication prerequisite means it is not a trivial unauthenticated mass-exploitation bug.

Exploit ScenarioDerived

An attacker with low-privilege credentials (e.g., a standard device account or default/weak login) on a reachable Ruijie RG-EW1800GX router sends a crafted POST request to the module_set handler in config_retain.lua, injecting shell metacharacters that the device executes as OS commands. Because public exploit code exists (GitHub PoC and hosted exploit files), the attack is reproducible with minimal effort, resulting in arbitrary command execution and full control of the router.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
No patch listed yet 2.9% 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 the Ruijie RG-EW1800GX and RG-EW300R router firmware allows an authenticated attacker to execute arbitrary operating-system commands on the device by sending a crafted POST request to the module_set handler backed by /usr/local/lua/dev_config/config_retain.lua. Per the CVSS 3.1 vector (AV:N/AC:L/PR:L/UI:N), exploitation is remote, low-complexity, and requires only low-privilege authentication, so the primary barrier is obtaining valid low-level credentials or abusing weak/default logins; no user interaction is needed. Publicly available exploit code exists and the vulnerability is detailed in a public GitHub advisory, but there is no confirmation that it is being actively exploited (not listed on CISA KEV); EPSS is 2.91% (87th percentile), indicating elevated relative likelihood of exploitation activity. The risk profile is a credible, actionable priority but not a drop-everything emergency.

RemediationAI

No vendor-released patch or fixed firmware version is identified in the available data for CVE-2025-56091; the status is 'No vendor-released patch identified at time of analysis,' so treat absence of a fix as a signal to apply compensating controls rather than assume safety. Until Ruijie publishes patched firmware, restrict access to the router's web/management interface: do not expose it to the internet, bind management to a trusted LAN/VLAN only, and block WAN-side access to the HTTP/HTTPS management ports (commonly 80/443) at the perimeter - this removes the remote attack vector (AV:N) but does not protect against an attacker already inside the management network. Change default and weak administrator credentials and enforce strong, unique passwords, since PR:L means any low-privilege authenticated session is sufficient; this raises the credential bar but does not eliminate the flaw. Where feasible, disable remote management features and segment IoT/router management traffic from general user networks to limit downstream impact. Monitor vendor channels and the referenced advisory (https://github.com/flegoity/Ruijie-Multiple-Devices-Vulnerability-Reports-for-CVE/blob/main/CVE-2025-56091.md) for a firmware update, and plan to upgrade to a vendor-issued patched build as soon as it becomes available; because working exploit code is public, prioritize inventorying and hardening any internet-exposed RG-EW1800GX or RG-EW300R devices.

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 vulnerability is a classic CWE-78 OS Command Injection rooted in the device's Lua-based configuration subsystem. Firmware components under /usr/local/lua/dev_config/ (notably config_retain.lua) handle the module_set operation, and user-supplied parameters from a POST request are passed into a shell command without adequate sanitization, allowing an attacker to append or inject arbitrary commands that the underlying OS executes. Because the affected code runs in the device's management/configuration context, successful injection yields command execution with the privileges of the web/config process on the router. Affected CPEs identify Ruijie RG-EW1800GX firmware version 3.0(1)B11P226 and RG-EW300R firmware version 3.0(1)B11P301; the vulnerability class and exact vulnerable builds are confirmed for these devices, and other versions or platforms are not confirmed affected. The attack surface is the device web/management interface, which must be reachable for a POST request to reach the module_set endpoint.

Know when Rg Ew1800Gx 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 POST to a management endpoint with low complexity; PR:L because a low-privilege authenticated session is required; command injection gives full C/I/A compromise of 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 RG-EW1800GX B11P226_EW1800GX_10223121 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

The Ruijie RG-EW1800GX and RG-EW300R router firmware contain a high-severity command injection vulnerability (CVE-2025-56091) that allows an authenticated attacker with low-privilege credentials to execute arbitrary operating system commands. Publicly available exploit code exists and no vendor-released patch has been identified, creating a risk of full device compromise and potential lateral movement within the network. Leadership should care because these routers often serve as network edge devices, and exploitation could lead to data breaches or operational disruption.

Business Impact: High
Compensating Controls

No vendor-released patch identified at time of analysis. Interim mitigations include restricting management interface access to trusted networks, enforcing strong unique credentials, disabling remote administration, and monitoring for exploitation attempts targeting the module_set handler.

Threat Intelligence Overview

EPSS Score
2.9%
Top 13% exploitable
Prevalence
Low
Vendor-specific consumer/SMB WiFi router, concentrated regionally, no broad global 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.9%
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_firmware:3.0\(1\)b11p226:*:*:*:*:*:*:*
cpe:2.3:o:ruijie:rg-ew300r_firmware:3.0\(1\)b11p301:*:*:*:*:*:*:*

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