PHP2Shell: Why Patching Your App Is Not Enough When the Runtime Itself Breaks
When teams talk about web application security, they usually mean plugins, forms and the code they wrote themselves. PHP2Shell is a clear reminder that the runtime underneath all of it can be the way in.
What happened
On October 21, 2026, the PHP security team shipped emergency releases 8.5.12, 8.4.27, 8.3.36 and 8.2.35. They fix two flaws, CVE-2026-109618 and CVE-2026-109619, both rated 9.2 under CVSS 4.0. The first involves out-of-memory handling that can interrupt PHP while internal request data is only partially initialized, so cleanup later treats invalid data as valid. The second involves request-owned state that survives after its memory has been freed and is reused by the next request in the same worker. Both can lead to unauthenticated remote code execution.
PHP rates the risk highest for Apache with mod_php, where a demonstrated exploit fires before any application code runs. PHP-FPM, php-cgi, FrankenPHP and LiteSpeed are also affected. Within hours of the release, Cloudflare and watchTowr reported exploitation attempts. PHP 8.1 and older get no new official releases, only minimal source backports.
Five practical steps
Build a complete inventory of servers, containers and hosting accounts that run PHP.
Upgrade to a fixed release and restart every PHP worker; rebuild container images too.
On distribution packages, check the changelog for the CVE ID rather than trusting the version number alone.
Until you can patch, set session.upload_progress.enabled=0 and enforce request-size limits at the web server or proxy.
Watch logs for oversized PHPSESSID cookies, memory-limit errors and bursts of HTTP 500 responses.
The takeaway
Updating WordPress, Laravel or any other framework does not update the PHP runtime beneath it. An organization without an accurate inventory of its PHP versions spends patch day hunting for servers instead of patching them. Temporary settings and WAF rules only buy time; the PHP team has been explicit that updating is the only complete fix.
The full write-up, with interim settings and indicators of attack, is here: https://symantecland.com/php2shell-php-rce-cve-2026-109618-109619/?utm\_source=hashnode&utm\_medium=article&utm\_campaign=sx\_syndication
— Kazem Mortazavi, independent network-security consultant
About the author
- Founder of Security Land and CEO of PRS, with 25+ years in ICT. I write practical, no-hype analysis of the latest vulnerabilities, zero-days and incidents — and what security and infrastructure teams should actually do next. Focus areas: network security, DLP, encryption/HSM, identity and threat intelligence. More at symantecland.com
Comments
Join the discussionNo comments yet. Be the first to comment.

