PHP2Shell: The Critical PHP Flaw of 2026 — Is Your Website Patched?
Quick answer: On 21 October 2026, PHP released emergency fixes for two critical flaws — nicknamed PHP2Shell (CVE-2026-109618 and CVE-2026-109619) — that can let an attacker take control of a web server without logging in. They affect almost every website running PHP, including WordPress and WooCommerce sites, and attacks are already being seen. To be safe, your server must run PHP 8.5.12, 8.4.27, 8.3.36 or 8.2.35 (or newer, or your host’s patched build), and PHP must have been restarted after updating. If you’re not sure, ask your hosting provider today.
Information checked: 3 November 2026. Security situations change quickly — follow your hosting provider’s latest advice.
Most website owners never think about PHP. You log in to WordPress, update a page, and move on. But in late October, security researchers raised the alarm about two flaws in PHP itself — not in a plugin or theme, but in the engine underneath. One security firm compared it to Log4Shell, one of the most serious internet-wide bugs of the past decade. Here’s what it means for your website, in plain language, and exactly what to do.
What Is PHP, and Why Should You Care?
PHP is the programming language that runs on your web server and builds your pages every time someone visits. WordPress, WooCommerce, Joomla and many other systems are built on it — PHP is used by about 69% of websites whose server-side language is known, according to W3Techs figures cited by Tenable. If your website runs on WordPress, it runs on PHP.
What Happened: PHP2Shell in Plain English
Researchers at Wiz found two bugs in how PHP handles incoming web requests. In the wrong hands, they let an attacker send a specially crafted request and run their own code on your server — no password or login needed. The PHP security team rated both as Critical.
| Date (2026) | What happened |
|---|---|
| 17 October | First exploitation attempt spotted by Amazon’s security honeypots — before the public announcement |
| 21 October | PHP releases emergency fixes: 8.5.12, 8.4.27, 8.3.36 and 8.2.35 |
| 24 October | Researchers report successful attacks on test servers running unpatched PHP |
| 26 October | US cybersecurity agency CISA adds PHP2Shell to its list of actively exploited vulnerabilities |
| 28 October | Security firms report broad exploitation attempts across the internet |
Timeline from Tenable’s PHP2Shell FAQ and Patchstack’s security alert.
Once inside, attackers typically install a hidden “web shell” — a backdoor that lets them come back any time to steal data, inject spam or scam pages, redirect visitors, or use your server to attack others.
Is Your Website Affected?
If your website runs on PHP and the server hasn’t been updated since 21 October, assume yes. Here’s what to look for:
| Your PHP version | Status | What to do |
|---|---|---|
| 8.5 | Supported | Update to 8.5.12 or newer |
| 8.4 | Supported | Update to 8.4.27 or newer |
| 8.3 | Security fixes only | Update to 8.3.36 or newer |
| 8.2 | Security fixes until 31 Dec 2026 | Update to 8.2.35 now, and plan a move to 8.3+ |
| 8.1 or older | End of life — no official fix | Upgrade to PHP 8.3 or newer as soon as possible |
Support dates from PHP.net. WordPress itself recommends PHP 8.3 or greater.
How to Check Your PHP Version
- In WordPress: go to Tools → Site Health → Info → Server. You’ll see the PHP version listed.
- In your hosting control panel: look for “Select PHP Version” or “MultiPHP Manager” in cPanel (not sure which login is which? See cPanel login vs WordPress login).
- Ask your host to confirm. On shared hosting, the version shown in the panel isn’t always the exact build serving your site, as Krebs on Security noted. Ask directly whether the server is patched.
What to Do Right Now
- Message your hosting provider today. Ask: “Is my website running a PHP build patched for CVE-2026-109618 and CVE-2026-109619, and have the PHP processes been restarted?” Restarting matters — old processes keep the vulnerable code in memory.
- Back up first. Before any PHP change, make sure you have a fresh, off-site backup.
- Move off old PHP. If you’re on 8.1 or older, this is the moment to upgrade. Test the site afterwards — very old themes or plugins may need updating too.
- Update WordPress, themes and plugins. Patching PHP doesn’t fix other weak spots — here’s why WordPress sites get hacked.
- Don’t install unofficial “fix” plugins or copy-paste code snippets from forums. The only real fix is a patched PHP version.
Warning Signs Your Site May Already Be Compromised
- Sudden error pages (“500 Internal Server Error”) or a much slower site.
- New admin users you didn’t create.
- Unfamiliar files on your server, or pages you didn’t publish.
- Visitors redirected to other websites, or Google warning that your site “may be hacked.”
If you see any of these, change all passwords (hosting, WordPress, database and email), restore a clean backup taken before 17 October if possible, and get professional help to check for hidden backdoors.
The Bigger Lesson: Websites Need Looking After
PHP2Shell is a reminder that a website isn’t “done” at launch. The server software underneath needs updates just like your phone does. Sites that hadn’t been touched in years — running PHP 7 or older — are the ones with no official fix now. Keeping plugins lean and updating regularly makes events like this far less scary.
Where ELF Digital Studio Comes In
For ELF One and maintenance clients, keeping PHP, WordPress and plugins up to date is part of the job — we work with the hosting provider so you don’t have to. If someone else built your site, we can do a quick check of your PHP version and update status.
Not sure whether your website is patched? Talk to us — we’ll check it and tell you honestly what needs doing.
Frequently Asked Questions
Is WordPress itself vulnerable?
The flaws are in PHP, not in WordPress code. WordPress sites are affected because they run on PHP — so the fix is updating PHP on the server.
My website is on Shopify or Wix. Do I need to do anything?
Hosted platforms like Shopify and Wix manage their own servers, so there is nothing for you to update there. But check any separate WordPress site you run, such as a blog or landing page.
Will updating PHP break my website?
Usually not for supported versions. Jumping from a very old version (like PHP 7.x) can break outdated themes or plugins, so back up first and test the site after the update.
My site runs PHP 7.4. Is there a patch?
No official one. PHP 7.4 to 8.1 only received minimal source backports, and PHP 5.4 to 7.3 have no fix at all. Upgrade to PHP 8.3 or newer.
Sources: Patchstack — PHP major vulnerability alert (21 Oct 2026); Tenable — PHP2Shell FAQ (updated 28 Oct 2026); Krebs on Security (Oct 2026); PHP.net — Supported versions; WordPress.org — Requirements.



