Critical Flaws Found

The U.S. National Security Agency sent out an alarming warning on Wednesday that two critical holes had been found in PHP, with patches already issued by the PHP Foundation.

PHP is a server-side programming language so widely used for web applications that it powers roughly 70% of the websites on the internet; by some accounts, that is more than 33 million sites. It is also used by popular content management systems like WordPress.

The NSA warned that these holes are so severe that if a website cannot be patched immediately, it should be pulled off the web until it can be. The holes allow attackers to infiltrate the server file system or a database that may be used by the web app.

Interestingly, these holes have been tucked away in all versions of PHP since version 5, which was released in 2004. Websites not running relatively current versions of PHP will have some updating work to do, as PHP 8.1 and older versions are no longer supported. The recommendation is to update the web server to the current version of PHP, which is 8.5.12.

AI-Driven Discovery

So how did two such ubiquitous, decades-old flaws that affect nearly every website on the internet suddenly come to light? Artificial intelligence, particularly via OpenAI and Google’s Wiz.

Security testing company Calif was engaged in OpenAI’s initiative to find flaws in open source software. Using GPT-5.6 Sol, it found one of the flaws, OpenAI disclosed in a blog post. Separately, the Wiz team also used AI, namely its Wiz Atlas security AI agent, Gemini, and GPT-5.6 Sol to find multiple vulnerabilities in PHP.

Both OpenAI and Wiz followed responsible security research practices and worked with PHP on patches before publicly disclosing the flaws. Then they all worked together to flesh out what they found, and test the patches, drawing in a host of others to help.

Wiz thanked multiple industry stakeholders. While WordPress sites use PHP, WordPress has issued a statement saying that the flaw is not WordPress specific, and sites running its CMS must patch their servers and work with their web-hosting companies to ensure their sites are protected.

Security Implications

OpenAI says that these flaws were found by researchers before hackers discovered them. So there were no reports of exploits in the wild. This is also in part because, before AI, these flaws were too hard for hackers to exploit, though large language models can help adapt an exploit to different PHP versions, configurations, and memory layouts.

In other words, this is the kind of security issue that was found and prevented because of AI, but is also a high risk only because of AI capabilities.

Now that the issue has been disclosed, hackers are fully in the know. The race is on for the internet to patch tens of millions of websites before hackers can attack the unpatched ones, prompting the NSA guidance that if websites cannot be patched right away, they should be taken offline.