PHP2Shell is the nickname for two critical PHP flaws that were fixed on 21 October 2026. If your website runs on PHP, as every WordPress site does, the fix is a PHP update on your server rather than a plugin update.
This guide explains what PHP2Shell is in plain English, which versions fix it, how to check the version your site runs, and what to ask your host. It's an explainer, not a hacking guide, so there are no technical attack details here. Facts checked on 22 October 2026.
We only recommend what we'd use.
Last updated: 22 October 2026
What happened
On 21 October 2026, the PHP project released PHP 8.5.12, 8.4.27, 8.3.36 and 8.2.35. In its security advisory, the project says these versions "fix two critical vulnerabilities that can allow unauthenticated remote code execution."
The two flaws are tracked as CVE-2026-109618 and CVE-2026-109619. php.net says both are rated 9.2 on the CVSS v4.0 scale, which tops out at 10.
The release came a day early. According to the PHP Foundation, the project "moved the release from October 22nd, 14:00 UTC, to October 21st, 14:00 UTC" after the CVE IDs leaked.
What PHP2Shell is, in plain English
PHP is the programming language that runs on the server behind many websites, including WordPress. It isn't something your visitors install.
"Unauthenticated remote code execution" means someone on the internet, with no login, could get your server to run their own commands. That's about as serious as web flaws get, because whoever does it could take over the site.
The PHP Foundation sums up the two flaws in one line each:
- CVE-2026-109618: "RCE via OOM corruption (out-of-memory)". In plain terms, a memory problem when PHP runs out of memory.
- CVE-2026-109619: "RCE via stale global state". In plain terms, PHP keeps leftover data around when it shouldn't.
Canada's Cyber Centre describes both as "Use After Free vulnerabilities (CWE-416)". The name PHP2Shell comes from the security coverage, including BleepingComputer's report, not from the PHP project itself.
Who needs to act
php.net says the risk applies to "all PHP installations serving web requests, including PHP-FPM, Apache with mod_php, php-cgi, FrankenPHP and LiteSpeed." Those are the different ways a web server runs PHP. If your site is built on PHP, assume it's covered until your host tells you otherwise.
The project adds: "We consider the risk highest for mod_php". You don't need to know which one your host uses. It's a good question to ask them, though.
If you're on PHP 8.1 or older, there's a bigger problem. php.net says "PHP 8.1 and older no longer receive updates from the PHP project." The PHP security team did publish "minimal source-backports for PHP 7.4, PHP 8.0, and PHP 8.1", which php.net says are "to help people building from source or without access to an LTS vendor."
Am I patched? Versions at a glance
| Your PHP branch | Fixed in | What to do |
|---|---|---|
| 8.5 | 8.5.12 | Update to 8.5.12 or later |
| 8.4 | 8.4.27 | Update to 8.4.27 or later |
| 8.3 | 8.3.36 | Update to 8.3.36 or later |
| 8.2 | 8.2.35 | Update to 8.2.35. The 8.2 branch reaches end of life on 31 December 2026 |
| 8.1 or older | No new release (source-only backports for 7.4, 8.0 and 8.1) | Move to a supported branch, or ask your host or vendor about backported fixes |
How to check your PHP version
You don't need server access for this. Two easy places to look:
- WordPress: in your dashboard, go to Tools, then Site Health, then the Info tab. The Server section lists the PHP version. The WordPress Site Health guide shows where the screen lives.
- Your hosting panel: most panels have a PHP settings page. In cPanel it's usually called Select PHP Version or MultiPHP Manager. In Plesk, go to Websites & Domains and click PHP, and the current version also shows next to the PHP icon on your domain card.
Write down the full number, such as 8.3.36, not just 8.3. The last part is what tells you whether you have the fix.
Why the version number may not tell the whole story
A version number below the ones in the table doesn't always mean you're exposed. php.net says "Linux distributions and LTS vendors received the patches in advance, so check your vendor for updated packages." Some of them add fixes to older-looking builds, which is called backporting.
So if your panel shows a version just below the fixed one, don't panic, and don't assume you're safe either. Ask your host whether their build includes the fixes.
What to ask your host
On shared or managed hosting, you usually can't update PHP yourself. Your host does it. You can copy these questions into a support ticket:
- Which PHP version and build is my site running?
- Does it include the fixes for CVE-2026-109618 and CVE-2026-109619?
- If not, when will you update it, or move my site to a fixed version?
- Has PHP been restarted since the update, so the fixed version is the one actually running?
- Which way does my site run PHP (for example PHP-FPM, mod_php or LiteSpeed)?
If your panel lets you pick the PHP version yourself, choose a fixed one from the table. If you change branches, for example from 8.1 to 8.3, test your theme and plugins on a staging copy first, because older code can break on a newer PHP.
Is it being exploited? The sources disagree
This is the part that isn't settled yet, so here's what each source says:
- Canadian Centre for Cyber Security: its alert AL26-026 mentions reports that a proof of concept is available, "with no active exploitation being identified at this time."
- CERT-EU: its Security Advisory 2026-018 says "initial proofs of concept (PoCs) have begun to circulate".
- BleepingComputer: reports that Cloudflare CTO Dane Knecht confirmed the company "was already observing early attacks targeting the two vulnerabilities", before the patches were released.
We aren't taking a side on that. Whichever is right, every source gives the same advice: update. CERT-EU tells organisations to "patch affected assets immediately".
Temporary measures aren't a fix
php.net lists some temporary measures for servers that can't be updated straight away, but it's clear that "while only an update is a complete solution", those steps "do not make an installation safe." If your host mentions them, ask when the real update is coming. The settings themselves are in the php.net advisory, and your host should be the one applying them.
More on keeping your site safe
We covered another update-now release in our Chrome 155 security update explainer. If you build sites or apps for clients, our posts on when vibe coding is safe and building client MVPs with Bolt, Lovable and v0 cover the safety side of code you ship.
Quick questions
Do I need to update WordPress to fix PHP2Shell?
No. PHP2Shell is in PHP itself, not in WordPress, so the fix is a PHP update on your server. Keeping WordPress up to date is still a good idea.
Which PHP versions fix PHP2Shell?
PHP 8.5.12, 8.4.27, 8.3.36 and 8.2.35, all released on 21 October 2026.
I'm on PHP 8.1. What now?
The PHP project no longer updates 8.1. Move to a supported branch, or ask your host or vendor whether they provide a backported fix.
Featured photo: Fibre connectors in a server rack patch panel. Photo: Brett Sayles / Pexels
Sources: php.net: security advisory and releases, 21 Oct 2026; The PHP Foundation, 21 Oct 2026; CERT-EU Security Advisory 2026-018; Canadian Centre for Cyber Security, AL26-026; WordPress.org: Site Health screen; Plesk PHP settings; cPanel MultiPHP Manager; BleepingComputer, 21 Oct 2026.
