AI Helps Uncover Two Critical PHP Flaws
2026-10-22 · PHP 基金會
The PHP project released versions 8.5.12, 8.4.27, 8.3.36 and 8.2.35 on October 21 to fix two critical remote code execution flaws, tracked as CVE-2026-109618 and CVE-2026-109619. According to the PHP Foundation, under the right conditions an unauthenticated attacker could execute code on servers running PHP. The first flaw involves partially initialized internal data left behind when a request hits the memory limit; on Apache with mod_php, full remote code execution was demonstrated with default settings. The second leaves internal state pointing at memory from a previous request, causing a use-after-free.
Both sit in memory management and error handling, parts of PHP that nearly every request touches. Wiz says every PHP version released in the last decade, going back to 5.4, is affected by at least one of them. PHP runs roughly 70% of websites by the estimate TechCrunch cites, including content management systems such as WordPress, which says the flaw is not WordPress-specific and that sites must patch their servers. PHP 8.1 and older are no longer supported, so those sites face a bigger upgrade. The NSA's guidance is that sites that cannot be patched right away should be pulled offline.
The discovery story matters. Per the Foundation's timeline, security firm Calif began auditing PHP on July 30 under OpenAI's Patch the Planet program, reported an unconditional remote code execution bug on August 11, and OpenAI independently reported the same root cause that day. Wiz supplied further attack vectors on August 24. TechCrunch says Calif used GPT-5.6 Sol, while Wiz used its own AI agent plus Gemini 4 Argon and GPT-5.6 Sol. OpenAI says researchers found the flaws first. But details leaked before coordinated disclosure, and Cloudflare, Patchstack and watchTowr report probing and attack attempts; watchTowr said nobody had succeeded so far but did not expect that to last.
The Foundation's post is candid. Signs of the memory problem appeared during a 2024 external audit, but no exploit path was known and each fix carried compatibility or performance costs. The security team, working by consensus, stalled for months. The Foundation calls the delay a "structural failure" and says it has moved to majority decisions, added an ecosystem security team and begun using AI tools to validate reports.
Wiz warns that AI can help adapt exploits to different PHP versions, configurations and memory layouts, lowering a barrier that once protected such bugs. With details now public, the race is to update tens of millions of sites. Administrators should check their PHP version and follow the official advisory; those on managed hosting should ask the provider whether patches are applied.