On Wednesday this week, several government websites around the world quietly went dark. Not because of an attack — because of a warning. The US National Security Agency issued rare public advice: if your website cannot be patched immediately, take it offline.

The reason was PHP2Shell: two critical vulnerabilities in PHP, the programming language running behind roughly 70% of the world's websites — including most WordPress sites. Both flaws were rated 9.2 out of 10 for severity. And here is the part that made headlines: the bugs were found with the help of frontier AI models.

First, What Is PHP (and Why Should You Care)?

PHP is the workhorse of the web. It is the language behind WordPress, which powers a huge share of blogs, business sites, and online stores. It is also behind Joomla, Drupal, and Magento sites.

PHP2Shell is not a bug in one plugin or one theme. It is a bug in PHP itself — the engine underneath the website. That is what made it so dangerous. One flaw in PHP means potentially millions of websites are exposed at once, and the site owners did nothing wrong. Their code was fine. The engine was not.

What Could Attackers Actually Do?

The two flaws — tracked as CVE-2026-109618 and CVE-2026-109619 — allowed an attacker to run their own code on an unpatched server without logging in. No password guessing. No stolen credentials. A specially crafted web request was enough.

They could also read chunks of the server's memory, which can contain sensitive data like passwords. Cloudflare, which works with the PHP Foundation on web security, reported seeing active exploit attempts — including spikes of thousands of attempts — and said attackers were already adapting their tactics to dodge protections.

This is the nightmare category of security bug: remotely exploitable, no authentication needed, and present in a language that runs most of the web.

The Twist: AI Found This Bug

The most interesting part of the story is not just the bug — it is how it was discovered.

The PHP Foundation had spotted a theoretical problem back in 2024, but researchers could not figure out how it might actually be exploited. Then the foundation joined OpenAI's "Patch the Planet" initiative in July 2026, a program aimed at using AI to find and fix vulnerabilities in critical open-source software.

Security firm Calif used OpenAI's GPT-5.6 Sol model and reported the first flaw on August 11. Separately, Wiz — a cybersecurity company owned by Alphabet — used Google's Gemini 4 Argon and its own tools to discover the second flaw on August 24.

Wiz put it bluntly: with frontier AI models and the right tools, a single researcher completed in a week what would previously have taken a world-class team months. The bug sat in PHP for years. AI compressed the discovery from "theoretically known" to "fully exploitable" in weeks.

There is a flip side to that speed. The same techniques that let defenders find bugs fast could let attackers find them too. Both sides just got a speed boost, and nobody knows yet which side benefits more.

Why Governments Panicked

The official fix went out on October 21, 2026, a day earlier than planned — because basic details of the bug leaked on social media on October 20, and a researcher mistakenly published a video demonstrating how to exploit it. Once that video spread on hacking forums, the clock started ticking loudly.

As a precaution, government services took websites offline while they patched: France's prefecture websites, Germany's digital ministry, the Dutch parliament, Finland's central government, and in the UK, the Office for Budget Responsibility and NHS Scotland. The NSA advised taking systems offline if they could not be updated right away. The UK's National Cyber Security Centre gave similar guidance.

Shutting down government websites as a precaution — for a bug in a programming language — shows the scale of exposure. PHP's own team called PHP2Shell among the most severe flaws in PHP, with Wiz describing it as arguably among the most severe in software history.

Are You Affected? Check These Three Things

1. Do you run a website? If your site runs on PHP — and if it is a WordPress site, it almost certainly does — you need a patched version. The fixed releases are PHP 8.5.12, 8.4.27, 8.3.36, or 8.2.35. In WordPress, you can check your PHP version under Tools > Site Health > Info > Server. If you use managed hosting, contact your host and ask them to confirm the patched version is installed.

2. Are you on an old PHP version? PHP 8.1 and older are end-of-life and receive no official fix. The PHP team released minimal source backports for 7.4, 8.0, and 8.1, and some Linux distributions ship their own patched packages. But the honest advice is the same as it has been for years: if you are on PHP 8.1 or older, upgrade. That advice just became urgent.

3. Are you just a visitor? If you only browse the web, there is nothing for you to install. Your browser was never the problem — servers were. But be aware that in the days around the disclosure, some sites may have been compromised before patching, so treat password-reset emails or odd behavior on small websites with extra caution for a while.

Partial workarounds exist for those who cannot update immediately, but the PHP project says updating is the only truly safe choice.

What This Means Beyond the Patch

PHP2Shell is a security story, but it is also a milestone in the AI story. For years, AI has been used to write code. Now it is hunting bugs in code that runs the internet — and doing in a week what took elite teams months.

That changes the economics of security on both sides. Software vendors and open-source foundations now have a powerful new defender. Attackers have a powerful new scanner. The window between "bug exists" and "bug is being exploited" is getting shorter, as the leaked video and the exploit attempts this week demonstrated.

The practical lesson for the rest of us: keep software updated, know what your website runs on, and stop treating updates as optional chores. The days of ignoring that "PHP update available" notice are over. The attackers are not ignoring theirs — and now they have AI helping them too.

The Practical Takeaway

If you own or manage any website: check your PHP version today. Not this weekend, today. In WordPress, go to Tools > Site Health > Info > Server. If the version is not 8.2.35, 8.3.36, 8.4.27, or 8.5.12 (or a patched vendor package), contact your hosting provider and ask them to update it immediately. That one check is the single highest-value thing you can do after a disclosure like PHP2Shell — and it takes about thirty seconds.