Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Search
    • Register
    • Login
    Introducing Netgate Nexus: Multi-Instance Management at Your Fingertips.

    Critical PHP Security Update

    Scheduled Pinned Locked Moved Messages from the pfSense Team
    75 Posts 30 Posters 12.0k Views 21 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • jimpJ
      jimp Rebel Alliance Developer Netgate
      last edited by jimp

      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.reboot
      

      Method 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_configure
      

      Method 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_webgui
      

      Upgrades 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.

      Remember: Upvote with the ๐Ÿ‘ button for any user/post you find to be helpful, informative, or deserving of recognition!

      Need help fast? Netgate Global Support!

      Do not Chat/PM for help!

      JonathanLeeJ P SteveITSS 3 Replies Last reply
      Reply Quote 9
      • jimpJ jimp pinned this topic
      • SteveITSS SteveITS referenced this topic
      • jimpJ jimp referenced this topic
      • S
        sisko212
        last edited by

        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.

        SteveITSS 1 Reply Last reply
        Reply Quote 0
        • SteveITSS
          SteveITS Galactic Empire @sisko212
          last edited by

          @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)

          To upgrade, select your branch in System/Update/Update Settings. When upgrading, allow 10-15 minutes to reboot, or more depending on packages, CPU, and/or disk speed.
          Only install packages for your version of pfSense.
          Upvote ๐Ÿ‘ helpful posts!

          1 Reply Last reply
          Reply Quote 0
          • P
            Paint
            last edited by

            will there be a patch for this exploit released for pfSense 2.7.2-RELEASE?

            pfSense i5-4590
            940/880 mbit Fiber Internet from FiOS
            BROCADE ICX6450 48Port L3-Managed Switch w/4x 10GB ports
            Netgear R8000 AP (DD-WRT)

            jimpJ 1 Reply Last reply
            Reply Quote 0
            • jimpJ
              jimp Rebel Alliance Developer Netgate @Paint
              last edited by

              @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.

              Remember: Upvote with the ๐Ÿ‘ button for any user/post you find to be helpful, informative, or deserving of recognition!

              Need help fast? Netgate Global Support!

              Do not Chat/PM for help!

              P 1 Reply Last reply
              Reply Quote 0
              • P
                Paint @jimp
                last edited by

                @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?

                pfSense i5-4590
                940/880 mbit Fiber Internet from FiOS
                BROCADE ICX6450 48Port L3-Managed Switch w/4x 10GB ports
                Netgear R8000 AP (DD-WRT)

                SteveITSS jimpJ keyserK KOMK 4 Replies Last reply
                Reply Quote 0
                • SteveITSS
                  SteveITS Galactic Empire @Paint
                  last edited by

                  @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#security

                  and usually System Patches updates from Plus
                  https://docs.netgate.com/pfsense/en/latest/releases/26-07.html#security-errata

                  To upgrade, select your branch in System/Update/Update Settings. When upgrading, allow 10-15 minutes to reboot, or more depending on packages, CPU, and/or disk speed.
                  Only install packages for your version of pfSense.
                  Upvote ๐Ÿ‘ helpful posts!

                  1 Reply Last reply
                  Reply Quote 0
                  • jimpJ
                    jimp Rebel Alliance Developer Netgate @Paint
                    last edited by

                    @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.

                    Remember: Upvote with the ๐Ÿ‘ button for any user/post you find to be helpful, informative, or deserving of recognition!

                    Need help fast? Netgate Global Support!

                    Do not Chat/PM for help!

                    1 Reply Last reply
                    Reply Quote 1
                    • keyserK
                      keyser Rebel Alliance @Paint
                      last edited by

                      @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

                      Love the no fuss of using the official appliances :-)

                      1 Reply Last reply
                      Reply Quote 1
                      • KOMK
                        KOM @Paint
                        last edited by

                        @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.

                        johnpozJ P 2 Replies Last reply
                        Reply Quote 3
                        • johnpozJ
                          johnpoz LAYER 8 Global Moderator @KOM
                          last edited by

                          @KOM that is just crazy talk ;) hehehe

                          An intelligent man is sometimes forced to be drunk to spend time with his fools
                          If you get confused: Listen to the Music Play
                          Please don't Chat/PM me for help, unless mod related
                          SG-4860 26.07 | Lab VMs 2.9.0, 26.07

                          1 Reply Last reply
                          Reply Quote 0
                          • P
                            Paint @KOM
                            last edited by

                            @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

                            pfSense i5-4590
                            940/880 mbit Fiber Internet from FiOS
                            BROCADE ICX6450 48Port L3-Managed Switch w/4x 10GB ports
                            Netgear R8000 AP (DD-WRT)

                            1 Reply Last reply
                            Reply Quote 0
                            • M
                              mvikman
                              last edited by

                              Not directly related to this php stuff, but update related anyway.
                              I've seen two commands used:

                              pkg upgrade
                              
                              pkg-static upgrade
                              

                              What's the difference and should one be preferred over the other (and if so, why)?

                              pfSense Plus 26.07-RELEASE (amd64)
                              Dell Optiplex 7040 SFF
                              Core i5-6500, 24GB RAM, 2x 240GB SSD (ZFS Mirror)
                              HPE 561T (X540-AT2), 2-port 10Gb RJ45
                              HPE 562SFP+ (X710-DA2), 2-port 10Gb SFP+

                              bmeeksB dennypageD 2 Replies Last reply
                              Reply Quote 0
                              • bmeeksB
                                bmeeks @mvikman
                                last edited by

                                @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 upgrade
                                
                                pkg-static upgrade
                                

                                What'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-static is a version of the Package Manager program that has the required supporting libraries compiled into the executable (hence the "static" suffix on the name). pkg is 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.

                                1 Reply Last reply
                                Reply Quote 0
                                • dennypageD
                                  dennypage @mvikman
                                  last edited by

                                  @mvikman said in Critical PHP Security Update:

                                  Not directly related to this php stuff, but update related anyway.

                                  pkg upgrade
                                  
                                  pkg-static upgrade
                                  

                                  What's the difference and should one be preferred over the other (and if so, why)?

                                  pkg-static is a safety net for when something is out of sync with the installed packages. Like when the installed version of the pkg command is expecting libssl.so.35 (and will not run without it), but for whatever reason the current installed version is libssl.so.32.

                                  1 Reply Last reply
                                  Reply Quote 0
                                  • R
                                    richardsago
                                    last edited by

                                    If I have no wireguard installed and under pfsense 2.9.0 and will run "Method 1 (Best Practice)" is this the correct steps:

                                    1. from pfsense console choose number 8 (Shell)
                                    2. Execute code without the third line for wireguard:
                                      pfSense-upgrade -c &&
                                      pkg upgrade -y &&
                                      /etc/rc.reboot
                                    SteveITSS 1 Reply Last reply
                                    Reply Quote 0
                                    • SteveITSS
                                      SteveITS Galactic Empire @richardsago
                                      last edited by

                                      @richardsago you can also just paste as is, it will not upgrade if not installed

                                      To upgrade, select your branch in System/Update/Update Settings. When upgrading, allow 10-15 minutes to reboot, or more depending on packages, CPU, and/or disk speed.
                                      Only install packages for your version of pfSense.
                                      Upvote ๐Ÿ‘ helpful posts!

                                      R 1 Reply Last reply
                                      Reply Quote 1
                                      • R
                                        richardsago @SteveITS
                                        last edited by

                                        Thank you @SteveITS

                                        1 Reply Last reply
                                        Reply Quote 1
                                        • R
                                          richardsago
                                          last edited by

                                          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?

                                          GertjanG 1 Reply Last reply
                                          Reply Quote 0
                                          • GertjanG
                                            Gertjan @richardsago
                                            last edited by

                                            @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 :

                                            efb96ba4-6f1d-404b-b3b2-2c4bd8f6335c-image.png

                                            and hit Execute.
                                            You'll find the answer on the second line.

                                            No "help me" PM's please. Use the forum, the community will thank you.

                                            R 1 Reply Last reply
                                            Reply Quote 0

                                            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 Login
                                            • First post
                                              Last post
                                            Copyright 2026 Rubicon Communications LLC (Netgate). All rights reserved.
                                            Privacy Policy · Cookie Policy