The October 2026 PHP flaws reach every website that runs on PHP

In October 2026 two serious flaws were fixed in PHP, the software that runs behind most websites. Only an update to PHP itself fixes them. This is what they mean for your site, and what to ask whoever looks after it.

68.8%

of websites run on PHP, counting those whose server language can be identified. W3Techs, 11 November 2026.

Quick scan

  • Attackers are using the flaws. The US cyber security agency CISA put both on its list of exploited flaws on 26 October and told organisations to update immediately. On 28 October it added a Linux flaw that attackers combine with them to take full control of a server.
  • Not every site is under attack. The security firm Sansec says mass attacks are less likely than first expected, and we found no published count of hacked sites.
  • The fix is in PHP 8.5.12, 8.4.27, 8.3.36 and 8.2.35. PHP 8.1 and older have no official fixed release, and PHP 8.2 stops getting security fixes on 31 December 2026.
  • Ask your host or developer which version of PHP your site runs, whether it has the fix, and whether anything else you run uses PHP.

On 21 October 2026 the people who maintain PHP fixed two serious flaws in it. PHP is the programming language that runs on the server behind most websites, including every WordPress site.

The flaws can let a stranger run their own commands on a web server without logging in. Security people call this remote code execution.

The fix is an update to PHP itself. Updating WordPress, or whichever system your site is built with, does not fix it.

This article explains what happened, which websites it reaches, how worried to be, and four questions to ask whoever looks after your site.

Two flaws in PHP were fixed on 21 October

Here is what happened, in order.

  • 21 October. The PHP project published fixes for two flaws. It rates both Critical, 9.2 out of 10 on the scale the security industry uses to score flaws (CVSS version 4).
  • 23 October. The project announced a third, related flaw. It calls this one an “unlikely” way in, because it needs an unusual combination of settings and code. A fix will come with the next regular release. Until then the project suggests switching off a little-used feature called session upload progress.
  • 26 October. The US Cybersecurity and Infrastructure Security Agency (CISA) added both flaws to its list of flaws that attackers are known to be using. Its alert says they “affect all PHP installations serving web requests” and tells organisations to update immediately. US federal agencies were given until 29 October.
  • 28 October. CISA added a flaw in Linux, the operating system on many web servers, to the same list. Attackers combine it with the two PHP flaws to plant their own code and run commands with full control of the server.

The project confirmed this on one common set-up, which is PHP running inside the Apache web server (known as mod_php) with its settings left as they come. There, an attacker with no login can run their own code on the server, with the same access the web server itself has.

Changing settings is not enough. For the first flaw, the project says updating is “the only complete mitigation”, which means the only full fix. For the second, it says no change of settings fully fixes it. Changing settings can reduce the risk. It does not remove it.

Security writers call the pair PHP2Shell. Their official reference numbers are CVE-2026-109618 and CVE-2026-109619. The third flaw is CVE-2026-115560 and the Linux flaw is CVE-2026-46300. Your host or developer may ask for them.

Most well-known website systems run on PHP

W3Techs, which surveys the web every day, finds PHP on 68.8 per cent of the websites whose server language it can identify (11 November 2026).

WordPress, Drupal, Joomla, Craft CMS and Adobe Commerce all run on PHP, and each says so in its own documents:

  • WordPress recommends PHP 8.3 or greater.
  • Drupal says it is designed to work with PHP.
  • Joomla 6 needs PHP 8.3.0 at the least.
  • Craft CMS, which is sold under its own licence, describes itself as “a PHP application”.
  • The current release of Adobe Commerce lists PHP 8.5.

It makes no difference whether a system is free or paid, or built by a company or by volunteers. The flaws sit in the language underneath all of them.

Sansec, a security firm that watches online shops, reports that researchers were able to run code without a login on recent versions of Magento, WordPress, Drupal and Joomla. Its advice to shop owners is that the flaws cannot be fixed from inside the shop’s own code.

The flaws are in PHP. WordPress’s own code is not where they sit, so we do not treat this as a WordPress problem. WordPress is one of many systems standing on the same ground.

Attacks have been seen, though not on every site

There are reasons to act.

  • CISA listing the flaws as exploited means attacks have been seen.
  • Sansec reports attack attempts hours before the fix was public.
  • On 29 October Palo Alto Networks, which makes firewalls, said the flaws were being used against the management pages of its own firewalls where those pages had been left open to the internet. The attackers combined them with a Linux flaw, in the same way, to take full control.

Updating PHP closes the way in. Updating Linux closes the route to full control. A host should have done both.

There are also reasons not to panic.

  • The same Sansec report says mass exploitation is “less likely than we first expected”, because an attack needs specific knowledge of the target and particular server settings.
  • Sansec cites a researcher who found that the published demonstration attacks fail against PHP as it is first installed. They mostly need a second, separate flaw in the website’s own software.
  • Palo Alto Networks counts more than 22.6 million exposed installations as “potentially vulnerable”. That is the firm’s own estimate from data its products collect, and “potentially vulnerable” is a wide net. The firm also withdrew an early report that tied a real break-in to these flaws.

