TL;DR
Researchers using AI tools found that a PHP memory-management bug reported in 2024 could be exploited to run code on affected servers. The PHP Foundation released a patch before the reported exploit was used by attackers, but the case highlights how AI can help specialists uncover security risks in decades-old software faster than maintainers can repair them.
Researchers using AI tools found that a PHP bug reported in 2024 could be turned into PHP2Shell, a vulnerability capable of letting an attacker run code on a server. The PHP Foundation released a patch after the researchers reported the issue, and the source report says there was no known exploitation by malicious actors before the fix.
Get business pricing on tech for your team
- Business-only prices and quantity discounts
- Tax-exempt purchasing
- Multiple users, one account, clear invoices
The underlying flaw caused an out-of-memory error, a condition that typically crashes a program when allocated memory cannot hold the data it receives. Because the bug had been treated as a crash issue rather than a security threat, it remained open after it was reported to the PHP Foundation in 2024. Researchers later found that, with careful manipulation of memory, the problem could be used to gain control of a server process.
Earlier this year, cybersecurity firm Calif began an independent audit of PHP sponsored by OpenAI. Within two weeks, a Calif researcher aided by AI tools identified the exploit path and alerted the PHP Foundation. Security company Wiz confirmed and expanded on the vulnerabilities, according to IEEE Spectrum. The report says the potential impact included reading sensitive data and running malicious code on affected servers.
A team of four engineers spent two months preparing a patch, the report says. It describes sites running PHP-based platforms, including WordPress and Drupal, as potentially at risk; it does not establish that every site using those platforms was vulnerable. The available account says the patch was released before any known attacker used the exploit, but gives no count of affected systems or confirmed incidents.
AI Raises the Stakes for Legacy Code
The episode shows how AI can change the practical value of an old bug. A flaw long regarded as a crash risk became a route to server compromise after specialists used AI-assisted analysis to work through the detailed memory reasoning needed for exploitation. That matters to organizations relying on older software: a bug that has sat in a backlog may pose a more serious risk than maintainers previously understood.
The finding does not show that AI independently discovered or exploited the vulnerability. The researchers had deep cybersecurity and PHP expertise, and Columbia University computer science professor Suman Jana told IEEE Spectrum that AI cannot do the work by itself. His assessment was that it can help top experts accomplish more and lower the amount of specialized knowledge needed to contribute to similar work. That could increase the pace at which vulnerabilities are found, while leaving maintainers with the difficult task of verifying and deploying fixes.
The pressure is especially acute for open-source projects that are widely used but do not have reliable revenue to support maintenance. Finding a weakness can take less time than developing a safe repair: fixes must close the attack path without breaking existing software. If discovery speeds up but funding and patch capacity do not, defenders may face a growing queue of urgent work.
Products Worth Considering

LG UltraGear 32-inch QHD Curved Gaming Monitor, 180Hz, 1ms, FreeSync

LG UltraGear 32-inch 4K UHD OLED Gaming Monitor, 165Hz

Samsung Odyssey G5 34-Inch Ultra-Wide Curved Gaming Monitor, 180Hz
As an affiliate, we earn on qualifying purchases.
A Crash Bug Became a Server Risk
PHP was created in 1994 and remains part of the infrastructure behind many websites. The reported flaw had been known to the PHP Foundation since 2024, but its initial behavior appeared to be a relatively ordinary failure: an out-of-memory error that could crash a program. The security significance emerged only when Calif’s audit established a way to use the condition to execute arbitrary code on a host server.
IEEE Spectrum describes the episode as a warning about technical debt accumulated across software written and maintained over decades. That phrase refers here to older code and unresolved issues that can become harder to assess as systems evolve. The article’s headline, “AI is forcing us to pay off 40 years of technical debt,” is a broad interpretation of the case, not a measured estimate of how much software must be repaired or how quickly.
Researchers reported the issue to the PHP Foundation, which began work on a patch. The source report does not provide a specific release date, version number, or deployment schedule. It also notes that security work depends on resources: open-source maintainers may be responsible for widely used software without the funding available to a commercial security team.
“Now it is time for the technical debt to be paid off.”
— Matt Suiche, AI security research lead at Tolmo
Exposure and Exploitation Remain Unclear
The report says the vulnerability put a broad range of PHP-based websites at risk, including sites using WordPress and Drupal, but it does not give a confirmed list of affected services, the number of vulnerable servers, or how many operators installed the patch. It also reports no known attack before the fix; that does not establish whether every attempted or unreported exploitation would have been detected.
It remains unclear how much AI contributed to the discovery beyond assisting a specialist researcher, or whether similar tools will lead to a sustained rise in exploitable findings. The case does not establish that AI can independently audit legacy systems or produce reliable repairs. The broader claim that decades of technical debt must now be paid down is an interpretation of the risk, not a quantified forecast.
Patch Deployment and Maintenance Funding
Website operators and administrators should check PHP and relevant platform guidance, apply the applicable security updates, and confirm that their software is supported. Johns Hopkins computer scientist Matthew Green told IEEE Spectrum that users should install security updates promptly rather than delaying them. The report does not specify the patched PHP versions, so administrators should consult the PHP Foundation’s release information for exact instructions.
The longer-term question is whether maintainers will receive enough support to investigate and repair vulnerabilities at the pace AI-assisted tools may uncover them. Jana called for more access to advanced cybersecurity models and funding for security work, including contributions from AI companies. He also pointed to formal verification as a possible aid to patching: an AI could draft a patch and a proof, while a separate proof checker verifies the proof. Whether those methods can make repairs as scalable as discovery remains unproven.
Key Questions
What was PHP2Shell?
PHP2Shell was an exploit path that turned a PHP out-of-memory bug into a way to run arbitrary code on a host server, according to the source report.
Did attackers use the vulnerability?
The report says the issue was patched before any known attackers used the exploit. It does not provide independent monitoring data or rule out unreported activity.
Did AI find the vulnerability on its own?
No. Calif’s work involved a researcher with cybersecurity expertise who was aided by AI tools. Columbia professor Suman Jana said AI could help experts do more, but could not complete the work by itself.
Which websites were affected?
The report says websites running vulnerable PHP software, including sites using WordPress or Drupal, could be at risk. It does not provide a complete list of affected sites or establish that every site using those platforms was vulnerable.
What should site operators do now?
Operators should check official PHP and platform security guidance, install applicable patches, and keep their software updated. The source report does not specify the affected versions or patch version numbers.
Source: spectrum.ieee.org
