The PHP2Shell Scare: A 15-Minute Security Check for Business WordPress Sites
Two critical PHP flaws patched on 21 October 2026 can let attackers take over WordPress sites without a login. How to check your site and what to do today.

Short answer: If your website runs on WordPress, it runs on PHP, and two critical PHP flaws patched on 21 October 2026 can let an attacker run code on your server without logging in. Check your PHP version today. You are covered against these two flaws only on PHP 8.2.35, 8.3.36, 8.4.27, 8.5.12 or newer. If your site is on PHP 8.1 or older, there is no official fix: you need to upgrade.
Searches for “php” and “php vulnerability” in India tripled over the past week on Google Trends. Most of the people searching are not developers. They are business owners who heard their website might be at risk and do not know where to start. This guide is for them: what happened, why an up-to-date WordPress site can still be exposed, and a check you can finish before lunch.
What happened, in plain terms
Researchers at Wiz, working with Calif and OpenAI, found two memory-safety bugs in PHP itself, the language that runs WordPress, Drupal, Joomla and most small-business websites. They nicknamed the pair PHP2Shell. The official identifiers are CVE-2026-109618 and CVE-2026-109619, both rated 9.2 out of 10 for severity.
| Date | What happened |
|---|---|
| 19–21 August 2026 | Wiz finds the flaws using AI-assisted research and confirms it can take over WordPress and Drupal sites without a login |
| 24 August 2026 | Wiz privately reports the flaws to the PHP security team |
| 20 October 2026 | PHP announces an emergency security release for the next day |
| 21 October 2026, early morning UTC | Technical details leak; hosting partners report attacks to Patchstack before any patch exists |
| 21 October 2026, 13:52 UTC | PHP ships fixed versions 8.2.35, 8.3.36, 8.4.27 and 8.5.12 |

Why an updated WordPress site can still be exposed
This is the part most site owners miss. Updating WordPress, your theme and your plugins does nothing here. The bug sits one layer below, in the PHP engine your host runs. A site with perfectly clean code can still be taken over if the PHP underneath it is unpatched.
- No login needed. Wiz showed attackers could run code on WordPress, Drupal and Joomla sites without an account.
- Secrets can leak even without a takeover. One flaw can expose memory from other visitors’ requests, including passwords, API keys and session tokens.
- Old PHP is the norm, not the exception. Internet scans by VirusTotal and Modat found most servers that reveal their PHP version run a branch that no longer gets security fixes. PHP 7.4, unsupported since 2022, is still one of the most common.
- Logs may show little. The attack happens below WordPress, so security plugins and application logs can miss it.
The 15-minute check
Work through these in order. The first two take under five minutes and tell you whether you need the rest.

- Find your PHP version. In the WordPress dashboard, go to Tools → Site Health → Info → Server. The PHP version is listed there.
- Compare it with the safe versions. You are covered if you see 8.2.35, 8.3.36, 8.4.27, 8.5.12 or anything newer in the same branch. Anything on 8.1, 8.0 or 7.x has no official fix.
- Update, or ask your host to. On shared or managed hosting, open your control panel’s PHP settings, or message support and ask: “Is my PHP patched for CVE-2026-109618 and CVE-2026-109619?” On a VPS or cloud server, patching is your job. If you are on 8.1 or older, move to 8.3 or 8.4, and test on a staging copy first: old plugins sometimes break on newer PHP.
- Put a firewall in front. Cloudflare deployed firewall rules against the known attack patterns. A web application firewall buys time, but make sure your server cannot be reached directly around it, and treat it as a stopgap, not a substitute for patching.
- Look for signs of a break-in since 20 October. Check for admin users you did not create, .php files inside wp-content/uploads, unfamiliar redirects, and new pages in Google Search Console. Search Console’s Security issues report will also flag hacked content Google has found.
- Rotate secrets if you were exposed. If your site ran an unpatched version after 20 October, change WordPress admin passwords, your database password and any API keys stored on the server: payment gateway, SMTP, CRM. Regenerating the WordPress security keys in wp-config.php logs everyone out and kills stolen sessions.
What a hacked site costs a marketing team
A breach is not only an IT problem. Hacked sites are often used to inject spam pages and redirects, which can drag down rankings and trigger browser warnings that stop visitors cold. Google Ads also disapproves ads that point to compromised sites, so paid campaigns can stop overnight. And every lead form on the site becomes untrustworthy until the clean-up is done.
Recovery usually takes longer than prevention. Search rankings lost to injected spam can take weeks to return even after the site is clean, which is why we treat server patching as part of an SEO audit, not a separate chore. We saw the same pattern after Google’s August spam update: sites carrying hacked or spammy pages paid for it in search.
The short version
- PHP2Shell is a flaw in PHP itself, so updating WordPress plugins does not fix it.
- Safe versions: 8.2.35, 8.3.36, 8.4.27, 8.5.12 or newer. PHP 8.1 and older need an upgrade.
- Check Tools → Site Health → Info → Server today, then confirm with your host.
- If you were unpatched after 20 October, look for signs of a break-in and rotate passwords and keys.
If your site needs a PHP upgrade and you are worried about what will break, our website team can test it on a staging copy first. Book a call and we will check your version for free.
Frequently asked questions
What is PHP2Shell?
PHP2Shell is the nickname for two critical PHP vulnerabilities, CVE-2026-109618 and CVE-2026-109619, patched on 21 October 2026. They can let an attacker run code on a server running PHP without logging in, and can leak data such as passwords and API keys.
Does updating WordPress fix PHP2Shell?
No. The flaws are in PHP, the software your host runs underneath WordPress. You need a patched PHP version: 8.2.35, 8.3.36, 8.4.27, 8.5.12 or newer.
How do I check my PHP version in WordPress?
Go to Tools → Site Health → Info and open the Server section. The PHP version is shown there. Your hosting control panel shows it too.
Is PHP 7.4 or 8.1 safe?
No. These branches no longer receive official security fixes, so the 21 October patches do not cover them. Upgrade to a supported branch such as 8.3 or 8.4, or get a verified backported fix from your host.
My host manages my server. Do I need to do anything?
Confirm it rather than assume it. Ask your host whether your PHP version is patched for CVE-2026-109618 and CVE-2026-109619, and check the version in Site Health yourself.
Sources and method
Recorded Future Insikt Group: PHP2Shell Exploitation: Two Critical PHP Flaws Explained (21 October 2026). BleepingComputer: PHP warns admins of two critical flaws (20 October 2026). PHP project: 2026 news archive. PHP Foundation: today’s PHP security release. Search interest from Google Trends, India, Technology category, past 7 days, checked 28 October 2026.