Insights

Critical PHP Vulnerabilities: Is It Time to Review Your Legacy Website?

What the October 2026 PHP security releases mean for WordPress, Drupal and custom PHP sites, why prompt updates matter, and when a vulnerability is, and isn’t, a reason to migrate.

Nicholas Finley-Day · 22 October 2026

On 21 October 2026 the PHP project released PHP 8.5.12, 8.4.27, 8.3.36 and 8.2.35. These are security releases that fix two critical vulnerabilities in PHP itself, CVE-2026-109618 and CVE-2026-109619. Both are rated 9.2 under CVSS v4.0, and both can allow unauthenticated remote code execution: under the right conditions, someone with no account on your site could run their own code on your server.

According to the PHP security advisory, all PHP installations that serve web requests are at risk, including PHP-FPM, Apache with mod_php, php-cgi, FrankenPHP and LiteSpeed. That covers almost every WordPress, Drupal and custom PHP website.

This article covers what to do now, and then a broader question these events tend to raise: is this a sign that your platform needs replacing? Usually, it isn’t.

What to do now

These are flaws in the PHP runtime, not in WordPress or Drupal. Updating your CMS core, plugins or modules will not fix them. The version of PHP running on your server needs updating.

  • Find out which PHP version your site runs in production. Include staging environments, internal tools and anything else exposed to the internet.
  • Update to a fixed release (8.5.12, 8.4.27, 8.3.36 or 8.2.35), or install your Linux distribution’s patched package. Distributions received the fixes in advance, and their packages often keep the original version number with the fix backported, so check your vendor’s security notice rather than relying on the version string alone.
  • If you use managed hosting, ask your host whether they’ve applied the update, and when.
  • If you can’t update straight away, the PHP advisory lists temporary configuration changes. The PHP project is clear that these reduce exposure to specific attack paths but do not make an installation safe. Updating is the only complete fix.

The UK’s National Cyber Security Centre and the US Cybersecurity and Infrastructure Security Agency have both published guidance. They recommend prioritising internet-facing systems, and if a system can be neither updated nor mitigated, considering taking it offline until it can be. The NCSC also advises checking for signs of compromise on any system you can’t update immediately.

Why prompt updates matter

Once a fix is published, the details of the vulnerability are effectively public too. Attackers can study the patch, and automated scanning for unpatched servers tends to start soon after. The period after a security release is when an unpatched site is most exposed, not least because the attempts are automated and indiscriminate. A small brochure site is as likely to be probed as a large one.

Most organisations don’t get caught out by a lack of information. They get caught out by a platform that is hard to update: an environment nobody is sure how to rebuild, a server that hasn’t been touched in years, or a hosting arrangement where nobody knows who is responsible for the runtime.

Unsupported PHP versions and ageing dependencies

PHP 8.1 and older no longer receive security updates from the PHP project. Given the severity of these issues, the PHP security team did provide minimal source backports for PHP 7.4, 8.0 and 8.1, but that was an exception for people building PHP from source, not ongoing support. PHP 8.2 reaches end of life on 31 December 2026, so sites on 8.2 should plan an upgrade now, not only apply this patch.

Running an unsupported version is rarely a deliberate choice. More often, something prevents the upgrade:

  • A plugin, module or theme that hasn’t been maintained and breaks on newer PHP versions
  • A CMS version that is itself out of support. Drupal 7, for example, reached end of life in January 2025
  • Custom code written against PHP behaviour that has since changed
  • A server or hosting setup that can’t easily run a newer version

Those are the real risks. Each one means that the next critical vulnerability will be just as difficult to respond to as this one.

A critical vulnerability is not, on its own, a reason to migrate

WordPress and Drupal are mature, actively maintained platforms, and PHP itself is well supported. Vulnerabilities are found in every language and framework. What matters is whether your platform can be kept up to date with reasonable effort.

Rebuilding a website in response to a single security advisory is usually the wrong decision. A migration takes months, while a security fix needs to be applied in days. The first step is always to patch what you have.

When upgrading the existing platform is enough

Staying on WordPress or Drupal is often the right call when:

  • The site runs a supported CMS version, or can be upgraded to one without a rebuild
  • The plugins or modules you rely on are actively maintained
  • The content model and editorial workflow still fit how the business works
  • Performance problems have identifiable causes, such as hosting, caching or front-end weight
  • Someone owns the platform and has the time to keep it updated

In that situation, a targeted upgrade, together with some cleanup and a clear maintenance routine, is usually a better investment than a new platform.

When a headless CMS or modern architecture might be appropriate

A bigger change starts to make sense when:

  • The upgrade path is effectively a rebuild anyway, as with Drupal 7 sites or heavily customised codebases tied to old PHP versions
  • The cost and risk of routine maintenance keep rising, and the work keeps being postponed
  • Content needs to reach several channels, such as a website, an app and partner integrations
  • The front end needs performance or flexibility the current architecture can’t provide
  • Your team is better placed to maintain a different stack over the long term

A headless CMS such as Payload or Sanity paired with a framework such as Next.js can work well in those cases, but it isn’t free. You take on two systems instead of one, previews and editorial workflows need deliberate design, and someone still has to keep the new stack up to date. The aim is a platform that is easier to maintain, not just a newer one.

Migrating without losing SEO, content or integrations

If a migration is the right answer, most of the risk lies in what gets lost along the way. A careful migration typically includes:

  • A full URL inventory and redirect map, so every indexed page and inbound link has a permanent (301) redirect to its new equivalent
  • Metadata carried across, including titles, descriptions, canonical URLs and structured data
  • Scripted, repeatable content migration, validated against the source rather than copied by hand
  • An inventory of integrations, such as forms, CRM, analytics, search and payment, and of who depends on each one
  • A staged launch with monitoring, watching crawl errors, indexing and traffic in Google Search Console for the weeks after go-live

Many migrations can also be done incrementally, moving one section of the site at a time rather than switching everything over at once, which keeps risk and disruption low.

Where to start

Apply the PHP update first. Then, if the process was harder than it should have been, or you’re not sure your platform could handle the next one, it’s worth taking a considered look at the options. The answer may well be a targeted upgrade rather than a rebuild.

I offer a fixed-scope Legacy Platform Assessment that covers exactly this: dependencies, security and maintenance risks, an upgrade versus migration recommendation, and a prioritised roadmap. You can read more about CMS migration and platform modernisation.