Two bugs in PHP itself just put the language behind about 7 in 10 websites with a known server language on emergency footing. How bad it is, where it ranks, and how long the fix will really take.
On Tuesday, October 21, 2026, the Dutch government took its main portal offline. So did France's Interior Ministry, Belgium's foreign ministry and state IT providers in Finland, Germany and Denmark. The Netherlands' national cyber security centre pulled its own website. The Wikimedia Foundation took a number of PHP systems down as a precaution. The US NSA told organizations that could not update right away to unplug.
Nobody had been hacked. Everyone was scared of the same thing: PHP2Shell, two bugs in the core of PHP, the programming language behind about 69% of all websites whose server language is known.
So, is the internet over? No. But this is the closest it has come in years.
PHP2Shell is the nickname for two vulnerabilities in PHP itself, not in a plugin or a framework.
CVE-2026-109618 is a memory corruption bug in how PHP handles running out of memory while it is still reading a request. CVE-2026-109619 is a use-after-free bug: leftover state from one request can be picked up by the next request served by the same worker.
Both let an attacker run their own code on a web server without logging in and without anyone clicking anything. The code runs with the rights of the web server process.
Here is the part that makes PHP2Shell different from the usual "update your WordPress plugin" story. The bug sits in the layer that parses incoming requests, which runs before the application code. WordPress, Drupal, Laravel, Symfony or a custom app with perfect code are all exposed in the same way. The application never gets a chance to say no.
Every common way of serving PHP is affected: Apache mod_php, PHP-FPM, php-cgi, FrankenPHP and LiteSpeed. Researchers rate mod_php as the riskiest setup.
The PHP security team scored both bugs 9.2 out of 10 (Critical) under CVSS v4. watchTowr, one of the first teams to reproduce them, scored them a perfect 10. The honest answer to "how bad is it" has two sides.
What makes it worse
What keeps it from being a 10 everywhere
That second list is not a reason to relax. Rapid7 put it plainly: a more portable technique could appear at any time. With Log4Shell and React2Shell, the gap between "hard to exploit" and "mass exploitation" was measured in hours.
From the first attack attempt to the first sites coming back online.
Ryan Austin of Calif finds the bugs during OpenAI's "Patch the Planet" project, using OpenAI's GPT-5.6 Sol model. Wiz researchers find them independently. AI is now finding serious bugs fast, on both sides: earlier this year OpenAI's own security-testing agents broke out of their test and hacked Hugging Face (the Hugging Face incident).
Amazon's MadPot honeypots log an exploitation attempt from a commercial anonymization network. No patch, no CVE entry, no public details exist yet.
The CVE numbers leak on a public forum, and a proof-of-concept video is released by mistake. PHP announces an emergency release. CERT-EU and the UK NCSC tell organizations to prepare.
The first of several proof-of-concept exploits appears, about 12 hours before the patch.
PHP ships fixed versions 8.5.12, 8.4.27, 8.3.36 and 8.2.35. CISA tells everyone to patch immediately. Governments start taking sites offline as a precaution.
Cloudflare reports "early attacks emerging" and deploys emergency firewall rules. watchTowr sees attempts in its honeypots. Amazon says PHP2Shell is now being broadly exploited in the wild.
Patched sites return. The long tail of servers that cannot be patched quickly stays exposed.
69.3% of websites with a known server-side language run PHP (W3Techs, October 22, 2026). That includes WordPress, Drupal, Joomla and Magento.
1.3 million+ internet-exposed hosts are potentially vulnerable, by one researcher's estimate. A separate Shodan search counted 1.9 million+ exposed hosts running PHP.
About 48% of PHP websites run a version with no official fixed build. By W3Techs' version data, 34.7% of PHP sites are still on PHP 7, 5 or 4, and another 13.7% are on PHP 8.0 or 8.1. PHP ships fixed builds only for 8.2 to 8.5. PHP 7.4, 8.0 and 8.1 got source-code patches but no official builds, and anything older gets nothing. Some Linux distributions backport fixes while keeping the old version number, so the real exposed share is lower. It is still large.
Then there is hidden PHP. It ships inside control panels like cPanel and Plesk, inside network and storage appliances, and inside internal tools nobody remembers deploying. CISA's first instruction was to inventory every system running any PHP version, because many teams do not know where PHP is running.
These are the bugs behind some of the biggest cyber attacks in history. Ranking them is subjective. We ranked them on three things: how much of the internet was exposed, how easy they were to exploit at scale, and the real damage that followed.
Log4j, the logging library inside a huge share of Java software
CVSS 10, trivial to exploit, buried deep in dependencies. Two years later, 38% of apps still used vulnerable Log4j versions, and it was still among CISA's most exploited vulnerabilities in 2023.
Windows file sharing (SMBv1)
A leaked NSA exploit turned into worms. WannaCry hit 200,000+ computers in 150 countries. NotPetya caused an estimated $10 billion in damage.
OpenSSL, the encryption under most HTTPS
About 17% of trusted HTTPS servers, roughly half a million, leaked memory, including private keys. A month later, 318,000 were still vulnerable.
A Java web framework
A patch was available, but Equifax did not apply it in time. About 147 million people's personal data was stolen.
Bash, the Unix shell
A decades-old bug in a tool on almost every Linux and Mac machine, reachable through web servers. Mass scanning started within a day.
File transfer software
One ransomware group used one bug to steal data from about 2,700 organizations and roughly 95 million people.
Microsoft Exchange email servers
Tens of thousands of organizations were broken into within weeks, by several groups at once.
Citrix NetScaler gateways
Session hijacking that walked attackers past MFA and fuelled ransomware at major companies. By one count, over half of affected devices were still unremediated three months later.
React Server Components and frameworks like Next.js
CVSS 10. Exploited within hours of disclosure, with 1.4 million exploitation attempts in its first week.
A compression library inside Linux SSH
A patient, multi-year supply chain plot that nearly put a backdoor into most Linux servers. One engineer caught it by accident, just before it reached mainstream releases.
History is a good guide here, because big vulnerabilities follow the same curve: a fast first drop, then a long plateau that lasts for years.
PHP2Shell has things that speed it up: managed hosting and big platforms patch for their customers, and firewall vendors shipped virtual patches within hours. It also has things that slow it down: half the install base on versions with no fixed build, PHP hidden inside appliances, and a fix that only works after every worker process is restarted. Here is our forecast for internet-facing PHP.
Large platforms, managed hosting and cloud runtimes are patched or shielded. Most high-profile sites that went offline come back. Exploit attempts climb as proof-of-concept code improves.
Roughly half of exposed hosts on PHP 8.2 to 8.5 are patched. Hosts on PHP 7 and 8.0/8.1 barely move, because a major version upgrade can break the application.
We expect 25–35% of exposed PHP hosts to still be vulnerable: old versions, small business sites, appliances and forgotten servers.
PHP2Shell joins Log4Shell and EternalBlue on the "still exploited" lists. Many servers will never be patched, only replaced.
This is our estimate, based on the patching curves above and W3Techs' version data. We will revisit it as scan data comes in. The uncomfortable conclusion: for most of the internet, "patch it" is not a plan that finishes this year.
Look again at the timeline. The first attack attempt came four days before the CVE was public. During those four days, vulnerability scanners had no CVE to look for, signature-based tools had no signature, and patch management had no patch. For that stretch PHP2Shell was, in practice, a zero-day.
Amazon's own advice after PHP2Shell says it directly: build detections that do not depend on CVE-specific signatures, because first exploitation often comes before them. CISA points the same way. Besides patching, it tells teams to watch for PHP worker processes launching shells or downloading tools.
That is a behavior, not a signature. A web server that has served pages for two years and suddenly starts a shell, writes a new file into a system folder or opens a connection to an unknown address is doing something it has never done before. You do not need the CVE number to see that. You need to know what normal looks like for that specific server.
Static defenses ask "does this match something we already know is bad?" Adaptive protection asks "is this server behaving the way it always does?" When attackers move days ahead of the patch, and AI is helping both sides find bugs faster, only the second question works on day zero.
Not just the websites you know about. Check servers, containers, base images, control panels and appliances. On a server, php -v shows the version. Anything from 5.4 up to the fixed releases is in scope, and your Linux distribution's security notice tells you which package build carries the fix.
Update to PHP 8.5.12, 8.4.27, 8.3.36 or 8.2.35, or your distribution's fixed package.
Running processes keep the old code in memory. An updated package without a restart is not a fix.
There is no official fixed build. If a server cannot be upgraded quickly, follow CISA's and the NSA's advice and take it offline until it can.
PHP published configuration changes and firewall vendors shipped rules, but PHP's maintainers say none of them is complete. Updating is the only safe choice.
Review web server and host activity from the first known attempt, and watch for PHP processes doing things they never do: starting shells, downloading tools, writing new files.
On the server, run php -v. If you see any version below 8.5.12, 8.4.27, 8.3.36 or 8.2.35, the server needs the update.
The command line and the web server can use different PHP builds, so also check the PHP package your web server loads (Apache mod_php or PHP-FPM). Hosting control panels show the site's PHP version on the PHP settings page.
Some Linux distributions backport the fix without changing the version number. On those, compare your installed package build with your distribution's security notice instead of the version alone.
Yes. PHP rates both CVE-2026-109618 and CVE-2026-109619 9.2 out of 10 (Critical) under CVSS v4. They allow remote code execution without authentication.
PHP 5.4 through 8.5.11. Fixed versions are 8.5.12, 8.4.27, 8.3.36 and 8.2.35. PHP 8.1 and older have no official fixed build.
Yes. Amazon says PHP2Shell is now being broadly exploited in the wild, and Cloudflare and watchTowr see attacks too. The first attempt came on October 17, 2026, before the patch existed. CISA said on October 21 it had not observed exploitation, and as of October 22 no specific break-in had been confirmed publicly.
Yes, if it runs on an unpatched PHP version. The bug is in PHP itself, so it is reachable before WordPress code even runs. Updating WordPress does not fix it; updating PHP does.
Several security vendors have added PHP2Shell checks to their vulnerability scanners. The quickest manual check is the PHP version: anything below 8.5.12, 8.4.27, 8.3.36 or 8.2.35 (or your distribution's fixed package) needs updating, and every PHP 8.1 or older install needs an upgrade.
It reaches more websites, but it is currently harder to exploit reliably. Log4Shell remains the benchmark for damage. PHP2Shell could close that gap if a portable exploit appears.
Based on past mega-vulnerabilities, expect about half of exposed supported servers to be patched within a month, a plateau after six months, and a tail of unpatched servers that lasts for years.
Facts as of October 22, 2026. PHP2Shell is a developing story; we will update this page as confirmed information changes. The patching forecast is Cloudaware's own estimate.