The PHP Flaw Behind 70% of the Web: What the Urgent Security Fix Actually Changes

The PHP Flaw Behind 70% of the Web: What the Urgent Security Fix Actually Changes

The PHP Flaw Behind 70% of the Web: What the Urgent Security Fix Actually Changes

The PHP Flaw Behind 70% of the Web: What the Urgent Security Fix Actually Changes

A programming language most internet users have never heard of sits underneath an estimated 70 per cent of all websites, and in October 2026 it needed an emergency fix. PHP, the server-side language released more than 30 years ago, powers WordPress, which alone runs more than 40 per cent of websites, along with Drupal and Joomla. The warning was aimed at almost everyone who runs a website.

ABC News reported the story plainly: an urgent security fix had been issued for code vital to an estimated 70 per cent of all websites. The two flaws, now widely called PHP2Shell, were rated 9.2 out of 10 for severity by the PHP project. If exploited, they could allow attackers to run their own code on affected servers without logging in, which means taking over the server that hosts a website. The PHP team urged all users to update immediately, and security agencies in the United States and Britain went further, telling organisations to take affected systems offline if they could not patch straight away.

The fix itself is straightforward: move to a patched release of PHP and restart the web server process so the new code loads. The hard part is the scale. PHP is so widely used, and so often buried inside hosting accounts and old applications, that many site owners do not know which version they run, or that their site runs PHP at all. What follows is what is confirmed, with the rest attributed to its reporting.

Key takeaways

  • Two critical flaws in PHP itself, collectively called PHP2Shell, could allow unauthenticated remote code execution.
  • The PHP project rated both flaws 9.2 out of 10 for severity, and released patched versions on Wednesday 21 October 2026.
  • The fixed releases are PHP 8.5.12, 8.4.27, 8.3.36 and 8.2.35; PHP 8.1 and older receive no official update from the PHP project.
  • ABC News reported that nearly 70 per cent of the internet is estimated to use PHP, including WordPress, which is used for more than 40 per cent of websites.
  • The FBI and the UK National Cyber Security Centre advised taking affected systems offline until fully patched.

What the flaw actually is

PHP2Shell is the name researchers now use for two vulnerabilities in PHP core, the interpreter itself, rather than in WordPress or any other software built on top of it. The flaws are tracked as CVE-2026-109618 and CVE-2026-109619, and both are described by the PHP project as flaws that can allow unauthenticated remote code execution. No login is needed to attempt the attack, which is what pushed the severity rating to 9.2.

The first flaw, CVE-2026-109618, is an out-of-memory bug. When PHP runs out of memory partway through handling a web request, internal request data can be left only partly set up, and the cleanup that follows can treat that broken data as valid. The second, CVE-2026-109619, is a use-after-free problem in internal state that PHP keeps between requests, reachable through the session upload progress handler. Both paths lead to the same outcome: an attacker’s code running on the server.

The scope is unusually wide. The PHP advisory identifies all PHP installations serving web requests as at risk, and reporting on the flaws says every PHP release of the last decade is affected by at least one of them, going back to version 5.4. For a grounding in the wider subject, our guide to what cybersecurity is and how it works explains the layers of defence that a flaw like this sits underneath. Exploiting them reliably is not trivial, and no specific website was publicly named in the coverage reviewed as having been broken into through them.

The fix: which versions are safe

Hands plugging a network cable into a server rack patch panel during maintenance
A server administrator connecting network cabling during maintenance.

On Wednesday 21 October 2026, the PHP development team released updates that fix both vulnerabilities. The patched releases are PHP 8.5.12, 8.4.27, 8.3.36 and 8.2.35, one for each supported branch. The official advice was direct: all PHP users are strongly encouraged to update immediately, and the PHP team said updating the code is the only complete fix. A partial workaround exists, but patching is the only full remedy.

The release was brought forward. The PHP project had planned a scheduled release, but ABC News reported that once details began circulating on online forums and social media, the project pushed its announcement and fix forward. According to security reporting, details had leaked on 20 October, and the PHP security team moved the emergency release up to 21 October.

Not every PHP installation has a fixed release to move to. PHP 8.1 and older no longer receive updates from the PHP project at all, although the project published minimal source backports for versions 7.4, 8.0 and 8.1 because of the severity. Anyone on an end-of-life branch should upgrade to a supported branch, apply a backported fix from their Linux distribution or support vendor, or isolate the host from the internet.

PHP2Shell at a glance
Detail What is confirmed
Name PHP2Shell, two flaws in PHP core
Identifiers CVE-2026-109618 and CVE-2026-109619
Severity 9.2 out of 10 (CVSS v4.0), rated critical by the PHP project
Impact Unauthenticated remote code execution on web servers
Fixed versions PHP 8.5.12, 8.4.27, 8.3.36 and 8.2.35, released 21 October 2026
No official fix PHP 8.1 and older; minimal source backports published for 7.4, 8.0 and 8.1
Scale Nearly 70 per cent of websites estimated to use PHP; WordPress alone over 40 per cent
Official advice Update immediately; go offline if patching is not possible

Why the warning was so urgent

