AI helped turn an old PHP bug into the critical PHP2Shell vulnerability

Researchers at cybersecurity firm Calif used AI tools to turn an existing PHP bug into a way to execute arbitrary code on a server. Disclosed in late October, the PHP2Shell vulnerability could expose sensitive data and enable malware installation. IEEE Spectrum reports that websites including NASA, Wikipedia and the White House were at risk. As far as is known, a patch was released before malicious actors obtained the exploit.
The underlying bug had been reported to the PHP Foundation in 2024 but remained unresolved because it was regarded as a cause of crashes. During an independent PHP audit sponsored by OpenAI, a Calif researcher found an exploitable path within two weeks. OpenAI and cybersecurity company Wiz also helped confirm and expand the findings.
After the PHP Foundation was notified, four engineers spent two months developing a patch. Columbia University associate professor Suman Jana attributes that gap to the need to close every attack path while preserving existing functionality. He stresses that the researchers had deep expertise in both cybersecurity and PHP; AI assisted their work rather than carrying it out independently.
The case adds pressure to the longstanding challenge of maintaining widely used open-source software. Jana sees more funding, access to advanced security AI models and formal verification of patches as promising ways to help defenders. Making vulnerability repair nearly as automated as discovery, however, remains a prospect rather than an established outcome.
Original source: spectrum.ieee.org ↗
Comments on source platforms
Rank is the maximum of the latest discussion counts. These are source metrics.
Hacker News
- Discussion ↗: 746
Measured: 6 Nov 2026, 17:57 UTC