Critical PHP update (21 Oct 2026) First fixed upstream releases: 8.6.0, 8.5.13, 8.4.28, 8.3.37, 8.2.36. What to do now New (23 Oct): CVE-2026-115560

Remediation

Immediate actions

Page last updated: Data verified:

Contents

The only complete fix is upgrading PHP. The sequence below helps make sure no runtime is left behind and that you confirm the fix actually applies where the website is being served.

Action checklist#

Progress is saved only in your browser (localStorage) and is not sent anywhere. Without JavaScript, the checkboxes work but are not saved.

1. Locate all PHP runtimes and sites#

A server can have several PHP installations at once: different versions per site (MultiPHP, PHP Selector, Plesk handlers), a separate CLI, PHP inside containers, tools such as phpMyAdmin or webmail, and the panel’s own internal PHP.

Read-only: changes nothing

# All PHP binaries in the usual locations (cPanel, CloudLinux, Plesk, DirectAdmin, distribution)
ls -d /opt/cpanel/ea-php*/root/usr/bin/php /opt/alt/php*/usr/bin/php \
      /opt/plesk/php/*/bin/php /usr/local/php*/bin/php /usr/bin/php* 2>/dev/null

# Running PHP processes and the binary/settings they were started from
ps -eo pid,user,args | grep -E '[p]hp-fpm|[l]sphp|[p]hp-cgi|[h]ttpd|[a]pache2' | head -50

# Running containers (if Docker is present)
docker ps --format '{{.Names}}\t{{.Image}}' 2>/dev/null

For each site, record: which runtime serves it (handler, socket, container), the version and the package source.

2. Backup and upgrade planning#

  • Take a backup of files, databases and configuration (php.ini, pools, vhosts) or a snapshot of the server.
  • If an application requires a branch change (e.g. from 7.4 to 8.3), that is a bigger change and needs testing. Within the same branch (e.g. 8.3.x to 8.3.36) the risk of incompatibility is usually small.
  • Let those affected know about a possible short interruption during the restart.

3. Install a fixed package from the appropriate source#

Use the source your current PHP came from: the panel (WHM/EasyApache, Plesk Updates, DirectAdmin CustomBuild), the distribution repository, the official container image or your own build. Do not mix repositories just to get a version number sooner.

Instructions per environment: cPanel/WHM · Plesk · DirectAdmin · RHEL/AlmaLinux/Rocky · Debian/Ubuntu · Docker.

4. Restart services and workers#

A PHP process that started before the upgrade keeps running the old code from memory, even if the file on disk has been replaced. Restart:

  • the web server, if it uses mod_php (Apache),
  • all PHP-FPM masters/pools,
  • LiteSpeed’s lsphp processes. In detached mode they are not restarted together with the web server, as LiteSpeed notes,
  • persistent workers: queue workers, Horizon, Octane, RoadRunner, Swoole, Supervisor, FrankenPHP,
  • containers (new image and re-creation of the container, not a simple restart).

Read-only: changes nothing

# Processes running a binary that has been replaced or deleted from disk
for p in $(pgrep -f 'php|httpd|apache2|lsphp'); do
  ls -l /proc/$p/exe 2>/dev/null | grep -q '(deleted)' && ps -o pid,args -p $p | tail -1
done

5. Confirm the version actually serving the web#

A safe method: a temporary file with a random name that shows only the version and the SAPI, and is deleted immediately.

Changes packages or configuration: back up and test first

# In the site's document root (e.g. /home/USER/public_html). The random name prevents third parties from finding it.
F="v-$(openssl rand -hex 8).php"
echo '<?php header("Content-Type: text/plain"); echo PHP_VERSION, " ", PHP_SAPI, "\n";' > "$F"
curl -s "https://example.com/$F"
rm -f "$F"

If the version is lower than the fixed upstream one, check whether it is a backport from your vendor (see backports).

6. Check that applications work#

  • Open the main pages, log in to the admin area, test forms and uploads.
  • On e-shops: basket, checkout, payment in test mode, order emails.
  • Check the PHP error logs for new errors, especially around memory limits. The fix changes the behaviour when the limit is exceeded (see here).
  • Confirm that cron jobs and workers are running.

7. Review for signs of possible compromise#

Because there were exploitation attempts both before and after disclosure, check the period during which the system was vulnerable. If a system could not be patched immediately, the NCSC recommends checking for backdoors before the upgrade or the temporary measures. The possible compromise guide describes what to examine and how to preserve the evidence.

Sources: Amazon Web Services · UK National Cyber Security Centre · watchTowr