On 20 October the PHP security team announced that an emergency release was on its way, named a time for it, and asked everyone to get ready before anyone had even seen a patch, which is an unusual thing for a project to do. The technical details leaked anyway, so by the time fixes for two critical remote code execution bugs shipped on 21 October, Cloudflare had already spotted attack traffic and rolled out firewall rules for its customers, while one security firm was telling people to expect mass attacks within fifteen minutes of the release.

The bugs have been nicknamed PHP2Shell, and for the people who have spent years telling you that PHP is a liability they feel like a gift, although some of that celebration is deserved and some of it is a stretch. This post tries to separate the two, puts PHP next to Node, Java and the rest of the modern stack while it does so, and ends up at the question sitting underneath all the noise, which is whether you should still reach for PHP when you start something new.

What PHP2Shell actually is

PHP2Shell is the nickname for CVE-2026-109618 and CVE-2026-109619, two flaws that let an unauthenticated attacker run code on a PHP web server, and they were found by researchers from Wiz, OpenAI and Calif. The PHP team rates each of them 9.2 on the CVSS v4.0 scale, while watchTowr went as far as a full 10.0 (Wikipedia, BleepingComputer).

Both bugs grow from the same root. Whenever a request ends abnormally, for example because it blows through memory_limit, PHP bails out through an internal mechanism, and if that happens while some request data is only half built, the cleanup code that runs afterwards ends up trusting values that were never properly set up. In CVE-2026-109618 that shows up as memory corruption after an out of memory event, whereas CVE-2026-109619 comes from stale global state that opens the way to a heap use after free, memory disclosure and code execution with the privileges of the web worker (BleepingComputer, Hackread).

How the bug works@2x.png

What makes people nervous is how far it reaches, because anything that serves web requests is affected, from the FastCGI process manager (FPM) and Apache with mod_php to CGI mode, FrankenPHP and LiteSpeed, and the researchers believe the problem goes back to PHP 5.4 even though not every release has been tested. The PHP team itself treats mod_php as the riskiest setup, since a demonstrated exploit fires before any application code gets a chance to run.

Fixes arrived in PHP 8.5.12, 8.4.27, 8.3.36 and 8.2.35, and as far as the advisories go nothing has been published for PHP 5 or 7 (watchTowr).

That covers what the bugs do and how far they reach, and the next thing to untangle is why an incident like this feels so much heavier than the usual PHP vulnerability headline.

Why this one stings more than the usual PHP bug

Where the bugs sit@2x (1).png

Many of the PHP incidents people remember trace back to application code and third party extensions rather than the engine, and Patchstack's 2026 report counted 11,334 new WordPress vulnerabilities in 2025, with 91 percent of them in plugins and only six in WordPress core (SWIF), so you could fairly argue that the blame sat with the code on top of PHP instead of PHP itself. PHP2Shell takes that defense away, because Imperva's analysis points out that these bugs live in PHP's own runtime and that several of them can be reached even when the application does nothing wrong (Imperva).

That forces a more honest answer to the old complaint that PHP is insecure. Plugin and application bugs still make up most of the vulnerability reports in ecosystems like WordPress, but the runtime underneath is a large C program, and large C programs have memory safety bugs, which is why Microsoft and Google have both reported that roughly 70 percent of their serious vulnerabilities come from that family, the same one Imperva places PHP2Shell in (TechRadar, Imperva). Careful PHP code can only do so much when the engine running it has a flaw.

The timeline teaches a second lesson as well. The details leaked before the coordinated disclosure, so Cloudflare saw attack traffic and switched on default firewall rules about nine hours before the public release (Cloudflare), and Wikimedia reportedly took its Phabricator instance offline as a precaution (Wikipedia). When a bug sits in a runtime that serves a huge share of the web, the gap between disclosure and patching ends up mattering about as much as the bug itself.

Before anyone reads that as a verdict on PHP alone, though, it helps to look at how the neighboring stacks have fared, because the same pattern of a nasty bug, a catchy name and a scramble to patch has played out in nearly every ecosystem.

Other ecosystems have their own shells

Every stack gets its shell@2x.png

PHP2Shell follows a naming habit that other ecosystems started earlier. Log4Shell, back in late 2021, scored a perfect CVSS 10.0 and hit every application using log4j-core 2.x, since a single log message was enough to trigger it (Security Scientist), while Spring4Shell followed a few months later and sounded just as frightening even though it needed JDK 9 or newer plus a Tomcat WAR deployment, which meant plenty of Spring Boot apps were never exposed (same source). Cleaning up after Log4Shell took some organizations months, partly because later patches uncovered further issues (Sonatype).

The JavaScript world has had a rough stretch too, with the Next.js middleware authorization bypass in March 2025 (CVE-2025-29927) letting attackers skip checks through a crafted header (Next.js advisory), and React2Shell (CVE-2025-55182) in December 2025 giving unauthenticated remote code execution through React Server Components, with a CVSS score of 10.0 (React). On top of framework bugs, npm carries a supply chain problem of its own, and Sonatype counted a 742 percent average yearly rise in supply chain attacks since 2019 in its 2022 report (Sonatype), while vendors were still publishing npm advisories as late as September 2025 (CloverDX).

Node's own runtime has had a busy year as well, which undercuts the idea that only PHP carries engine level risk. The project shipped a March 2026 release with roughly eight CVEs including two high severity process crashes (HeroDevs), a June release covering around a dozen advisories across the 22, 24 and 26 lines (Node.js), and a July release on the 29th, after two one day delays, that fixed eleven CVEs of which three were rated high (HeroDevs). Many of these are denial of service problems or bypasses of Node's own safety checks rather than the unauthenticated code execution seen in PHP2Shell, which keeps them below it on the severity ladder, yet they end up in the same place, because somebody has to upgrade the runtime underneath the app, and the outlook is grim on retired branches, since Node 20 reached end of life on 30 April 2026 and the July update gave Node 18 and 20 nothing (HeroDevs).