PHP Memory Flaws: AI Researchers Turned a Two-Year-Old Bug Into a Critical Threat
OpenAI's Patch the Planet initiative revealed that AI tools can exploit long-standing PHP engine errors that had stumped human developers, prompting urgent security updates for a vast portion of the web.
By Chloe Tesfaye ·

The fundamental tension in modern cybersecurity is no longer just about finding bugs, but about the race to exploit them. For two years, a critical flaw in the PHP engine sat undetected by human experts, seemingly harmless until artificial intelligence intervened. OpenAI announced that its GPT-5.6 Sol model, working with researchers under the 'Patch the Planet' initiative, transformed this dormant issue into a working exploit in just two weeks. This development highlights a stark shift: while human teams struggled to understand the mechanism, AI-driven research provided the practical pathway for attackers to potentially take control of servers.
To understand how this vulnerability emerged, it is necessary to look at the timeline of events. The PHP Foundation had been aware of the underlying memory management issue since 2024 but lacked the method to exploit or fix it. In July 2026, at the Foundation's request, researchers from Calif, a founding partner in the Patch the Planet program, began auditing the code using OpenAI tools. On August 11, both Calif researcher Ryan A. and OpenAI's team independently identified the exploitable nature of the flaw. Shortly after, another firm, Wiz, discovered a second, related vulnerability. These two issues, tracked as CVE-2026-109618 and CVE-2026-109619, both deal with how PHP handles memory allocation and error states.
The technical details of these flaws are significant for non-experts because they reside in the core engine rather than in specific application code. The first vulnerability occurs when PHP runs out of allocated memory, leaving behind incomplete data that the engine might mistakenly treat as valid. The second involves a fatal error that leaves the system pointing to memory that has already been freed, allowing subsequent requests to access or corrupt it. Because these issues exist at the engine level, websites can be vulnerable even if their own application code is secure. Both received a critical severity score of 9.2 out of 10, indicating a high risk of remote exploitation without login credentials.
The discovery process was not without friction. The coordinated release of patches was originally scheduled for October 22, 2026, but was moved up to October 21 following premature disclosures on October 20 that triggered public concern. The PHP Foundation has now released patched versions 8.2.35, 8.3.36, 8.4.27, and 8.5.12. Versions 8.1 and older will not receive official fixes, meaning sites running these older iterations face a higher risk. OpenAI states that the two-month timeline to fix the issues was due to the complexity of the required changes to the PHP engine, involving a coalition of maintainers, security providers, and government agencies.
The implications of this incident extend beyond a single software update. OpenAI positions this discovery as a prime example of the 'Defender's Window,' a concept the company introduced after its models previously identified vulnerabilities in Hugging Face. This window represents a narrow timeframe where organizations can use advanced frontier AI to find and patch defenses before those same capabilities become widely available to malicious actors. The company argues that powerful technology will inevitably be used by bad actors, making it a collective responsibility to act proactively. This view contrasts with the argument that flaws unexploitable without AI might be considered effectively harmless.
Looking ahead, the focus shifts to rapid adoption of the new patches. OpenAI emphasizes that any site using PHP can safely upgrade to the new versions to maintain security. The company considers this one of the most significant cybersecurity discoveries of 2026, given that PHP powers an estimated 70% of the internet. The ability of AI to expose sensitive data, such as passwords and API keys, stored in server memory further underscores the urgency. As other AI models, such as Anthropic's Claude Mythos, continue to identify thousands of zero-day vulnerabilities across major operating systems and browsers, the industry is likely to see more AI-assisted audits and faster patch cycles in the coming months.
For developers and system administrators, the message is clear: the era of passive vulnerability management is ending. The combination of AI-driven discovery and the ubiquity of PHP means that core language flaws can have immediate, widespread impact. While human developers may still be essential for implementing complex fixes, AI tools are now playing a decisive role in identifying where those fixes are needed. As the industry moves forward, the balance between defensive AI capabilities and offensive threats will likely define the next phase of digital security.






