In this article
PHP2Shell is the nickname for two critical flaws in PHP, the software that runs most WordPress sites. PHP released fixes on 21 October 2026 (8.5.12, 8.4.27, 8.3.36 and 8.2.35). The fix has to be installed on the server by whoever manages your hosting, so updating WordPress or plugins alone does not close it.
On 21 October 2026 the PHP project published fixes for two serious security flaws, tracked as CVE-2026-109618 and CVE-2026-109619 and nicknamed PHP2Shell. If your website runs on WordPress, WooCommerce or almost any other CMS, it runs on PHP, so this affects you even though your site’s own code is not at fault. Here is what it means in plain terms, and what to do about it this week.
What is PHP2Shell?
PHP is the engine that builds each page of a WordPress site every time a visitor loads it. PHP2Shell is two bugs in that engine, not in WordPress, your theme or your plugins. Both are about how PHP handles memory while it processes a web request. When PHP runs out of memory, or hits a serious error at the wrong moment, leftover internal data can be used in ways it was never meant to be. In the worst case, an attacker can use that to run their own code on the server.
The PHP project rated both flaws 9.2 out of 10 (CVSS v4.0). It says an attacker does not need to log in, and that no configuration change fully protects you. The only complete answer is to install the fixed version.
Why should a business owner care?
Code running on your server is code running next to your customer data, your orders and your admin area. A compromised server can mean defaced pages, spam pages that damage your search visibility, malware served to visitors, stolen form entries, or a site that is taken offline while you clean up. None of that is certain for any one site, but it is the kind of outcome this class of flaw makes possible.
The timing matters too. The flaw was reported as being exploited within days: Amazon’s honeypot logged an attempt on 17 October, and security firm watchTowr saw attacks from 21 October. Time between a fix being published and installed is the window attackers use.
Is my website affected?
Almost certainly it runs on PHP, so the real question is which version, and whether your host has applied the fix. The fixed versions are:
- PHP 8.5.12
- PHP 8.4.27
- PHP 8.3.36
- PHP 8.2.35
PHP 8.1 and older no longer receive official updates. Some Linux distributions and long-term-support vendors backport the fix, so ask your host rather than assuming. PHP 8.2 itself reaches end of life on 31 December 2026, so this is also a good moment to plan a move to 8.3 or newer.
How to check your PHP version
In WordPress, go to Tools, then Site Health, then the Info tab, and open the Server section. It shows the PHP version your site runs on. Be aware that some hosts patch without changing the version number, so if yours is older than the list above, ask them whether the fix has been backported and whether PHP was restarted afterwards.
What to do this week
- Ask your host in writing which PHP version your site uses, whether it includes the fix for CVE-2026-109618 and CVE-2026-109619, and whether PHP workers were restarted.
- If you are on PHP 8.1 or older, ask for a move to a supported version, and test your site on it first, especially if you run a WooCommerce store.
- Do not rely on WordPress updates for this. Updating WordPress, themes and plugins is still essential, but it does not install a new PHP version. Cloudflare says plainly that the PHP runtime itself must be updated, by you or your host.
- Check your backups. Confirm a recent backup exists and that you know how to restore it.
- Watch for warning signs: unfamiliar admin users, new files in your uploads folder, pages you did not create, unexpected redirects, or sudden slowness.
- Treat a firewall as an extra layer, not the fix. Cloudflare has added protections for these flaws, and they help, but Cloudflare itself says they do not replace patching.
What this teaches about website maintenance
Your website is a stack of layers: the server and PHP, WordPress itself, the theme and plugins, and your content. Each layer gets its own security updates, from different people, on different days. PHP2Shell is a reminder that a site can be fully up to date in WordPress and still depend on a fix that sits one layer down.
That is why ongoing care is mostly boring and consistent work: tracking security advisories, applying updates in a sensible order, testing before and after, keeping restorable backups, and watching for signs that something has changed. The value is not in any one patch. It is in shortening the time between a fix being published and your site being protected, and in having a recovery plan if something goes wrong. No provider can promise a site will never be attacked, and we will not claim that here.
Where a care plan fits
Cairo Cloud care plans cover WordPress, WooCommerce, plugin and theme updates, scheduled backups, security monitoring and monthly support hours. Plans start at 3,500 EGP a month, and the higher plans add daily backups, a staging site and emergency support. A care plan looks after the website layer. The server layer, including PHP, depends on where your site is hosted, so ask any provider, us included, who is responsible for PHP updates on your hosting and how quickly they are applied.
Not sure what your site is running on?
Send us your website address and ask us to look at your setup, then compare our care plans to see which gaps they would cover.
Frequently asked questions
What is PHP2Shell?
PHP2Shell is the nickname for two critical remote code execution flaws in PHP, CVE-2026-109618 and CVE-2026-109619, fixed by the PHP project on 21 October 2026.
Is WordPress vulnerable to PHP2Shell?
The flaws are in PHP, not in WordPress code. WordPress sites are affected because they run on PHP, and updating WordPress does not install the PHP fix.
Which PHP versions fix it?
PHP 8.5.12, 8.4.27, 8.3.36 and 8.2.35. PHP 8.1 and older receive no official update, though some vendors backport the fix.
Is updating my plugins enough?
No. Plugin and WordPress updates protect other layers. The PHP runtime must be updated by you or your hosting provider.
Has PHP2Shell been exploited?
Security researchers report exploitation attempts starting before and after the public release. The situation is changing quickly, so treat these flaws as actively targeted and patch now.
What should I ask my hosting provider?
Which PHP version your site runs, whether it includes the fix, whether all PHP workers were restarted, and what the plan is if you are on PHP 8.1 or older.
Protect your site before the next advisory
Keep your website patched, backed up and watched.
Security advisories will keep coming. A care plan gives you one team that applies updates, keeps restorable backups and monitors your site, so a new advisory is a routine task rather than an emergency. Tell us about your site and we will help you choose the right level.
See care plansTalk to us on WhatsApp
Message us your website address. No technical details needed.
Last updated: 25 October 2026. Details of this security issue were still developing at that date, so we will update this article as the PHP project and hosting providers publish more.
Sources:
Found this useful? Share it.