The discovery itself was part of the story. OpenAI posted on the morning of the release that its AI models had helped researchers discover the PHP flaws. According to reporting on the discovery, researchers at Calif, a small United States cybersecurity company, found the problems during an August audit using OpenAI’s GPT-5.6 Sol model, while another cybersecurity company, Wiz, independently uncovered the issues.

The response from governments was unusually fast and blunt. The FBI’s cyber division warned that the vulnerabilities could allow malicious actors to remotely execute code in PHP, raising the risk of sensitive data and networks being compromised, and recommended that operators take websites offline if they could not update them immediately. The UK National Cyber Security Centre gave similar advice,

The disruption was visible within hours. Search Engine Journal reported that Dutch parliament and cyber agency websites and Finnish government web services went offline ahead of the release, as a precaution and not because of a breach. BleepingComputer, citing estimates from VirusTotal, reported more than 5.1 million PHP hosts exposed online. That counts reachable servers, not confirmed victims, and the same exposure logic applies to shadow IT and unmanaged AI tools already widening the attack surface inside companies.

What happens if you do not patch

The longer a system stays unpatched, the worse the odds become. Security reporting after the disclosure noted that the flaws had been probed before the patch arrived, and CISA, the United States cybersecurity agency, later added CVE-2026-109619 to its Known Exploited Vulnerabilities catalogue on 26 October 2026, with a remediation deadline of 29 October, according to threat reporting from Uptycs. The catalogue is reserved for vulnerabilities with evidence of exploitation, so the listing is a meaningful signal, although the public reporting does not name specific victims. The MyColorado app breach earlier in 2026, in which up to 150,000 users were exposed and the state took the app offline, is a reminder of how quickly a single exposed system can turn into a public incident, as our report on the MyColorado app breach sets out. A further PHP security release followed on 19 November, so patching once is not enough.

How to check and patch

The first step is finding out which version of PHP your sites run. If your site is on shared hosting, your hosting control panel usually shows the PHP version, and most hosts let you change it from the same panel. If you use WordPress, the Site Health screen under Tools lists the PHP version. If you cannot find it, ask your host.

The second step is updating to the fixed release for your branch, or to a newer one if it exists: 8.5.12 or later on the 8.5 branch, 8.4.27 or later on 8.4, 8.3.36 or later on 8.3, and 8.2.35 or later on 8.2. After updating, restart PHP-FPM or the web server so the new build actually loads, then verify the version again.

The third step is the one organisations most often skip: confirm the patch took effect on every system, not just the main website. Check containers, staging environments and old applications too: each is a separate installation that needs the same update. If a system cannot be patched immediately, the official advice is to take it offline until it can be fully mitigated.

Checklist: securing your sites after the PHP fix

Work through these checks in order.

  • Find the PHP version on every website, server, container and staging environment you run.
  • Update each installation to its fixed release, 8.5.12, 8.4.27, 8.3.36 or 8.2.35, or to a newer release on the same branch.
  • Restart PHP-FPM or the web server after updating, then verify the running version.
  • Take any system offline that cannot be patched immediately, and restrict access to anything that must stay online.
  • Upgrade or isolate every installation on PHP 8.1 or older, since those branches receive no official fix from the PHP project.
  • Check for the latest PHP security release after patching, and check again regularly.

Frequently asked questions

What is PHP2Shell?

PHP2Shell is the name researchers use for two critical vulnerabilities in PHP itself, tracked as CVE-2026-109618 and CVE-2026-109619. Both can allow unauthenticated remote code execution on PHP installations serving web requests, and the PHP project rated each one 9.2 out of 10 for severity.

Does the flaw affect my WordPress site?

Probably, if your site runs on an unpatched version of PHP. WordPress is built on PHP, so a WordPress site inherits the vulnerability of the PHP version underneath it. Check the version in WordPress Site Health or ask your host.

Which PHP versions are safe?

PHP 8.5.12, 8.4.27, 8.3.36 and 8.2.35, released on 21 October 2026, fix both flaws, as do newer releases on those branches. PHP 8.1 and older have no official fix, although minimal source backports exist.

What does unauthenticated remote code execution mean?

It means an attacker can attempt to run their own code on an affected server over the internet without needing a username, password or account. Anyone who can reach the server can try it.

Why did some government websites go offline?

They were taken offline deliberately as a precaution, not because they had been breached. Dutch parliament and cyber agency websites and Finnish government web services went offline ahead of the fix so they could be patched safely.

How do I know if my site was attacked?

There is no single check. Review server logs for unusual requests around and after 21 October 2026, look for unexpected files, and ask your host whether they detected exploitation attempts. If you find evidence of compromise, rebuild from a known-good state and rotate credentials.

The bottom line

The PHP2Shell episode is a reminder of how much of the internet rests on a small number of shared foundations. PHP is not a fashionable technology and it is not a new one, but it runs an estimated 70 per cent of websites, and a flaw in the language itself became, overnight, a flaw in millions of servers. Organisations that patched promptly protected themselves; the ones that did not are still exposed.

For most site owners the work is unglamorous but short: find your PHP version, update it, restart the server process, and check that the update took. The lesson is the same. Software you never think about still needs updating, and the cost of checking is far smaller than the cost of discovering, weeks later, that an attacker checked first.

on this page