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

CVE-2026-111231: pfSense Authorization Bypass Vulnerability

CVE-2026-111231 is an authorization bypass flaw in Netgate pfSense CE that lets read-only users replace config.xml and execute code. This article covers technical details, affected versions, impact, 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-111231 Overview

CVE-2026-111231 is an authorization bypass vulnerability [CWE-863] in Netgate pfSense Community Edition (CE) through version 2.9.0. The flaw resides in the config_restore() and config_install() functions within config.lib.inc, which ignore the User - Config: Deny Config Write privilege. Read-only WebGUI users holding page privileges for services_acb.php, uploadconfig.php, diag_confbak.php, or diag_backup.php can replace config.xml with an attacker-controlled file. After a configuration reload or reboot, the attacker gains root-level code execution on the firewall appliance.

Critical Impact

Authenticated low-privilege WebGUI users can install an arbitrary configuration and obtain root code execution on the pfSense host, fully compromising perimeter security.

Affected Products

  • Netgate pfSense Community Edition (CE) versions through 2.9.0
  • WebGUI accounts holding services_acb.php or uploadconfig.php page privileges
  • WebGUI accounts holding diag_confbak.php or diag_backup.php page privileges

Discovery Timeline

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

Technical Details for CVE-2026-111231

Vulnerability Analysis

The vulnerability stems from an authorization check that is enforced inconsistently across pfSense's configuration subsystem. The WebGUI exposes a User - Config: Deny Config Write privilege intended to prevent read-only operators from mutating config.xml. However, the backend helper functions config_restore() and config_install() in config.lib.inc do not consult this privilege before overwriting the active configuration file.

Any user whose role grants page-level access to the configuration backup or restore endpoints (services_acb.php, uploadconfig.php, diag_confbak.php, diag_backup.php) can therefore submit a crafted config.xml. Because pfSense executes PHP from config.xml elements such as <shellcmd>, <earlyshellcmd>, and installed package hooks, overwriting the configuration provides a direct path to root code execution once the system reloads services or reboots.

Root Cause

The flawed authorization model separates page access from data mutation controls. The Deny Config Write privilege is honored by individual option pages but is not re-validated inside config_restore() or config_install(). See the referenced source lines in config.lib.inc L588-L597 and config.lib.inc L743-L798.

Attack Vector

An authenticated attacker with read-only WebGUI access authenticates to the pfSense interface over HTTPS. The attacker navigates to one of the vulnerable backup or restore pages and uploads a malicious config.xml containing shell command directives. Upon applying the restored configuration or triggering a reboot, pfSense executes the attacker's commands with root privileges. Full technical analysis is published by Abraxas Labs and the VulnCheck advisory.

A proof-of-concept is available at pfsense-config-readonly-restore.

Detect Identity Attacks the Moment Authentication Fails

Singularity™ Identity surfaces credential misuse, lateral movement, and privilege escalation in real time, so you can contain the breach before it spreads.

Stop Identity Attacks

Detection Methods for CVE-2026-111231

Indicators of Compromise

  • Unexpected POST requests to uploadconfig.php, diag_backup.php, diag_confbak.php, or services_acb.php from read-only user accounts.
  • Modifications to /cf/conf/config.xml or new entries in the configuration history outside maintenance windows.
  • Unexplained shellcmd or earlyshellcmd entries appearing in pfSense configuration backups.
  • New or modified cron jobs, outbound connections, or SSH keys following a configuration restore event.

Detection Strategies

  • Review WebGUI audit logs for configuration restore actions correlated with non-administrative user sessions.
  • Monitor /var/log/system.log for config_restore and config_install events invoked by low-privilege users.
  • Alert on any reboot or service reload event preceded by a configuration upload from a non-admin account.

Monitoring Recommendations

  • Forward pfSense system and nginx access logs to a central SIEM for correlation with user role data.
  • Baseline normal configuration backup and restore activity, then alert on deviations in frequency or source IP.
  • Enable file integrity monitoring on /cf/conf/config.xml and the /cf/conf/backup/ directory.

How to Mitigate CVE-2026-111231

Immediate Actions Required

  • Audit all WebGUI accounts and remove page privileges for services_acb.php, uploadconfig.php, diag_confbak.php, and diag_backup.php from non-administrative users.
  • Restrict WebGUI access to trusted management networks using firewall rules on the management interface.
  • Rotate credentials for any account suspected of unauthorized configuration access.
  • Review recent configuration history in diag_confbak.php and roll back any unauthorized changes.

Patch Information

At the time of publication, Netgate has not released a fixed version addressed in the enriched data. Monitor the VulnCheck advisory and Netgate release notes for an official patch addressing config_restore() and config_install() authorization enforcement. Upgrade to a release later than pfSense CE 2.9.0 once available.

Workarounds

  • Grant WebGUI access to the configuration backup and restore pages only to accounts that already hold full administrative privileges.
  • Remove the Deny Config Write privilege from accounts that still require read access, and instead place them in a strictly read-only group without any backup page privileges.
  • Place the pfSense WebGUI behind a VPN or jump host, and enforce multi-factor authentication for all administrative users.
  • Enable configuration change notifications so that any config.xml modification generates an alert to the operations team.
bash
# Example: restrict WebGUI access to a management subnet via console pfSsh.php
# Remove page privileges from a non-admin group
pfSsh.php playback svc restart
# Then in the WebGUI: System > User Manager > Groups > [group] > Assigned Privileges
# Remove: WebCfg - Diagnostics: Backup & Restore
# Remove: WebCfg - Diagnostics: Configuration History
# Remove: WebCfg - Services: Auto Config Backup
# Remove: WebCfg - Upload Configuration

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.