In June 2024 a critical PHP flaw went from patch to ransomware in under two days. What happened, and what it teaches about PHP2Shell.

Part of our series on PHP security history. This incident happened in June 2024; we're revisiting it in light of PHP2Shell.
PHP2Shell feels unprecedented, but the pattern isn't new. In June 2024, a critical PHP flaw went from public patch to active ransomware attacks in less than two days.
The flaw affected PHP running in CGI mode on Windows servers. It rated 9.8 out of 10, and Censys counted roughly 458,000 potentially exposed servers shortly after disclosure.
The patch is a starting gun. Once a fix is public, attackers study it to build exploits. Sites that waited a week to update were the ones that got hit.
Old bugs come back. CVE-2024-4577 was a bypass of a PHP flaw patched back in 2012. PHP2Shell, too, is rooted in code that has sat in PHP for years.
"Narrow" flaws still reach a lot of sites. It only hit Windows plus CGI, which sounded niche. It still exposed hundreds of thousands of servers.
PHP2Shell is broader. It affects nearly every common PHP setup, not just one configuration. Attacks started before the patch was even public. The 2024 timeline was fast; this one is faster.
If your site depends on PHP, the question isn't whether another one is coming. It's whether someone is ready to patch the day it lands. See your options →
Sources: Help Net Security · BleepingComputer · FortiGuard · Greenbone
