I joined Aaron Marchbanks on SaaS That App to talk about PHP2Shell: two remote code execution vulnerabilities in PHP core, each rated 9.2. Once they were disclosed, exploit attempts went from tens of thousands in the first hour to millions within a few hours.

Listen: PHP2Shell and the 5-Hour Window to Patch a 9.2 CVE · Watch on YouTube

What we covered

  • The response. We prepared the night before and patched everything else ahead of the disclosure. When the CVE dropped, we fed it into Claude to generate infrastructure-as-code mitigations while the patches rolled out.
  • The shrinking exploit window. AI-assisted vulnerability discovery means a severe CVE can go from disclosure to mass exploitation in hours, not days. These bugs had been sitting in PHP for 13 years.
  • Patch first, mitigate second. WAF rules and other mitigations buy time, but they don't replace patching.
  • Defense in depth. Layered security means no single tool has to catch everything.
  • Technical debt sends the bill. Outdated PHP versions make emergency patching much harder. AI can help work through targeted legacy upgrades, but it's easier to pay down that debt before your hair is on fire.

The takeaway: patch often and patch fast.