Critical PHP Security Update
-
PHP has announced two critical vulnerabilities in their software which affect pfSense software installations: CVE-2026-109618 and CVE-2026-109619.
Who is Affected
These issues are only a cause for concern if the pfSense software PHP GUI or Captive Portal service are exposed to potential attackers. By default, the pfSense software PHP GUI is only accessible from the local private network (LAN), not from the Internet (WAN). The Captive Portal service is not active by default.
Users of the Captive Portal service, which is by design typically exposed to untrusted clients, should update PHP as soon as possible.
Users who do not use Captive Portal and also followed secure practices when configuring firewall rules to limit GUI access are not affected, but should still update when convenient to be safe.
We encourage everyone to review their filter rules and confirm the GUI is not accessible from any untrusted networks. Anyone who has exposed their GUI to the Internet or other untrusted networks should update PHP immediately, reconfigure their rules, and only access the GUI by secure means, such as a VPN, in the future.
New PHP Packages Available
We have published updated PHP binary packages for pfSense Plus software versions 26.07 and 26.03.1, along with pfSense CE software versions 2.9.0 and CE 2.8.1.
pfSense Plus software version 26.07, pfSense Plus software version 26.03.1, and pfSense CE software version 2.9.0 should now have PHP 8.5.12
pfSense CE software version 2.8.1 should now have PHP 8.3.36
Updating PHP Packages
These binary package updates cannot be performed using the pfSense software PHP GUI or the Nexus GUI, they must be performed at a command line.
Use one of the following command sets from an SSH or console shell prompt to upgrade PHP and other packages to the latest available versions:
Note that in each of the following methods, the WireGuard package is reinstalled after other packages. This is a necessary step to ensure the WireGuard package is using the correct version of PHP as it may fail to start otherwise. For users performing this upgrade over a WireGuard connection, this is likely to interrupt connectivity during the process.
Method 1 (Best Practice): Update all binary packages and reboot
The best practice is to update all packages and reboot. This will also catch other recent updates that may require restarting additional services.
# pfSense-upgrade -c && \ pkg upgrade -y && \ pkg upgrade -fy pfSense-pkg-WireGuard && \ /etc/rc.rebootMethod 2: Update all binary packages and restart all web services
This method updates PHP and then restarts both the PHP GUI and the Captive Portal service.
# pfSense-upgrade -c && \ pkg upgrade -y && \ pkg upgrade -fy pfSense-pkg-WireGuard && \ /etc/rc.php-fpm_restart && \ /etc/rc.restart_webgui && \ /etc/rc.captiveportal_configureMethod 3: Update all binary packages and Restart the PHP GUI
This method updates PHP and other binary packages then restarts only the PHP GUI. This is safe for users who do not use Captive Portal.
# pfSense-upgrade -c && \ pkg upgrade -y && \ pkg upgrade -fy pfSense-pkg-WireGuard && \ /etc/rc.php-fpm_restart && \ /etc/rc.restart_webguiUpgrades and Fresh Installations
We strongly encourage users on older versions of pfSense software to upgrade to a current supported release as soon as possible.
With the updated packages now available in the repository, anyone performing a fresh install, reinstall, or upgrade from an older version to a current release of pfSense software will automatically get the updated PHP packages and will not require additional manual intervention.
-
J jimp pinned this topic
-
S SteveITS referenced this topic
-
J jimp referenced this topic
-
I have a Pfsense+ 26.03.1 version that I purchased way before your new annual TAC subscription policies went into effect.
And, now, of course, I can't apply the patches.
Do you have an alternative, or do I have to downgrade to Pfsense CE or switch to a different solution?
Thanks. -
@sisko212 Plus always was a subscription if not using Netgate hardware. There was for a time a free home/lab version, and apparently a second "one-year" offering that ended this year.
Aside from a subscription/license, you can install 2.9 and have it read in the existing config file during the install. (since 2.9 has a later config version than 26.03)
-
will there be a patch for this exploit released for pfSense 2.7.2-RELEASE?
-
@Paint said in Critical PHP Security Update:
will there be a patch for this exploit released for pfSense 2.7.2-RELEASE?
No, that release is no longer supported.
-
@jimp that is unfortunate. I will upgrade over the weekend when I have time. Since Im sure Im not the only one using an old build, is there anyway that we can get this PHP patch backported to this version?
-
@Paint There's lots of other security updates in later versions...
https://docs.netgate.com/pfsense/en/latest/releases/2-8-0.html#security-errata
https://docs.netgate.com/pfsense/en/latest/releases/2-9-0.html#securityand usually System Patches updates from Plus
https://docs.netgate.com/pfsense/en/latest/releases/26-07.html#security-errata -
@Paint said in Critical PHP Security Update:
@jimp that is unfortunate. I will upgrade over the weekend when I have time. Since Im sure Im not the only one using an old build, is there anyway that we can get this PHP patch backported to this version?
No, the farthest back we are updating is Plus 26.03.1 and CE 2.8.1. There are numerous other security issues in that version, the only path forward is to upgrade.
-
@Paint said in Critical PHP Security Update:
@jimp that is unfortunate. I will upgrade over the weekend when I have time. Since Im sure Im not the only one using an old build, is there anyway that we can get this PHP patch backported to this version?
Considering how simple it is to upgrade compared to doing the PHP patch, I would not even consider just patching it - if someone figures a way to patch PHP on this platform
-
@Paint Not keeping your stuff updated is the unfortunate part IMO. There is no excuse for that, and expecting the Netgate team to do the work of creating and validating patches on unsupported software because you couldn't be bothered to stay current is absurd.
-
@KOM that is just crazy talk ;) hehehe
-
@KOM said in Critical PHP Security Update:
@Paint Not keeping your stuff updated is the unfortunate part IMO. There is no excuse for that, and expecting the Netgate team to do the work of creating and validating patches on unsupported software because you couldn't be bothered to stay current is absurd.
It was a question and a request, not a demand or expectation. Ill be upgrading shortly. Thanks
-
Not directly related to this php stuff, but update related anyway.
I've seen two commands used:pkg upgradepkg-static upgradeWhat's the difference and should one be preferred over the other (and if so, why)?
-
@mvikman said in Critical PHP Security Update:
Not directly related to this php stuff, but update related anyway.
I've seen two commands used:pkg upgradepkg-static upgradeWhat's the difference and should one be preferred over the other (and if so, why)?
On a proper system, where no third-party repos have been enabled in order to install some non-official package, there is no difference in the two commands.
pkg-staticis a version of the Package Manager program that has the required supporting libraries compiled into the executable (hence the "static" suffix on the name).pkgis the normal default executable and it will use the installed shared libraries. Compiling the libraries into the executable greatly swells the size of the resulting program. -
@mvikman said in Critical PHP Security Update:
Not directly related to this php stuff, but update related anyway.
pkg upgradepkg-static upgradeWhat's the difference and should one be preferred over the other (and if so, why)?
pkg-staticis a safety net for when something is out of sync with the installed packages. Like when the installed version of thepkgcommand is expectinglibssl.so.35(and will not run without it), but for whatever reason the current installed version islibssl.so.32. -
If I have no wireguard installed and under pfsense 2.9.0 and will run "Method 1 (Best Practice)" is this the correct steps:
- from pfsense console choose number 8 (Shell)
- Execute code without the third line for wireguard:
pfSense-upgrade -c &&
pkg upgrade -y &&
/etc/rc.reboot
-
@richardsago you can also just paste as is, it will not upgrade if not installed
-
Thank you @SteveITS
-
sorry for this noob question: now that I have run the complete Method 1 code and pfsense rebooted, how do I check if the PHP update was applied successfully?
-
@richardsago said in Critical PHP Security Update:
how do I check if the PHP update was applied successfully?
Here : Diagnostics > Command Prompt
Ask it to talk about itself :

and hit Execute.
You'll find the answer on the second line.
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better ๐
Register LoginPrivacy Policy · Cookie Policy

