PHP2Shell is the name given to two chained critical vulnerabilities in the core PHP engine—CVE-2026-109618 and CVE-2026-109619—disclosed on October 21, 2026 (CVSS 9.2). They allow unauthenticated remote code execution (RCE) through memory corruption and stale worker state; patching requires upgrading PHP to 8.2.35, 8.3.36, 8.4.27, or 8.5.12+.
What Is PHP2Shell and Why Is Everyone Talking About It?
PHP2Shell refers to a critical pair of memory-safety flaws in the core PHP runtime disclosed on October 21, 2026: CVE-2026-109618 and CVE-2026-109619.
Unlike typical website breaches caused by faulty themes or plugins, the flaw sits inside the PHP engine itself. Even well-written PHP applications remain vulnerable until the underlying server interpreter is patched.
How the Two Vulnerabilities Chain Together
Rated 9.2 (Critical) on CVSS v4.0, PHP2Shell abuses two memory-handling bugs inside persistent PHP workers:
- CVE-2026-109618 (Request Cleanup Corruption): Triggers heap corruption during multipart request or out-of-memory cleanup.
- CVE-2026-109619 (Stale Worker State / Use-After-Free): Causes subsequent requests inside persistent SAPIs like
PHP-FPMor Apachemod_phpto reuse corrupted global state. - Unauthenticated RCE: Combined, attackers can execute arbitrary server commands or read process memory without logging in.
Affected & Patched PHP Versions
Unpatched runtimes from PHP 5.4 through PHP 8.5 are affected. Update your server PHP binaries immediately to one of the patched releases below and restart the worker service:
| PHP Branch | Minimum Safe Version | Status |
|---|---|---|
| PHP 8.5 | 8.5.12 or higher | Official Patch Released |
| PHP 8.4 | 8.4.27 or higher | Official Patch Released |
| PHP 8.3 | 8.3.36 or higher | Official Patch Released |
| PHP 8.2 | 8.2.35 or higher | Official Patch Released |
| PHP 8.1 and older | EOL (End of Life) | No mainline patch; vendor backport or runtime upgrade required |
How to Check and Protect Your Server
- Verify Active Versions: Run
php -vand check your web server's activephp-fpmhandler version rather than relying solely on CLI output. - Patch and Restart Workers: Apply OS or container updates and restart
php-fpmor Apache so old worker memory is cleared. - Use Static HTML Where Possible: Corporate and content websites served as pure static HTML completely eliminate server-side PHP runtime attack surfaces.
Need help auditing your PHP stack or moving a business site to hardened static HTML? Contact the OnDiso engineering team.
Frequently Asked Questions
Is PHP2Shell caused by a WordPress plugin?
No. The flaw lives inside the core PHP engine itself, not in WordPress plugins or custom PHP scripts. Updating PHP on the server is mandatory.
Are static HTML websites affected by PHP2Shell?
No. Websites served purely as static HTML files without server-side PHP execution are unaffected by PHP2Shell.
What should I do if I am still running PHP 8.1 or 7.4?
Because PHP 8.1 and older have reached End-of-Life, apply your Linux vendor's backported security package if available or upgrade to PHP 8.2.35+, 8.3.36+, or 8.4.27+.
Let's plan your project together
Corporate web engineering, e-commerce, custom SaaS, business email plans, or technical SEO — tell us what you are building.



