Short answer: PHP2Shell is the nickname for two critical PHP vulnerabilities — CVE-2026-109618 and CVE-2026-109619 — disclosed and patched on October 21, 2026. Both are pre-authentication remote code execution (RCE) flaws rated CVSS 9.2, meaning an attacker can run code on your server with a single crafted web request and no login. If your server runs PHP below 8.2.35, 8.3.36, 8.4.27 or 8.5.12, update now. You can check your site's exposed PHP version free in seconds.
PHP runs a huge share of the web, so when a flaw lands in PHP's core — not in a plugin or a framework, but in the engine itself — it touches almost everything. PHP2Shell is exactly that kind of flaw, and it is already being exploited. This guide explains what it is in plain language, shows you how to tell if you're exposed, and walks through the fix. There are no exploit instructions here — just what a site owner actually needs to stay safe.
What is PHP2Shell?
PHP2Shell is the industry name for two critical remote code execution vulnerabilities in PHP core, tracked as CVE-2026-109618 and CVE-2026-109619. Both were disclosed on October 20–21, 2026 and carry a CVSS v4.0 score of 9.2 — the "critical" band. Because they sit in the PHP engine itself, they affect anything that uses PHP to serve web requests, regardless of the CMS or framework on top.
The two flaws are closely related but distinct. In short: CVE-2026-109618 is an RCE triggered through an out-of-memory condition that leaves PHP's internal request data half-built, which the cleanup routine then trusts. CVE-2026-109619 is an RCE caused by stale internal state from one request being reused by a later request on the same worker. You don't need to understand the internals to act on them — the takeaway is the same for both: an unauthenticated attacker can reach a PHP endpoint over HTTP and run their own code.
Security teams including watchTowr, JFrog, Datadog and Bitdefender independently reproduced the flaws, and the PHP Foundation shipped fixed releases on October 21, 2026.
Which PHP versions are affected?
Every PHP release below its branch's patched version is affected. The October 21, 2026 security update covers all four supported branches. Here's the full breakdown:
| PHP Branch | Affected Versions | Patched Version | Status |
|---|---|---|---|
| PHP 8.5 | Below 8.5.12 | 8.5.12 | Patched |
| PHP 8.4 | Below 8.4.27 | 8.4.27 | Patched |
| PHP 8.3 | Below 8.3.36 | 8.3.36 | Patched |
| PHP 8.2 | Below 8.2.35 | 8.2.35 | Patched |
| PHP 8.1 & older | All versions | None (End of Life) | Unsupported |
If you're on PHP 8.1 or older, there is no patch — those branches reached End of Life and no longer receive security fixes at all. The only safe path is to migrate to a supported branch (8.2, 8.3 or 8.4) that has the patch.
Server setups at higher risk include mod_php (rated highest risk by the PHP team), PHP-FPM, php-cgi, FrankenPHP and LiteSpeed. No login is required for an attack — the attacker only has to reach a PHP endpoint over HTTP.
How do I check if my site is vulnerable to PHP2Shell?
The fastest check is to look at what PHP version your server is running and compare it to the patched versions above. There are three easy ways to find your version:
- Run our free checker. Enter your URL in the Website Security Checker — it reads your server's public
X-Powered-Byheader and flags your PHP version against the PHP2Shell advisory automatically. Read-only, no signup, nothing is attacked. - Check your hosting panel. cPanel, Cloudways, Hostinger and most managed hosts show your active PHP version under the PHP or "Select PHP Version" settings.
- Check WordPress Site Health. In WordPress, go to
Tools → Site Health → Info → Serverto see the exact PHP version running.
One important nuance: if your server hides its PHP version (a good security practice), an online header check can't read it — that's a win, not a failure. In that case, confirm your version from your hosting panel instead.
Not sure what PHP version you're on?
Scan your site free — we read your exposed PHP version and security headers and flag PHP2Shell exposure instantly.
How do I fix PHP2Shell?
Update PHP to a patched release: 8.2.35, 8.3.36, 8.4.27 or 8.5.12 — or newer. That single step closes both CVE-2026-109618 and CVE-2026-109619. How you do it depends on your setup:
- Managed WordPress / shared hosting: open your hosting panel, find "Select PHP Version" (or ask support), and switch to the latest patched release on your branch. Most hosts let you do this in a couple of clicks.
- VPS / self-managed (Ubuntu / Debian): run your package manager update (for example
apt update && apt upgradefor thephppackages), then restart PHP-FPM or Apache so the new binary loads. - Cloud / containers: rebuild your image on a patched PHP base image and redeploy. Pin the patched version so a future deploy doesn't roll you back.
After updating, re-check your version to confirm the patch actually took effect — some hosts cache the old version until a service restart. Then harden the rest: hide your PHP version, add your security headers, and remove the WordPress readme.html that leaks your core version.
Why does PHP2Shell matter so much?
Three things make this advisory serious. First, the flaws are pre-authentication — an attacker needs no account, no password, nothing but the ability to send a web request. Second, they are in PHP core, so your framework, plugins and firewall rules offer little protection; the malicious request is processed before your application code even runs. Third, exploitation is already happening in the wild — Amazon's threat-intelligence honeypots recorded exploitation attempts on October 17, four days before public disclosure.
A flaw in PHP core reaches everything that runs PHP — no login, no plugin, no framework in the way.
For agencies and site owners who manage multiple sites, the practical move is to inventory every site's PHP version now and update the laggards first. One unpatched site is one crafted request away from being compromised.

