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

CVE-2026-111229: pfSense CE Command Injection Vulnerability

CVE-2026-111229 is a command injection flaw in pfSense CE 2.7.0 through 2.9.0 that enables privilege escalation to root via malicious XMLRPC responses. This post explains its impact, affected versions, and mitigation steps.

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-111229 Overview

CVE-2026-111229 is a command injection vulnerability in pfSense Community Edition (CE) versions 2.7.0 through 2.9.0. The flaw resides in services_captiveportal_hasync.php and allows authenticated users holding only the Captive Portal High Availability (HA) privilege to execute arbitrary commands as root. Exploitation requires an attacker to point the backwardsyncip setting to a malicious XMLRPC server. That server returns connected_users entries containing shell metacharacters in the ip or mac fields, which captiveportal_load_pfctl passes unescaped to a pfctl shell command.

Critical Impact

A low-privilege operator with the Captive Portal HA role can achieve unauthenticated-equivalent root command execution on the pfSense firewall, compromising network perimeter trust.

Affected Products

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

Discovery Timeline

  • 2026-10-15 - CVE-2026-111229 published to NVD
  • 2026-10-16 - Last updated in NVD database

Technical Details for CVE-2026-111229

Vulnerability Analysis

The vulnerability is classified as OS Command Injection [CWE-78]. pfSense's captive portal supports a high-availability synchronization feature that pulls session state from a peer firewall over XMLRPC. The receiving node calls captiveportal_load_pfctl with the remote peer's connected_users payload and constructs a pfctl command line from attacker-influenced fields. Because the ip and mac values are concatenated into the shell command without escaping, metacharacters such as backticks, semicolons, or $() substitution are interpreted by the shell.

The backend process executing pfctl runs as root, so injected commands inherit root privileges. The attack is reachable from the web administration interface by anyone granted the Captive Portal HA privilege, a role intended for restricted operations.

Root Cause

The root cause is missing input validation and shell-metacharacter sanitization in captiveportal_load_pfctl. The function trusts fields returned by a remote XMLRPC peer and inserts them directly into a shell invocation. Compounding this, the UI allows a low-privilege operator to change backwardsyncip to any host, letting that operator stand up a rogue XMLRPC endpoint and supply controlled payloads.

Attack Vector

An authenticated attacker with the Captive Portal HA privilege sets backwardsyncip through services_captiveportal_hasync.php to an attacker-controlled host. The attacker runs a crafted XMLRPC server that returns a connected_users list where the ip or mac field contains shell metacharacters. When pfSense triggers synchronization, captiveportal_load_pfctl builds a pfctl command string with the hostile value and executes it through the shell as root. See the VulnCheck advisory and Abraxas Labs research for annotated payload details.

Verified exploitation code is not published. Review the vulnerable captive portal source for the injection sink.

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-111229

Indicators of Compromise

  • Unexpected modifications to the Captive Portal HA configuration, particularly new or changed backwardsyncip values pointing to non-peer hosts.
  • Outbound XMLRPC connections from the pfSense management plane to IP addresses outside the documented HA peer range.
  • pfctl child processes spawning unexpected shells, interpreters, or network utilities such as nc, wget, or curl.
  • New root-owned cron entries, SSH authorized keys, or binaries written to /tmp, /var/tmp, or /root after captive portal sync events.

Detection Strategies

  • Audit the pfSense config.xml history and /var/log/system.log for changes to the captive portal HA sync target.
  • Alert on process ancestry where php-fpm or captive portal scripts spawn shells with suspicious command lines containing backticks or $( sequences.
  • Correlate web administration login events for Captive Portal HA role holders with subsequent configuration changes and outbound XMLRPC traffic.

Monitoring Recommendations

  • Forward pfSense system, web, and authentication logs to a centralized analytics platform for anomaly detection.
  • Baseline normal captive portal HA traffic patterns and alert on deviations in destination IPs or payload sizes.
  • Track privileged role assignments and flag any new accounts granted Captive Portal HA permissions.

How to Mitigate CVE-2026-111229

Immediate Actions Required

  • Restrict assignment of the Captive Portal HA privilege to a minimal set of trusted administrators and remove it from shared or operator accounts.
  • Verify the configured backwardsyncip matches the designated HA peer and revert any unauthorized values.
  • Place the pfSense management interface behind firewall rules that permit access only from administrative networks.
  • Review audit logs for configuration changes and process execution anomalies dating back to the earliest affected release.

Patch Information

At the time of publication, no fixed version is referenced in the NVD entry for pfSense CE 2.7.0 through 2.9.0. Monitor Netgate advisories and the VulnCheck advisory for the official patched build and apply it as soon as it is released.

Workarounds

  • Disable the captive portal HA sync feature on affected firewalls until a patched release is installed.
  • Remove the Captive Portal HA privilege from all non-administrator roles and audit effective permissions.
  • Enforce strict egress filtering on the pfSense management plane so it can only reach the known HA peer address on the XMLRPC port.
  • Use out-of-band management networks to prevent captive portal operators from reaching the HA configuration page directly.
bash
# Configuration example: restrict management access and remove risky privilege
# 1. Firewall rule limiting WebGUI to trusted admin subnet
pass in quick on $mgmt_if proto tcp from <admin_net> to ($mgmt_if) port 443
block in quick on $mgmt_if proto tcp to ($mgmt_if) port 443

# 2. Review and revoke Captive Portal HA privilege via WebGUI:
# System > User Manager > Groups > [group] > Assigned Privileges
# Remove: WebCfg - Services: Captive Portal HA Sync

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.