On October 21, 2026, the PHP team released the announced security updates against PHP2Shell. They close the two critical vulnerabilities CVE-2026-109618 and CVE-2026-109619, which allow attackers to run malicious code on the server without logging in. What is behind the vulnerabilities and which systems are affected is summarized in PHP2Shell: Critical PHP Vulnerability - What Website Owners Need to Do Now. This post is about the updates themselves: which version you need and how to check whether your website is protected.
These PHP versions are safe
| PHP branch | Patched version | Note |
|---|---|---|
| 8.5 | 8.5.12 or newer | |
| 8.4 | 8.4.27 or newer | |
| 8.3 | 8.3.36 or newer | |
| 8.2 | 8.2.35 or newer | security updates only until December 31, 2026 |
| 8.1, 8.0, 7.4 | no official update | source patches only, for people compiling PHP themselves |
According to the PHP team’s security advisories, every version before these releases is vulnerable. Every PHP installation that serves web pages is affected - whether via PHP-FPM, Apache with mod_php, php-cgi, FrankenPHP or LiteSpeed. The PHP team sees the highest risk with Apache and mod_php: a working attack has been demonstrated there in which a single request without login is enough - before WordPress, Shopware or any other application even runs code.
What the updates fix
Both vulnerabilities are deep inside PHP - in the way PHP allocates and frees memory for a request:
- CVE-2026-109618 (memory corruption on “out of memory”): If PHP runs out of memory while processing a request, it can abort halfway through setting up internal data. During cleanup, PHP then treats this half-finished data as if it were valid. Among other things, this can be triggered by crafted file uploads or form requests (multipart).
- CVE-2026-109619 (leftovers from an earlier request): After certain errors, references to memory that has already been freed are left behind. A later request handled by the same PHP process can reuse these leftovers - a classic “use after free”.
Both vulnerabilities are rated critical with a CVSS score of 9.2 out of 10. Exploitation is considered demanding, but it is demonstrably possible: a working attack has already been shown, and Cloudflare has already rolled out firewall rules against known attack paths. Now that the technical details are public, you should not wait any longer.
Caution: the version number can be misleading
You cannot always tell from the version number whether your website is protected:
- Web hosting: Most hosts install the official PHP versions. If your hosting panel or WordPress under Tools → Site Health → Info → Server shows, for example,
8.3.36, you are up to date. If it still shows8.3.35or older, the update is missing. - Debian and Ubuntu: These distributions build security fixes into their own PHP version without raising the version number. Ubuntu 24.04, for example, ships PHP 8.3.6 and Debian 12 ships PHP 8.2 - these versions can be patched despite the “old” number. Only the package changelog tells you whether the update is included: both CVE numbers must appear there.
- Plesk, cPanel and other panels: They often bring their own PHP versions, which are updated independently of the operating system’s packages. Check both.
How to install the update
Web hosting (shared hosting, managed WordPress): It is up to your host. Check over the next few days whether the version number has increased, or ask support. If your website still runs on PHP 8.1 or older, it will not get the update - even if the host updates its servers.
Your own server with Debian or Ubuntu:
apt update && apt upgrade
# then restart PHP-FPM or the web server, e.g.:
systemctl restart php8.3-fpm
systemctl restart apache2
Your own server with Plesk: Install the updates under Tools & Settings → Updates and then check under PHP Settings which version each domain uses.
RHEL, AlmaLinux, Rocky Linux with Remi packages: The PHP team explicitly points out that the volunteer-maintained repository rpms.remirepo.net had no updates yet on release day. If you depend on it, switch to your distribution’s packages or compile PHP yourself.
Important: After the update, all PHP processes must be restarted. As long as old PHP-FPM or Apache processes keep running, they continue to serve the vulnerable version.
What about PHP 8.1, 8.0 and 7.4?
The PHP project no longer releases updates for these versions. Because of the severity of the vulnerabilities, however, the PHP security team has provided minimal source code patches for PHP 7.4, 8.0 and 8.1. These only help if you compile PHP yourself. For websites on regular web hosting, nothing changes. Some Linux distributions and vendors with extended support (LTS) also deliver fixes for older versions - in that case, ask your vendor.
For everyone else, what I wrote in the first post still applies: there is no way around switching to a current PHP version. And PHP 8.2 only gets updates until the end of 2026 - if you switch now, go straight to 8.3 or 8.4. What to do if your website shows a critical error after the switch is covered in “There Has Been a Critical Error on This Website” After the PHP Update.
Workarounds if you cannot update yet
The PHP team names a few settings that make certain attack paths harder - but explicitly stresses that they do not make an installation safe. They are at most an emergency measure for the hours or days until the update, aimed at people running their own servers:
- Set
session.upload_progress.enabled = 0in thephp.inior the FPM pool and restart all PHP processes. This blocks the known attack paths via session handling, but not all variants. Setting it viaini_set()or a.user.inihas no effect. - On PHP 8.5, also set
fatal_error_backtraces = 0. - Limit the allowed request size, for example with
post_max_size = 8M(or32Mif uploads are needed), and keepupload_max_filesizesmaller.
The UK cybersecurity agency NCSC recommends taking systems offline that cannot be updated promptly. For most websites on web hosting, the only sensible path is: wait for or demand the update from your host - and tackle the switch if you are on PHP 8.1 or older.
After the update: quickly check that everything works
A security update within the same PHP branch (for example from 8.3.35 to 8.3.36) does not change any features and should not cause problems. Still, a quick check is worthwhile:
- Click through the website, the contact form and - for shops - the checkout once.
- Check in WordPress under Tools → Site Health or in your hosting panel whether the new version is active.
- Watch for the signs of an attack I described in the first post - the update closes the vulnerability, but it does not remove a web shell that was uploaded before.
I can help
You do not know whether your host has already installed the update, or your website still runs on PHP 8.1 or older? I check your website and tell you what needs to be done. Switching to a new PHP version is different for every website - that is why I first look at which system, which extensions and which custom code are in use, and test the switch on a copy before the live site is changed.
- WordPress maintenance - ongoing care including updates and security
- WordPress emergency support & repair - fast help if your website is already affected
- WordPress programmer in Vienna - adapting plugins, theme and custom code so everything runs on new PHP versions
- PHP freelancer - upgrading and modernizing custom PHP applications
- Website takeover - care for Joomla, TYPO3, Shopware and other systems




