What is PHP2Shell (CVE-2026-109618 and CVE-2026-109619)?
PHP2Shell is the name for two critical PHP flaws fixed on 21 October 2026. What they are, which versions are fixed, and what a small business should do.
By HackSpot team (Amethyst Apps) · · Updated · 2 min read

Short answer: PHP2Shell is the name for two critical security flaws in PHP, CVE-2026-109618 and CVE-2026-109619, fixed by the PHP team on 21 October 2026. They can let an attacker run commands on a web server without logging in. If your website runs PHP, ask your host to confirm it's on PHP 8.2.35, 8.3.36, 8.4.27, 8.5.12 or later, or has been patched another way. Check your site free.
What the flaws do
PHP is the software behind a large share of websites, including most WordPress sites. The PHP project rates both flaws 9.2 out of 10. In plain terms, a specially crafted request can trick PHP into running an attacker's code before your website's own code even starts.
Who needs to act
- Anyone whose website, shop or booking system runs on PHP. Your host or developer updates PHP, not you.
- Anyone who relies on online suppliers. If a tool your business uses runs PHP and is slow to update, it may go offline or be attacked. Watch for scam emails asking you to "log in again".
What to do today
- Run a free HackSpot check to see whether your site shows signs of PHP and which version.
- Send your host the message from our post PHP2Shell: what small businesses need to do today.
- If you're on PHP 8.1 or older, plan an upgrade to a supported version. The PHP project published basic fixes for 7.4, 8.0 and 8.1, but those versions no longer get regular updates.
Questions people ask
Is my website definitely vulnerable if it shows an older PHP version?
No. Many hosts add fixes without changing the version number your site shows. That's why HackSpot says "looks unpatched, ask your host" rather than "vulnerable".
Does updating WordPress fix PHP2Shell?
No. WordPress runs on top of PHP. Your host has to update or patch PHP itself.
Has anyone been attacked using these flaws?
The PHP project announced the release a day early, on 20 October 2026, and the security firm watchTowr reports attempts to exploit both flaws. The UK's NCSC asked organisations to act immediately.