Skip to content
PHP released the fixed versions on 21 October at 14:00 UTC. Update PHP on every server you run.CERT-EU advisory
php2shell.xyz
PHP version

How to check your PHP version and whether it has the fix

The fix for PHP2Shell (CVE-2026-109618 and CVE-2026-109619) is in PHP 8.2.35, 8.3.36, 8.4.27 and 8.5.12. To know whether a site has it, you need the version of the PHP that serves the site. Some distributions and control panels add the fix without changing that version number, so you may also need the package version. The sections below are ordered by the access you have.

Updated

Versions that have the fix

PHP branchHas the fix from
8.1 and olderNo official release
8.28.2.35
8.38.3.36
8.48.4.27
8.58.5.12

A later release on the same branch also has the fix. PHP 8.1 and older no longer get releases from the PHP project. Its security team published source backports for PHP 7.4, 8.0 and 8.1 for people who build PHP themselves, and some distributions and hosting companies ship their own backported builds (see when the version number doesn’t change). PHP 8.6.0 RC4, a test release that is not for production use, also contains the fix.

The fixed versions page explains how to install them.

Without access: the checker

The checker on the front page reads the PHP version from what the server shows every visitor: response headers, and public phpinfo or debug pages. Many servers hide the version. The report then says “Check needed”, and you need one of the methods below or an answer from your hosting company.

A distribution build can include the fix under an older version number. When the checker recognises such a build, the report says so.

Check your domain

In WordPress

If you can log in to the WordPress dashboard:

  1. Go to Tools → Site Health.
  2. Open the Info tab.
  3. Expand the Server section.
  4. Read the line “PHP version”.

WordPress reads this from the PHP that is running the site, so it is the version that serves your pages. The Info tab can also copy all of these details to the clipboard, which is useful when you write to your hosting company. A version below the fixed version can still have the fix if your hosting company uses a backported build, so check with them.

For more on WordPress sites, see the WordPress page.

In a hosting control panel

Control panels let you choose a PHP version for each site. This is where each panel shows it.

  • cPanel

    Open MultiPHP Manager in the Software section. It lists each domain with the PHP version it uses. “Inherited” means the domain uses the server’s default version, which the hosting company sets. If MultiPHP Manager is missing, the hosting company may have turned it off.

  • cPanel with CloudLinux

    If your hosting company uses CloudLinux’s PHP Selector, the cPanel home page has “Select PHP version”. It shows the version selected for your account and the versions the hosting company allows.

  • Plesk

    Go to Websites & Domains, find the domain and click PHP. The selected version is also shown next to the domain’s PHP icon.

  • DirectAdmin

    The PHP version for a domain is set on the Domain Setup page. A subdomain can have its own version under PHP Version Selector in the document root override settings.

With a phpinfo page

If you can upload files through the panel’s file manager or FTP, a phpinfo page shows the version of the PHP that serves the site.

  1. Create a text file with a name that is hard to guess, such as info-4f9c2a.php, containing this one line:
    <?php phpinfo(); ?>
  2. Upload it to the folder that holds your site’s home page, where index.php is.
  3. Open it in a browser, for example https://example.com/info-4f9c2a.php. The heading at the top reads “PHP Version” followed by the number.
  4. Delete the file right away.

On the server

php -v prints the version of the command-line PHP, marked “cli” in its output. The website is usually served by a different PHP binary: PHP-FPM, or Apache’s mod_php. On a server with several PHP versions installed, these can be different versions.

php -v

Debian and Ubuntu name the PHP-FPM binary after its branch, for example php-fpm8.4 on Debian 13. List the installed binaries, then ask the one your site uses for its version. The output also shows the date the binary was built.

ls /usr/sbin/php-fpm*
/usr/sbin/php-fpm8.4 -v

This reads the binary on disk. PHP-FPM workers and Apache keep running the PHP they loaded when they started, so after an update the running version can still be the old one. A phpinfo page shows what the running workers use. If its “Build Date” differs from the build date above, the service hasn’t been restarted since the update.

Restart the service that runs PHP after every PHP update:

# Debian and Ubuntu, PHP-FPM
sudo systemctl restart php8.4-fpm
# Debian and Ubuntu, Apache with mod_php
sudo systemctl restart apache2

# RHEL and related systems
sudo systemctl restart php-fpm
sudo systemctl restart httpd

Application servers that keep PHP workers running, such as FrankenPHP, Swoole and RoadRunner, need a restart too. The update guides cover each one.

In Docker

A container runs the PHP that was built into its image. Ask the running container for its version:

docker exec <container> php -v

# with Docker Compose
docker compose exec <service> php -v

If the image installs PHP from Debian or Ubuntu packages, check the package version inside the container as described in the next section:

docker exec <container> dpkg -l 'php*'

