AI
AI is finding security flaws faster than open-source maintainers can fix them
The PHP2Shell crisis reveals a widening gap: machine learning accelerates vulnerability discovery, but patching still demands rare expertise and resources.
1/2
The New Stack
A pair of critical vulnerabilities in PHP—the language powering much of the web—triggered a global security emergency this week, forcing businesses, hospitals, and government agencies to take websites offline for emergency patching. Yet the incident is exposing a more troubling pattern: artificial intelligence can uncover serious security flaws at scale, but human experts can't patch them fast enough.
The PHP2Shell crisis and the rush to protect#
Two critical flaws in PHP, branded PHP2Shell, could enable unauthenticated attackers to run arbitrary code on vulnerable servers. Responses were swift—Cloudflare deployed firewall protections, Automattic secured major platforms including WordPress.com and Tumblr, and the Wikimedia Foundation took services offline pending patches. The PHP Foundation released emergency fixes on Wednesday for versions 8.2 through 8.5.
Crucially, both vulnerabilities were discovered using AI. Security firm Calif uncovered one flaw with OpenAI's GPT-5.6 Sol model, while Google-owned Wiz independently identified both. OpenAI coordinated a two-month disclosure process involving PHP maintainers, government agencies, and industry partners.
That coordination fractured when Chainguard released patched container images six hours before the agreed embargo deadline. CEO Dan Lorenc justified the move by citing potential attacks and the ease of exploiting the vulnerability, but the PHP Foundation pushed back—the premature release risked arming attackers before patches were universally available. Lorenc noted that Chainguard had independently rediscovered the flaw using a frontier AI model and simply prompting it to "find bad vulnerabilities in PHP."
The growing mismatch: discovery outpacing remediation#
The PHP crisis is a symptom of a much larger challenge. Just days before the disclosure, Anthropic published research showing that Claude had identified nearly 500 security issues across 25 open-source projects containing millions of lines of code—including one vulnerability that had gone undetected for 21 years.
"This is unfortunately the new normal for the industry," Lorenc acknowledged, capturing a troubling reality: AI can spot security weaknesses at scale, but assessing and fixing them demands scarce expertise and time.
Madelyn Olson, AWS principal engineer and maintainer of the Valkey database, observed that the challenge has fundamentally shifted. "The hardest part has moved from finding bugs to fixing them," she told . One of this week's PHP vulnerabilities stemmed from a 2024 security audit, but remediation stalled because proposed patches risked breaking compatibility, damaging performance, or disrupting third-party extensions. Few engineers possessed the knowledge to navigate those trade-offs.

