Skip to main content

Ruijie X60 PRO CVE-2025-56120

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 web interface
  2. Delivery
    Send crafted POST to module_set endpoint
  3. Exploit
    Inject shell metacharacters into config_retain.lua
  4. Execution
    Execute arbitrary OS commands
  5. Impact
    Full compromise of router

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 authenticated access (CVSS PR:L) to the device's HTTP management interface and the ability to send a POST request to the 'module_set' operation handled by /usr/local/lua/dev_config/config_retain.lua on Ruijie X60 PRO firmware V1.00/V2.00 (build X60_10212014RG, CPE 1.021.2014; the RG-EW1200 firmware is also listed as affected per CPE). Limiting factors: the attacker must first obtain valid credentials or exploit weak/default logins, and must have network reachability to the management service - so exposure is sharply reduced where the admin interface is not reachable from untrusted networks. No user interaction is required (UI:N).

Impact

Signals are moderately but not uniformly elevated. The CVSS 3.1 vector (AV:N/AC:L/PR:L/UI:N) describes a network-reachable, low-complexity attack requiring only low-level authentication, yielding full C:H/I:H/A:H impact - consistent with OS command injection giving complete device takeover. EPSS is 2.64% (85th percentile): elevated relative to most CVEs but still a low absolute probability, indicating it is noticed but not yet broadly weaponized at scale. Publicly available exploit code exists (POC confirmed via GitHub and OneDrive references), which raises practical risk above the EPSS figure alone. This CVE is NOT on CISA KEV and no active exploitation is claimed, so this is 'exploit code exists' - distinct from in-the-wild use. The principal mitigating factor is PR:L: the attacker must already hold authenticated (even low-privilege) web/management access to the device, so this is primarily a privilege-escalation / post-authentication RCE rather than a pre-auth internet worm candidate. Net: a real, actionable priority for anyone exposing these Ruijie devices' management interface, but the authentication requirement and modest EPSS argue against treating it as an emergency on par with an unauthenticated KEV-listed flaw.

Exploit ScenarioDerived

An attacker with valid low-privilege credentials (or a default/weak login) to the Ruijie X60 PRO 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. Because the fix is a configuration-processing Lua endpoint executing commands as the device service account, this yields arbitrary command execution and full device compromise. Public exploit code for CVE-2025-56120 is available, lowering the skill barrier 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 X60 PRO firmware (V1.00/V2.00, build X60_10212014RG) lets an authenticated remote attacker who can reach the device's HTTP management interface execute arbitrary operating-system commands by sending a crafted POST request to the module_set operation handled by /usr/local/lua/dev_config/config_retain.lua. The vulnerability requires valid credentials (CVSS PR:L, network reachable, no user interaction), so practical exposure is concentrated on devices whose admin interface is exposed to untrusted networks or left on weak/default logins. Publicly available exploit code exists and EPSS sits at roughly 2.64% (85th percentile), indicating moderately elevated but not uniformly high exploitation risk; no CISA KEV confirmation of active exploitation was present in the available data.

RemediationAI

No vendor-released patch was identified at time of analysis, so remediation must rely on hardening and compensating controls until Ruijie publishes fixed firmware; monitor the vendor's support portal and the public report at https://github.com/flegoity/Ruijie-Multiple-Devices-Vulnerability-Reports-for-CVE/blob/main/CVE-2025-56120.md for firmware updates, and apply them promptly once available. Because exploitation requires authenticated access (PR:L) over the management interface, the most effective compensating control is to block the device's HTTP/HTTPS management ports at the network perimeter and restrict administrative access to a trusted management VLAN or a tightly scoped IP allow-list - the trade-off is that remote administration must then be performed from an internal jump host. Immediately replace any default or weak administrator credentials and disable remote/WAN-side management features, accepting that this limits convenience for off-site administration. Where feasible, disable or restrict the module_set/config-retain functionality if the firmware exposes a toggle, understanding that this may impair legitimate configuration-retention behavior. Finally, add detection for anomalous POST requests targeting config_retain.lua or the module_set operation and alert on unexpected shell-style metacharacters in configuration parameters, since existing exploit material makes opportunistic probing likely.

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 OS command injection (CWE-78) rooted in the Lua-based device configuration subsystem of Ruijie firmware. The file /usr/local/lua/dev_config/config_retain.lua implements configuration-retention logic and processes parameters delivered through the module_set operation; user-supplied input from the HTTP POST request is passed to a shell/OS execution context without adequate neutralization, allowing injected command separators to run arbitrary commands with the privileges of the underlying web/config service. Because the vulnerable code sits in the management web stack, exploitation occurs over the network (AV:N) with low attack complexity (AC:L) and no user interaction (UI:N), while the CVSS vector PR:L confirms that authentication to the management interface is required first. CPE data ties the issue to Ruijie RG-X60 PRO firmware 1.021.2014 and, per the same reference set, to RG-EW1200 firmware 3.0(1)b11p301, suggesting a shared or closely related dev_config code base across these router models.

Know when Rg Ew1200 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/AC:L) requires a valid low-privilege login (PR:L), and command injection grants full device control, so C/I/A all High with unchanged scope.

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 X60 PRO X60_10212014RG-X60 PRO V1.00/V2.00 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 X60 PRO networking devices running firmware builds V1.00/V2.00 (X60_10212014RG) contain a high-severity command injection flaw that allows anyone holding valid device credentials and network access to the management interface to run arbitrary operating system commands, effectively handing over full control of the device. Because no vendor patch is available, every deployed X60 PRO unit in our estate remains exposed until firmware is released, and risk is concentrated where management interfaces are reachable from untrusted networks or still use weak or default logins. Leadership should treat this as a manageable but time-bound exposure requiring immediate network-level containment rather than a wait-for-patch posture.

Business Impact: High
Compensating Controls

No vendor patch is available. Interim mitigations: block or firewall HTTP management interface access to X60 PRO devices from untrusted networks and the internet, restrict administration to a dedicated management VLAN or jump host, rotate administrative credentials and eliminate default, shared, or weak passwords, disable remote/WAN administration where the feature exists, monitor and alert on POST requests to the module_set operation in /usr/local/lua/dev_config/config_retain.lua, and isolate or replace devices that cannot be adequately segmented until vendor firmware is released.

Threat Intelligence Overview

EPSS Score
2.6%
Top 15% exploitable
Prevalence
Low
niche Chinese-vendor SMB/consumer mesh router, limited 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-x60_pro_firmware:1.021.2014:*:*:*:*:*:*:*
cpe:2.3:o:ruijie:rg-ew1200_firmware:3.0\(1\)b11p301:*:*:*:*:*:*:*

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