Skip to main content
Vulnerability Database/CVE-2026-111214

CVE-2026-111214: pfSense OS Command Injection RCE Vulnerability

CVE-2026-111214 is an OS command injection flaw in Netgate pfSense CE versions 2.7.0 through 2.9.0 that enables authenticated users to execute arbitrary commands as root. This article covers technical details, affected versions, and mitigation.

Published:

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

CVE-2026-111214 Overview

CVE-2026-111214 is an OS command injection vulnerability [CWE-78] affecting Netgate pfSense Community Edition (CE) versions 2.7.0 through 2.9.0. The flaw resides in the QinQ interface edit workflow (interfaces_qinq_edit.php), where the parent interface name (if) field is stored without validation. An authenticated user holding QinQ edit privilege can save a crafted if value, then edit the QinQ entry to force interpolation of that value into ifconfig shell commands. The resulting commands execute as root on the pfSense host.

Critical Impact

Authenticated attackers with QinQ edit privilege can achieve root-level command execution on the pfSense firewall, compromising perimeter network control.

Affected Products

  • Netgate pfSense CE 2.7.0
  • Netgate pfSense CE 2.7.x through 2.8.x
  • Netgate pfSense CE 2.9.0

Discovery Timeline

  • 2026-10-15 - CVE-2026-111214 published to NVD
  • 2026-10-19 - Last updated in NVD database

Technical Details for CVE-2026-111214

Vulnerability Analysis

The vulnerability lives in pfSense's 802.1ad QinQ configuration path. The web UI accepts a parent interface identifier via the if POST parameter in interfaces_qinq_edit.php. The handler persists this value into the pfSense configuration without applying strict interface-name validation or shell metacharacter filtering.

When the stored QinQ entry is later saved or re-edited, the backend reaches interfaces.inc and composes an ifconfig command using the attacker-controlled if value through PHP string interpolation. Because the value is not shell-escaped, embedded metacharacters terminate the ifconfig invocation and inject follow-on commands into the shell. The pfSense web service runs as root, so injected commands execute with full privileges.

This is a stored injection pattern: the payload is first written to config, then triggered on a subsequent edit, which complicates signature-based detection. The CWE-78 classification reflects improper neutralization of special elements used in an OS command.

Root Cause

The root cause is missing input validation on the QinQ if field combined with unsafe shell command construction. Interface names should be constrained to a strict allowlist (such as ^[a-z]+[0-9]+$), and any value passed to ifconfig must be shell-escaped or supplied through an argument array that avoids /bin/sh interpretation.

Attack Vector

Exploitation requires an authenticated session with privileges to edit QinQ interfaces. The attacker submits a POST request to interfaces_qinq_edit.php with a crafted if value containing shell metacharacters. After the entry is saved, re-editing or applying the configuration causes interfaces.inc to interpolate the value into an ifconfig command, yielding root command execution. No user interaction is required beyond the attacker's own session, and the attack is reachable over the network wherever the pfSense web UI is accessible.

Technical write-ups are available in the Abraxas Labs research on pfSense QinQ and the VulnCheck advisory.

Stop Remote Code Execution Before It Runs

Singularity™ Endpoint detects and blocks exploit attempts at machine speed, including zero-days and novel attack techniques.

Stop Exploit Attempts

Detection Methods for CVE-2026-111214

Indicators of Compromise

  • Unexpected QinQ entries in /cf/conf/config.xml with non-standard characters in the <if> element (semicolons, backticks, $(), pipes, spaces).
  • Child processes of the pfSense php-fpm or lighttpd worker spawning shells (/bin/sh, /bin/csh) or binaries unrelated to ifconfig.
  • New or modified cron entries, SSH authorized_keys, or outbound connections originating from the firewall shortly after QinQ configuration changes.

Detection Strategies

  • Audit interfaces_qinq_edit.php POST requests in the pfSense web server access logs and alert on if values that fail an interface-name allowlist pattern.
  • Monitor ifconfig invocations on pfSense hosts for arguments containing shell metacharacters or command separators.
  • Compare running config <qinqentry> elements against a known-good baseline and flag drift in the <if> field.

Monitoring Recommendations

  • Forward pfSense system, authentication, and web UI logs to a centralized analytics platform for correlation of configuration changes with process execution.
  • Alert on any administrative session that edits QinQ interfaces outside approved change windows.
  • Track outbound network connections from the firewall itself; a healthy pfSense should rarely initiate egress beyond updates and DNS.

How to Mitigate CVE-2026-111214

Immediate Actions Required

  • Restrict access to the pfSense web UI to management networks only and block it from WAN and user VLANs.
  • Review all accounts with QinQ edit privileges and remove the privilege from users who do not require it.
  • Inspect config.xml for suspicious QinQ <if> values and remove any entries containing shell metacharacters.
  • Rotate credentials, API keys, and certificates stored on any firewall suspected of compromise.

Patch Information

Refer to the VulnCheck advisory and the Abraxas Labs QinQ research for the current patch status from Netgate. Upgrade pfSense CE to a fixed release above 2.9.0 as soon as it is published, and verify the fix removes unvalidated interpolation in interfaces.inc around the ifconfig call referenced in the pfSense interfaces.inc source.

Workarounds

  • Disable or avoid using QinQ interfaces until a fixed version is deployed.
  • Enforce multi-factor authentication on the pfSense web UI and limit administrator accounts.
  • Place the pfSense management interface behind a VPN or jump host and apply strict firewall rules to the management plane.
bash
# Example: restrict pfSense web UI to a management subnet via console firewall rule
# Replace 10.10.0.0/24 with your management network
pfctl -t mgmt_admins -T add 10.10.0.0/24
# Then ensure the WebConfigurator rule only permits sources from table <mgmt_admins>

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.