Pulling a new image doesn’t change a container that is already running. Recreate the container after pulling. See the guide to the official PHP Docker images.

When the version number doesn’t change

Ubuntu adds the fix to the PHP versions it already ships, and cPanel does this for its PHP 7.4, 8.0 and 8.1 builds. Red Hat also backports security fixes. In each case the PHP version number stays where it was and only the package version goes up. Red Hat notes that the version number of a package alone does not tell you whether it is vulnerable.

Ubuntu and Debian

Fixed packages as of 21 October 2026, from the Ubuntu and Debian security trackers. A higher package version on the same release also has the fix.

ReleasePackageFixed in
Ubuntu 26.10php8.58.5.9-0ubuntu2.1
Ubuntu 26.04 LTSphp8.58.5.4-0ubuntu1.5
Ubuntu 24.04 LTSphp8.38.3.6-0ubuntu0.24.04.13
Ubuntu 22.04 LTSphp8.18.1.2-1ubuntu2.28
Ubuntu 20.04 LTS (Ubuntu Pro)php7.47.4.3-4ubuntu2.29+esm5
Ubuntu 18.04 LTS (Ubuntu Pro)php7.27.2.24-0ubuntu0.18.04.17+esm14
Ubuntu 16.04 LTS (Ubuntu Pro)php7.07.0.33-0ubuntu0.16.04.16+esm22
Ubuntu 14.04 LTS (Ubuntu Pro)php55.5.9+dfsg-1ubuntu4.29+esm18
Debian 13 (trixie)php8.48.4.27-1~deb13u1
Debian 12 (bookworm)php8.28.2.35-1~deb12u1

On Ubuntu 24.04, for example, PHP stays at 8.3.6, and the fixed package is 8.3.6-0ubuntu0.24.04.13. On Ubuntu 20.04 and older the fix comes through Ubuntu Pro. Debian 12 and 13 moved to the fixed PHP versions, so there the version number does show the fix. Debian testing and unstable had no fixed package yet.

List the installed PHP packages and compare their versions with the table. You can also search the changelog of the installed package for the two CVE IDs. The example uses php8.3-fpm on Ubuntu 24.04.

dpkg -l 'php*'
apt-get changelog php8.3-fpm | grep -E "CVE-2026-109618|CVE-2026-109619"

RHEL and other RPM-based systems

Check the installed package versions, and look for the CVE IDs in the package changelog:

rpm -q php php-fpm
rpm -q --changelog php | grep -E "CVE-2026-109618|CVE-2026-109619"

cPanel (EasyApache 4)

cPanel’s EasyApache 4 change log for 21 October 2026 (version 25.91) updates ea-php82, ea-php83, ea-php84 and ea-php85 to 8.2.35, 8.3.36, 8.4.27 and 8.5.12. For ea-php74, ea-php80 and ea-php81 it backports the fix. There is no new PHP release for those branches, so a cPanel site on PHP 8.1 can have the fix and still report an 8.1 version. Ask your hosting company whether this EasyApache update is installed.

For the fix status by distribution, control panel and hosting company, see the fix status page. For sites on PHP 8.1 or older, see the page on PHP 8.1 and older.

Ask your hosting company

On shared hosting the hosting company installs and updates PHP, and only they can say for certain which build runs your site. You can send them this message.

For your hosting company

Hello,

Because of the PHP2Shell vulnerabilities (CVE-2026-109618 and CVE-2026-109619), I need to know the following about the PHP that serves my site:

1. Which PHP version is it, including the full release number (for example 8.3.36)?

2. Is the fix for CVE-2026-109618 and CVE-2026-109619 installed, and has PHP been restarted since?

3. If the fix is not installed yet, when will it be?

4. If my site runs PHP 8.1 or older: does your build of PHP include a backported fix for these two CVEs?

Answers that mean the fix is installed

  • “We are on PHP 8.3.36.”Or 8.2.35, 8.4.27, 8.5.12, or a later release on the same branch.
  • “Our packages include the fix for CVE-2026-109618 and CVE-2026-109619.”A backported build, such as Ubuntu’s packages or cPanel’s ea-php81, has the fix under the old version number.

Answers that mean PHP isn’t updated yet

  • “We added WAF rules.”Firewall rules filter requests before they reach PHP. The PHP advisories say updating is the only complete fix.
  • “We are monitoring the situation.”Monitoring doesn’t change PHP.
  • “We changed PHP settings.”PHP says these settings reduce exposure to specific attack paths and do not make an installation safe.

Answers to follow up on

  • “Your site is protected.”Ask whether PHP was updated or firewall rules were added. Only an update fixes the flaw.
  • “You are on PHP 8.3.”8.3 is a branch. Ask for the full release number, or whether the build includes the fix.

Sources