PHP2Shell: millions of exploit attempts hit within hours
After critical PHP bugs found with help from AI went public, Cloudflare saw millions of exploitation attempts within hours. The PHP Foundation says it has seen no successful exploitation so far, and researchers say human expertise was still key.

The critical PHP vulnerabilities disclosed this week, collectively nicknamed PHP2Shell, have quickly turned into a live test of how AI changes the security race. Wired reports that criminal hackers started trying to exploit the flaws almost as soon as they were published.
What happened after disclosure
According to analysis from Cloudflare cited by Wired, millions of exploitation attempts arrived within hours of the vulnerabilities going public. Broad access to AI tools makes it easier for attackers to turn a fresh advisory into working attack code fast.
The worst case has not materialized so far. The PHP Foundation says it has not seen any successful exploitation, and many of the exploits circulating publicly appear not to work.
How AI helped find old bugs
Researchers at security company Calif first identified PHP2Shell and built exploits in early August, partly using frontier AI tools through OpenAI's Patch the Planet program, combined with deep human knowledge of PHP. Some of the underlying issues were spotted back in 2024 but were judged too complex to exploit at the time. Researchers at OpenAI and at Wiz, which Google owns, later found the flaws independently with AI tools. A Wiz researcher told Wired the PHP team had known about the vulnerability for years, but it was not fixed because a human attacker could not practically use it.
In other words, AI did not create a new class of bug. It made an old, ignored one exploitable. That pressure is landing on teams that are already stretched: Wired notes Microsoft's security updates this month covered a record 1,453 vulnerabilities.
Not panic, but pressure
Security experts quoted by Wired urge some calm. Jake Williams of Hunter Strategy expects more long-lived bugs to surface but says few targets have PHP's internet-facing reach. Calif's Ryan Austin wrote that no model can find every bug from simple prompts, and researcher Niels Provos said it took a highly skilled team to find this one, even after more than a year of people hunting with AI.
Why it matters for builders
If you run PHP anywhere, patching is the first job, and the window between disclosure and attack is now measured in hours. Beyond that, assume old "not exploitable" findings in your own code may become exploitable as models improve. Use AI on defense too: run code-security scanners such as Claude Security or review agents like Perch on every pull request, and let coding agents such as OpenAI Codex help triage and fix backlogged findings. Keep dependency inventories current so you know within minutes whether an advisory applies to you.
Source: Wired. This article is PickAI’s own summary and analysis based on the original reporting, prepared with AI assistance under our editorial policy.