Netgate pfSense CE authorization bypass enables configuration replacement and root-level code execution

Note: This data is for reference and cybersecurity research purposes only.CyStack advises users not to use this information for unlawful purposes.

What is CVE-2026-111231?

CVE-2026-111231 is a vulnerability classified as Incorrect Authorization, affecting pfSense CE (affected versions: ≤ 2.9.0). This vulnerability is rated High, with a CVSS score of 8.6. Public exploit code or evidence is available for this vulnerability, but that does not confirm exploitation in the wild.

Overview

Original source data

Netgate pfSense CE through 2.9.0 contains an authorization bypass vulnerability that allows read-only WebGUI users to replace config.xml because config_restore() and config_install() ignore the 'User - Config: Deny Config Write' privilege. Attackers holding page privileges for services_acb.php, uploadconfig.php, diag_confbak.php, or diag_backup.php can install a chosen config.xml to gain root-level code execution after reload or reboot.

Affected products and scope

  • Netgate pfSense CE: The product record marks the semver range from 0 through 2.9.0, inclusive, as affected.
  • The record also sets default_status to unaffected; that value does not change the explicitly affected range above.
  • The research source specifically analyzes the public pfSense CE 2.9.0-DEVELOPMENT tree and states that the PHP code for 2.9.0-RELEASE was not present in the public tree examined. The CNA record nevertheless marks the product range through 2.9.0 as affected.
  • No exact fixed release is provided in the record or in the inspected advisory.

Technical details

This is a CWE-863 Incorrect Authorization flaw in pfSense CE configuration restore and installation flows. write_config() checks the User - Config: Deny Config Write privilege, but config_restore() and config_install() do not perform the same check. config_restore() can copy a supplied file to config.xml, reread the configuration, and write the configuration; config_install() validates a file and then copies it to config.xml. Both functions can be reached through WebGUI pages granted to a restricted account, including services_acb.php, uploadconfig.php, diag_confbak.php, and diag_backup.php.

The attack requires an authenticated WebGUI session and suitable page privileges, but it does not require permission for ordinary configuration writes. The research source also states that WebGUI PHP-FPM runs as root, so a replaced config.xml can lead to root-level code execution after reload or reboot. The exact configuration contents used to reach code execution are not fully described in the advisory, so a specific payload should not be assumed.

Exploitability

The flaw is remotely reachable through the WebGUI and requires an authenticated WebGUI account with access to at least one page that can call config_install() or config_restore(). The key condition is that a read-only user may still hold the relevant page privileges while User - Config: Deny Config Write is set. The record characterizes the attack as low complexity and requiring no additional user interaction. A public proof of concept demonstrates configuration replacement in a lab environment; the available evidence does not establish exploitation in the wild.

Technical impact

The attacker starts with an authenticated WebGUI account and meaningful page privileges, not anonymous access. Replacing config.xml can move the attacker from limited WebGUI access to system-level configuration control, and the record states that root-level code execution can follow after reload or reboot. Possible consequences include loss of administrative access, altered firewall policy, service disruption, and control of the appliance, while impact on other systems is not established by the record. The public proof of concept demonstrates configuration replacement in a lab; specific post-exploitation actions and real-world data compromise are not established.

Business impact

  • System integrity: A user with restricted WebGUI privileges can replace the firewall or appliance's central configuration, bypassing the intended read-only control.
  • Operations and availability: A malicious or malformed configuration could alter network behavior, obstruct administration, cause lockout, or trigger a reload or reboot. The research source presents lockout and reboot effects as inferred consequences, not as outcomes all demonstrated in the lab.
  • Access control: If root-level code execution is achieved, the attacker may control the appliance at a privilege level far beyond the original WebGUI account.
  • Limit: The record does not identify a victim, campaign, or breach, and it does not by itself establish compromise of other systems on the network.

Remediation

  1. Apply a Netgate update that adds the authorization check to config_install() and config_restore(). The record indicates that a patch is available, but it does not identify an exact fixed release. Do not treat an unverified release as safe without confirmation from Netgate.
  2. Until the update is applied, remove services_acb.php, uploadconfig.php, diag_confbak.php, and diag_backup.php page privileges from read-only accounts where those privileges are not required.
  3. Do not treat User - Config: Deny Config Write as sufficient mitigation, because this vulnerability allows the restore and installation paths to bypass that control.
  4. Review recent changes to config.xml, WebGUI privileges, and reload or reboot history. If unauthorized changes are found, restrict unnecessary administrative access and restore a trusted configuration through an approved operational process.

Detection

  1. Inventory deployed pfSense CE instances and compare them with the affected range in affected_summary.
  2. Review WebGUI roles for read-only accounts that can access services_acb.php, uploadconfig.php, diag_confbak.php, or diag_backup.php.
  3. Review configuration logs for unexpected events such as Installing configuration .... or Configuration Change: and correlate them with reloads, reboots, or changes to user privileges.
  4. Compare the current config.xml with a trusted backup, especially after unapproved configuration installation or restoration events.
  5. Consider both unexpected changes and missing expected telemetry; the absence of a matching log entry does not prove that the system was not compromised.
Sources (12)
Learn more

Run an in-depth assessment with complete web risk management

CyStack VulnScan continuously discovers assets, validates vulnerabilities, and helps security teams prioritize remediation across the organization.