Ruijie X60 PRO CVE-2025-56120
HIGHAttack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessAuthenticate to device web interface
-
DeliverySend crafted POST to module_set endpoint
-
ExploitInject shell metacharacters into config_retain.lua
-
ExecutionExecute arbitrary OS commands
-
ImpactFull 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. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – 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
AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
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.
Primary rating from Vendor (mitre).
CVSS VectorVendor: mitre
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
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.
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
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 Rg Ew1200 Firmware
View allRuijie Networks RG-EW1200 Wireless Routers EW_3.0(1)B11P204 was discovered to contain a command injetion vulnerability v
Command injection in Ruijie RG-EW1200 and RG-EW300 Pro router firmware lets authenticated network attackers execute arbi
Authenticated OS command injection in Ruijie RG-EW1200 (firmware 3.0(1)B11P227) and RG-X60 (firmware 3.0(1)B11P237) rout
A command injection vulnerability in RG-EW series home routers and repeaters v.EW_3.0(1)B11P219, RG-NBS and RG-S1930 ser
Authenticated command execution in Ruijie X60 PRO router firmware (RG-X60 PRO V1.00/V2.00, build 1.021.2014, with RG-EW1
Remote code execution vulnerability in Ruijie Networks Product: RG-EW series home routers and repeaters EW_3.0(1)B11P204
NVD
CVE.org
EPSS
GitHub
Exploit-DB