We found no published count of websites that were broken into, and we will not guess one. Not every PHP site is under attack. Updating costs little against the risk of being the exception, and once a fix is public every attacker can study it.

Older versions of PHP have no official fix

PHP comes in numbered versions. The project released the fix for four of them:

  • PHP 8.5, fixed in 8.5.12
  • PHP 8.4, fixed in 8.4.27
  • PHP 8.3, fixed in 8.3.36
  • PHP 8.2, fixed in 8.2.35

A site on any of those versions needs that release or a later one.

PHP 8.1 and older got no fixed release. Sansec reports that the project published the corrected source code for them but no ready-made update, and that some operating system vendors have added the fix to older versions themselves. That is called a backport.

CISA says a system that cannot be updated at once, or that runs PHP 8.1 or earlier, should be taken offline until it is patched or updated.

PHP 8.2 is next. The project stops fixing security flaws in it on 31 December 2026.

Many sites are on old versions. W3Techs puts 25.6 per cent of PHP sites on PHP 7. Another 7.5 per cent are on PHP 5 and 0.1 per cent on PHP 4 (11 November 2026). Added together, that is 33.2 per cent on PHP 7 or older. Its figures do not split PHP 8 into its smaller versions, so the share with no official fix is higher than that.

Four questions to ask this week

Put these to your hosting company or your developer.

  1. Which version of PHP does our website run on? Is it 8.5.12, 8.4.27, 8.3.36, 8.2.35 or a later release, or does it have a fix your hosting company has backported? Has the server’s Linux been updated too?
  2. If it is older than that, what is the plan and the date?
  3. Does anything else we run use PHP, such as a booking system, a separate shop, a forum or an old microsite?
  4. How would you know the next time a flaw like this was announced, and how many days would you take to act?

The answers will tell you more than any reassurance. A host that can tell you its version number and the date it updated has the flaw under control.

A site with no PHP has nothing here to patch

The sites we build are static files, which means finished pages made in advance and served from a network of servers around the world. No PHP runs on the public server. These flaws have nothing to reach, and there is nothing on that side for us to patch when the next one is announced.

That does not remove every risk. The hosting account, the domain, the editor’s sign-in and any PHP system your business runs somewhere else still need attention, and we treat them as part of the job.

If you are staying on WordPress, ask the four questions above and make sure security fixes are applied quickly.

Keep reading

In this topic: 4 of 4
  1. What makes a website fast
  2. What makes a website secure
  3. What makes a website safe for the people who use it
  4. The October 2026 PHP flaws reach every website that runs on PHP

All 4 on this topic

  • PreviousWhat makes a website safe for the people who use itA website can be secure and still be unsafe for the people who use it. A safe site collects nothing it does not need, can be used by anyone, and does what it says. You can check each of those wherever your buyers are.

Sources (15)

  1. RCE via OOM corruption (GHSA-w8hw-w9fx-j79w, CVE-2026-109618) PHP project, 21 October 2026. Accessed 11 November 2026.
  2. RCE via stale global state (GHSA-6wmf-4rv5-p3rp, CVE-2026-109619) PHP project, 21 October 2026. Accessed 11 November 2026.
  3. Critical Vulnerabilities in PHP Require Immediate Patching US Cybersecurity and Infrastructure Security Agency (CISA), 21 October 2026, revised 26 October 2026. Accessed 11 November 2026.
  4. Known Exploited Vulnerabilities Catalog (entries CVE-2026-109618, CVE-2026-109619 and CVE-2026-46300) US Cybersecurity and Infrastructure Security Agency (CISA), Catalog version 2026.11.10. Accessed 11 November 2026.
  5. News archive 2026: Security advisory, critical remote code execution vulnerabilities (21 October) and Informational advisory, session upload progress (23 October) PHP project, 21 and 23 October 2026. Accessed 11 November 2026.
  6. Supported versions PHP project, Live. Accessed 11 November 2026.
  7. Usage statistics and market share of PHP for websites W3Techs, 11 November 2026. Accessed 11 November 2026.
  8. PHP2Shell: PHP RCE (CVE-2026-109618, CVE-2026-109619) Sansec (vendor), 21 October 2026. Accessed 11 November 2026.
  9. Threat Brief: Critical Vulnerabilities in PHP: CVE-2026-109618, CVE-2026-109619 Palo Alto Networks, Unit 42 (vendor), 21 October 2026, updated 29 October 2026. Accessed 11 November 2026.
  10. WordPress requirements WordPress.org, Last modified 7 May 2026. Accessed 11 November 2026.
  11. PHP requirements (Drupal) Drupal.org, Last updated 4 August 2026. Accessed 11 November 2026.
  12. Technical requirements for Joomla 6.x Joomla Manual, Live. Accessed 11 November 2026.
  13. Craft CMS requirements Craft CMS, Live. Accessed 11 November 2026.
  14. Craft CMS licence Pixel & Tonic, Inc., Live. Accessed 11 November 2026.
  15. System requirements (Adobe Commerce and Magento Open Source) Adobe, Live, release 2.4.9. Accessed 11 November 2026.