Get Consultation

No projection as up preference reasonably delightful celebrated. Preserved and abilities assurance tolerably breakfast use saw.
Edit Template
Critical Advisory · CVSS 9.2

PHP2Shell: CVE-2026-109618 & 109619 Explained

Two critical pre-auth remote code execution flaws in PHP core, patched October 2026. Here's exactly which versions are affected, how to check your own site, and how to fix it.

Severity
Critical (9.2)
Type
Pre-auth RCE
Patched
Oct 21, 2026
Exploited in wild
Yes

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 BranchAffected VersionsPatched VersionStatus
PHP 8.5Below 8.5.128.5.12Patched
PHP 8.4Below 8.4.278.4.27Patched
PHP 8.3Below 8.3.368.3.36Patched
PHP 8.2Below 8.2.358.2.35Patched
PHP 8.1 & olderAll versionsNone (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-By header 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 → Server to 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.

Check my website →

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 upgrade for the php packages), 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.

Can't patch immediately? If a production update has to wait, reduce your exposure in the meantime: put a WAF or your CDN (such as Cloudflare) in front of the site, tighten request limits at the front end, and restrict access to any non-essential PHP endpoints. These are stop-gaps — they lower risk but do not remove the vulnerability. Updating PHP is the only real fix.

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.

Frequently asked questions

They are two critical remote code execution vulnerabilities in PHP core, together nicknamed "PHP2Shell". CVE-2026-109618 is RCE via an out-of-memory corruption, and CVE-2026-109619 is RCE via stale global state. Both carry a CVSS 9.2 rating and were patched on October 21, 2026.
Any version below 8.2.35, 8.3.36, 8.4.27 or 8.5.12. PHP 8.1 and older branches are End of Life and receive no patch at all — they should be migrated to a supported, patched branch. You can check your version with our free Website Security Checker.
PHP 8.2 is vulnerable if it is below version 8.2.35. Updating to 8.2.35 or newer patches both CVE-2026-109618 and CVE-2026-109619. If you are already on 8.2.35 or higher, you are protected on this advisory.
Find your running PHP version and compare it to the patched releases. The quickest way is to run your URL through the free Website Security Checker, which reads your exposed PHP version and flags it against the PHP2Shell advisory. You can also check your hosting panel or WordPress Site Health screen.
Update PHP to a patched release — 8.2.35, 8.3.36, 8.4.27 or 8.5.12 — and restart PHP-FPM or Apache so the new binary loads. On managed hosting, switch the PHP version in your control panel or ask support. If you cannot patch immediately, place a WAF in front of the site as a temporary measure, but updating is the only real fix.
Yes — but not through WordPress itself. The flaw is in PHP core, so any WordPress site running an unpatched PHP version is exposed regardless of its theme or plugins. Updating the server's PHP version fixes it; no WordPress change is required.
UM
Co-Founder, H&U Solutions · Cyber Security

Full-stack developer and security-focused engineer at H&U Solutions. Holds the Google Cybersecurity Professional Certificate and a CCNA, and is completing a BS in Cyber Security. Builds free security and SEO tools and hardens WordPress and server infrastructure for clients across web and search.

Connect on LinkedIn

Need your server patched & hardened?

H&U Solutions updates unpatched PHP, deploys security headers, and hardens WordPress and server infrastructure. Get a free technical security audit and a clear plan within 24 hours.

Get a free security audit →