PHP2Shell.fyi Check a site

WHMCS and PHP2Shell

WHMCS runs on PHP, and PHP2Shell is two flaws in PHP itself (CVE-2026-109618 and CVE-2026-109619), so a WHMCS update does not fix it. Install a fixed PHP release that your WHMCS version and ionCube Loader support.

Last reviewed . Rules of .

What fixes it

See your PHP version in WHMCS

  1. Log in to the WHMCS Admin Area.
  2. Go to Utilities › System › PHP Info.
  3. The page shows the PHP version and the php.ini settings that the Admin Area uses.

If your WHMCS cron job uses the command-line PHP, that PHP can differ from the web PHP. Update both.

Which PHP release to install

PHP ranges, ionCube versions and end-of-life dates from the WHMCS system requirements and 9.1 release notes. Fixed releases from php.net.
WHMCSSupported PHPionCube LoaderFixed PHP to install
9.1End of life 2027-09-308.2, 8.3, 8.415.0.0 or later8.4.27, 8.3.36 or 8.2.35
9.0End of life 2026-12-318.2, 8.313.0.2 or later (8.2), 14.4.0 or later (8.3)8.3.36 or 8.2.35
8.13End of life to be announced7.2, 7.3, 7.4, 8.1, 8.2, 8.313.0.2 or later (8.2), 14.4.0 or later (8.3)8.3.36 or 8.2.35

No WHMCS version in this table lists PHP 8.5.

Do not move WHMCS to PHP 8.5 to get the fix. PHP 8.4 needs WHMCS 9.1 or later.

PHP 8.2 gets security fixes only until 31 December 2026. If your WHMCS version supports 8.3 or 8.4, prefer one of those.

Still on PHP 8.1 or 7.x with WHMCS 8.13?

The PHP project ships no release with the fix for PHP 8.1 and older. The PHP security team published source backports for 7.4, 8.0 and 8.1 only. Some Linux distributions and hosts ship builds that include the fix and keep the old version number. Ask your OS vendor or host, or move to PHP 8.3.36 or 8.2.35. See Fixed versions.

Update in the right order

WHMCS files are encoded with ionCube, so each PHP version needs a matching ionCube Loader and WHMCS version. Work in this order:

  1. Before you change PHP, open Utilities › System › PHP Version Compatibility. It lists encoded files that may not decode under a given PHP version. It does not check PHP syntax.
  2. Upgrade the ionCube Loader to 15.0.0 before you update to WHMCS 9.1.
  3. Update to WHMCS 9.1 before you move to PHP 8.4.

Utilities › Update WHMCS offers updates only while you run a compatible PHP version.

On shared hosting or cPanel, your host updates PHP. See cPanel, Plesk and shared hosting for what to ask.

After the update

Technical notes

Sources

Check your site

Our checker reads the public response of your WHMCS site and reports any PHP version it can see. Check my site.