All articles

Critical PHP Flaws Found by AI: Check Your Website Now

Two critical PHP flaws were patched on 21/10/2026, and OpenAI says its model helped find one first. If your website runs on WordPress or similar, check it this week.

If your business website runs on WordPress, Drupal, Magento or Laravel, this is the one update worth chasing this week.

What happened

On 21/10/2026 the PHP project released emergency fixes for two critical flaws in PHP itself, the language that sits underneath a large share of the web. Both are rated 9.2 out of 10 for severity, and both can let an attacker run their own code on a server without logging in. The fixed releases are PHP 8.5.12, 8.4.27, 8.3.36 and 8.2.35.

The PHP advisory says every PHP installation serving web requests is affected, whatever the server setup. The highest risk is on servers running Apache with mod_php, where an attack can work before your website's own code has even started.

The unusual part is how the flaws were found. OpenAI says the security firm Calif found one of them using its GPT-5.6 Sol model, as part of an initiative called Patch the Planet, while Wiz independently found and reported both. OpenAI spent around two months coordinating maintainers, security firms and government agencies before disclosure, because the fix needed a major change to the PHP engine. To OpenAI's knowledge, this is the first time frontier AI has found a bug of this scale before attackers did.

Alongside the disclosure, OpenAI published a free checker on GitHub, packaged as two Codex skills. One checks a website from its address; the other checks a server you have access to. It can also be run directly with Node.js, without Codex.

Why it matters for UK businesses

Most small firms do not think of themselves as running PHP, but if you have a WordPress site, a WooCommerce shop or a booking plugin, you almost certainly are. The flaws sit in memory handling that nearly every request touches, so this is not a niche setting you can assume is switched off.

Some organisations overseas took sites offline as a precaution. That is a reasonable step if you cannot patch quickly, and it does not mean a site was breached.

Older versions carry extra risk. PHP 8.1 and earlier no longer get official updates, although the PHP security team has published minimal fixes for 7.4, 8.0 and 8.1 for anyone building from source. PHP 8.2 reaches end of life on 31/12/2026, so if your host still runs it, this is a good moment to plan the move.

How Adevious AI sees it

This is a real milestone, and it cuts both ways. If AI can find a flaw like this before attackers do, the same capability will help attackers find the next one. OpenAI says it expects findings like this to rise sharply. For a small business, that means the gap between a patch being released and someone trying to exploit it will keep shrinking.

We would use the checker, but we would not lean on it. It reads the version number your server announces in its headers. Many hosts hide that, which gives you an UNKNOWN result, and UNKNOWN does not mean safe. An OK result assumes the fix is present because the version number is high enough; it does not test for the fix. Linux distributions often backport fixes without changing the version number, so the checker can also flag a patched server as vulnerable.

One more caution. The Codex server skill works best with access to your server. Giving any AI agent shell access to a live web server is a decision to take deliberately, with someone who knows the setup watching, not something to try for the first time during a security scare.

Also bear in mind that most of the claims about AI's role come from OpenAI itself. The flaws and fixes are confirmed by the PHP project; the story about who found what first is OpenAI's own account.

What to do this week

If your site is on managed or shared hosting, email your host today and ask one plain question: has PHP been updated to a fixed release for the October 2026 advisory, and on which date? Keep the reply.

If you run your own server, update to the fixed release for your branch, restart every PHP worker, and then check the logs for anything odd. A patch closes the door; it does not remove anyone who may already have walked through it.

If you want a quick outside view, run OpenAI's checker against your website address, and treat UNKNOWN as a prompt to ask your host, not as an all clear.

If you would like a hand checking your sites, or working out what your hosting setup actually runs, get in touch with the Adevious AI team. We are happy to help.

Sources:

Source: www.php.net

Source: openai.com

Source: github.com

Source: www.csoonline.com

Source: community.openai.com

Acronyms:

AI: Artificial Intelligence

PHP: PHP: Hypertext Preprocessor

UK: United Kingdom

Articles reflect the tools and context at publication. Product names, availability and pricing may change.

Back to all articles