The PHP project released security updates on 21 October 2026 fixing two critical, unauthenticated remote code execution vulnerabilities (CVE-2026-109618 and CVE-2026-109619). If you run a dedicated server or a self-managed (unmanaged) cloud/VPS server with PHP installed, you are responsible for updating it yourself. Update to PHP 8.5.12, 8.4.27, 8.3.36 or 8.2.35 (whichever major version you run) as soon as possible. If you are on one of our fully managed plans, our team handles this for you, see the note below. Further down, there’s a single SSH command for your setup that checks your version and updates it in one step.
Updated 23 October 2026: the first version of this article left out four things that matter. You must restart PHP after you update it. A version number alone can mislead you on distribution packages. PHP you forgot about can still be exposed. And if your server was online before you patched, you should rotate your secrets. We have added all four, plus what is known so far about attacks in the wild.
Updated 24 October 2026: the Ubuntu and Debian update command in the earlier versions of this article upgraded nothing in our tests, because it named only the small php-cli, php-common and php-fpm pointer packages. The corrected command is below. We have also added the PHP project's 23 October follow-up advisory, an extra setting for PHP 8.5, and a changelog check that works on current Ubuntu packages.

php -v. One of our own VPS instances was already on 8.3.36, the fixed version, when we checked.What the vulnerabilities actually do
Both issues were published by the PHP project on 21 October 2026, both rated CVSS 9.2 (critical), and both can allow an attacker to run arbitrary code on an affected server without needing to log in first.
- CVE-2026-109618, memory handling under out-of-memory conditions can leave internal request data only partially set up. If request cleanup then treats that incomplete data as valid, it can lead to remote code execution. According to PHP’s advisory, this risk is highest on mod_php setups, where a single unauthenticated request can trigger it before any of your own application code even runs.
- CVE-2026-109619, internal state tied to one request can survive after its memory has been freed. If the same worker process handles a later request before that leftover state is reset, the new request may use stale data, which can also lead to remote code execution.
PHP’s own advisory is direct about this: updating is the only complete fix. Settings like memory_limit=-1, a lower post_max_size, or turning off session.upload_progress.enabled only reduce exposure to specific attack paths. None of them make an unpatched server safe on their own.
PHP’s advisories add a few details. Set the options in php.ini, the FPM pool or the web server configuration, because those apply before a request is parsed. Do not rely on ini_set() or a .user.ini file. Restart every PHP worker after you change them. Do not use RLIMIT_AS or RLIMIT_DATA as a limit, because they can cause the very allocation failure the bug needs. If your applications do not use upload progress, keep session.upload_progress.enabled=0 even after you patch. On PHP 8.5, the PHP project also lists fatal_error_backtraces=0.
On 23 October 2026 the PHP project followed up with an informational advisory (CVE-2026-115560): keep session.upload_progress.enabled=0 until its next regular release, even on the fixed versions. The issue needs an unusual setup, an application that sets session.serialize_handler to php_binary or php_serialize and then switches it to php with ini_set() before session_start(), so the PHP project is handling it in the normal release cycle. Applications that never change the handler can keep upload progress on.
Is it being exploited yet?
The official sources agree that the risk is real, and they say it can change quickly. Treat an unpatched server as one that will be attacked.
- The PHP project describes a demonstrated exploit against mod_php, where one unauthenticated request can trigger the bug before any of your application code runs. Its announcement does not say whether attacks are already happening.
- CISA urges immediate patching. Its alert of 21 October 2026 said it had not observed exploitation at the time of publication.
- The Canadian Centre for Cyber Security reports that a proof of concept is available. Its alert of the same day said no active exploitation had been identified, but warned that this “can change quickly”.
- CISA says a web application firewall may give some protection until you update. It is a stopgap, not a fix.
- Be careful with exploit code you find online. Do not run it on a machine you care about.
Which PHP version fixes it
| Your branch | Update to |
|---|---|
| PHP 8.5.x | 8.5.12 |
| PHP 8.4.x | 8.4.27 |
| PHP 8.3.x | 8.3.36 |
| PHP 8.2.x | 8.2.35 |
PHP 8.1 and older no longer receive official updates from the PHP project. The advisory does provide minimal source backports for 7.4, 8.0 and 8.1, but if you’re on one of these end-of-life branches, treat this as a strong reason to plan an upgrade to a supported version rather than relying on a backport indefinitely. PHP 8.2 itself reaches end of life on 31 December 2026, so plan to move to 8.3 or later.
PHP 7.3 and older, including PHP 5, are affected too and have no fix at all. Moving to a supported version is the only real answer for those. CISA’s advice for anyone who cannot update at once, or who still runs PHP 8.1 or earlier, is to take the PHP-based systems offline until they can be patched or upgraded.
How to check your version
From your server’s command line:
php -v
On a cPanel server with EasyApache PHP, your active version’s binary is under /opt/cpanel/ea-phpXX/root/usr/bin/php (for example ea-php83 for PHP 8.3). Update through WHM’s MultiPHP Manager, or your distribution’s package manager if you installed PHP another way. If you run multiple PHP versions for different sites, check each one.
One command to check and update
If you’d rather not check first and decide separately, you don’t have to. Each line below prints your current version, then updates PHP through your system’s own package manager; if you’re already on the fixed version, the update step changes nothing. Pick the one that matches your server.
cPanel with EasyApache PHP, on AlmaLinux, CloudLinux or another RPM-based OS:
php -v && yum update -y "ea-php*"
cPanel with EasyApache PHP, on Ubuntu:
php -v && apt update && apt install --only-upgrade -y "ea-php*"
Plain Ubuntu or Debian, PHP from your distribution’s repositories or the Ondřej Surý PPA:
php -v && apt update && apt install --only-upgrade -y "php*"
Keep the quotes and the *: they let apt upgrade every installed PHP package, such as php8.3-cli and php8.3-fpm, without installing new ones. Naming only php-cli, php-common and php-fpm is not enough. In our test on Ubuntu 24.04 that printed "0 upgraded" and left php8.3-cli on the old build, while the command above upgraded all five PHP packages.
AlmaLinux, Rocky or another RHEL-family server, PHP from AppStream or the Remi repository:
php -v && dnf update -y "php*"
These are standard package-manager commands, not a special script, so they behave the same way any other system update does: review what they plan to change if you have a staging copy to test against first, and run php -v again afterwards to confirm the version actually moved.
Updating the package is only half the job. A PHP worker that is already running keeps using the old code until it is restarted. Do the next step before you call the server safe.
Restart PHP after you update
Patching the files on disk does not change the PHP that is already loaded in memory. Restart whatever runs PHP on your server. Pick the lines that match your setup.
PHP-FPM with Nginx or Apache, on Debian or Ubuntu (change 8.3 to your version):
systemctl restart php8.3-fpm
PHP-FPM on AlmaLinux, Rocky or another RHEL-family server:
systemctl restart php-fpm
Apache with mod_php, or a server that also runs Apache in front of FPM:
systemctl restart apache2 # Debian or Ubuntu
systemctl restart httpd # AlmaLinux, Rocky, CloudLinux
cPanel and WHM servers:
/scripts/restartsrv_apache_php_fpm && /scripts/restartsrv_httpd
LiteSpeed or OpenLiteSpeed:
systemctl restart lsws
Docker: pull an image built on a fixed PHP and recreate the container. Restarting the old container does not help.
docker compose pull && docker compose up -d
To confirm that no worker is still running the old code, look for processes that still map a deleted PHP file. If this prints anything, restart that service:
for p in $(pgrep -f 'php|httpd|apache2|lsphp'); do grep -qE '(php|libphp).*\(deleted\)' /proc/$p/maps 2>/dev/null && echo "PID $p is still running the old PHP: $(cat /proc/$p/comm)"; done
Also remember that php -v shows the command-line PHP only. For FPM, run php-fpm -v (or php-fpm8.3 -v) as well.
A version number can mislead on distribution packages
Debian, Ubuntu and Red Hat family systems often fix a bug without changing the PHP version number. They patch the version they already ship, and only the package release number changes. So php -v can still show an older number on a server that is already fixed, and the upgrade advice above is for PHP from PHP.net or a repository that follows its releases, such as EasyApache or Remi.
To check a distribution package, look for the CVE in the package changelog:
zgrep -E '109618|109619' /usr/share/doc/php8.3-common/changelog.Debian.gz # Debian or Ubuntu
rpm -q --changelog php-cli | grep -E '109618|109619' # AlmaLinux, Rocky, RHEL
rpm -q --changelog ea-php83-php-cli | grep -E '109618|109619' # cPanel EasyApache
If a line prints, the fix is in. If nothing prints, the package may not have the fix yet, or its changelog may not name the CVE. Check your vendor’s security notice before you assume you are safe.
In our tests on 24 October 2026, the current PHP packages of Ubuntu 24.04 (which still reports PHP 8.3.6), Ubuntu 26.04, Debian 13, AlmaLinux 9 (which still reports PHP 8.0.30) and cPanel EasyApache all named both CVEs. AlmaLinux 10 ships PHP 8.3.36, the fixed version, but its changelog does not name them, so there the version number is the check. On Debian and Ubuntu we read the changelog file installed with the package, because apt changelog could not download it for the current Ubuntu package.
Find the PHP you forgot about
The web server you know about is rarely the only one. These are the places people miss:
- Control panels on their own ports, for example cPanel on 2083 and WHM on 2087, and anything on 8080 or 8443.
- Tools under a sub-path, such as
/phpmyadmin/. - Appliances and control panels that bundle their own PHP.
- Containers built on an old base image.
- Old domains, staging sites and campaign sites nobody looks at any more.
Do not leave the PHP-FPM port (9000 by default) open to the internet. It should only be reachable from the web server on the same machine. List what is listening, and close what should not be:
ss -tlnp | grep -E ':(9000|2083|2087|8080|8443)\b'
If your server was online before you patched
Treat it as possibly exposed. These bugs can lead to code running with the permissions of your web worker, so assume anything that process could read may have been seen: database passwords, API keys, tokens and session keys. So:
- Rotate database passwords, API keys and session or signing keys, starting with the ones that reach other systems.
- Look for signs of a break-in, as CISA and the Canadian Cyber Centre advise: PHP or web server processes starting shells or download tools, and unexpected processes, commands, files, accounts or outbound connections.
- Check new files in the web root and new cron jobs.
- Look in your logs for unusual multipart requests followed by memory-limit errors, repeated HTTP 500 responses and PHP workers crashing or restarting.
- Look back as far as your logs go, not only from the day of the announcement.
- A clean log does not prove you were not hit. If in doubt, open a ticket and we will help you check.
If you’re on an Ucartz managed plan
Every Ucartz plan includes Free Basic Managed Support, and our Managed cPanel VPS, Managed Webmin VPS, Managed CWP VPS and other fully managed services include PHP and system patching as part of the service. If that’s you, there’s nothing you need to do, our team applies vendor security updates like this one as part of normal maintenance.
If you run a self-managed KVM VPS or an unmanaged dedicated server, PHP patching is on you, the same as any other software you install. It’s one of the trade-offs of full root access: more control, but also more responsibility for keeping what you install up to date.
What to do right now
- Check your PHP version on every server and every PHP version you run, using
php -vandphp-fpm -v, and the changelog check if you use distribution packages. - Update to your fixed version today. Put internet-facing servers first, and mod_php servers before the rest.
- Restart PHP-FPM, Apache and LiteSpeed so the new code is actually running.
- Find the PHP you forgot about: other ports, panels, containers and old sites.
- If the server was online before you patched, rotate your secrets and check for signs of a break-in.
- If you are not sure which plan you are on or whether patching is included, open a ticket and our team will confirm.
For a shorter, step-by-step version of the fix with the copy-paste commands and nothing else, see our knowledge base article How to Fix the Critical PHP Security Vulnerabilities (CVE-2026-109618, CVE-2026-109619).
Sources
Our team researched this issue and referred to the following official sources:
- The PHP project: security announcement of 21 October 2026
- The PHP project: informational advisory on session upload progress, 23 October 2026 (CVE-2026-115560)
- PHP advisory GHSA-w8hw-w9fx-j79w (CVE-2026-109618, RCE via OOM corruption)
- PHP advisory GHSA-6wmf-4rv5-p3rp (CVE-2026-109619, RCE via stale global state)
- CISA: Critical Vulnerabilities in PHP Require Immediate Patching
- Canadian Centre for Cyber Security: alert AL26-026
We update this article as new facts are confirmed. Last updated 24 October 2026.