6 min read

Is Your PHP Version Still Getting Security Fixes? What PHP2Shell Showed Us

The PHP2Shell vulnerabilities, fixed in October 2026, highlighted the importance of running a supported PHP version. This guide outlines which versions still receive security fixes and the recommended upgrade path ahead of PHP 8.2's end of life.

php security fixphp security fix
Share
Table of Contents
What happened with PHP in October 2026?
Which platforms run on PHP?
What happens when PHP 8.2 reaches end of life?
Which PHP version should you upgrade to?
What changes when you upgrade from PHP 8.2 to 8.4?
How do you upgrade PHP safely?
What else is worth doing during a PHP upgrade?
What should you do next, based on your PHP version?

As of November 2026, PHP 8.2, 8.3, 8.4 and 8.5 receive security fixes. PHP 8.1 and earlier versions are no longer supported, and security support for PHP 8.2 ends on December 31, 2026. For most organizations, PHP 8.4 is the recommended upgrade path, with security support through December 31, 2028.

The events of October 2026 illustrate why this distinction matters. On October 21, the PHP team released emergency fixes for PHP2Shell (CVE-2026-109618 and CVE-2026-109619), two critical vulnerabilities that allow unauthenticated remote code execution. Organizations on supported versions resolved the issue with a standard patch release. Systems running PHP 8.1 or earlier received no official fix.

Because the flaws sit in PHP rather than in any one application, they reach WordPress, WooCommerce, Magento, Drupal and Laravel sites alike. Updating WordPress and its plugins doesn't cover this one; the PHP runtime itself needs the update.

The encouraging part: staying patchable mostly comes down to staying current. For most applications, moving from 8.2 to 8.4 takes weeks of focused effort, not months, and the time goes into dependencies rather than your own code.

What happened with PHP in October 2026?

  • October 21: PHP shipped fixes for CVE-2026-109618 (memory corruption during out-of-memory handling) and CVE-2026-109619 (internal state that outlives its memory). Both are rated 9.2 under CVSS v4.0, and every version from PHP 5.4 through 8.5.11 was affected. Details became public before the release, and proof-of-concept code began circulating soon after. (CERT-EU, Google Cloud)

  • October 23: PHP disclosed a separate issue, CVE-2026-115560, in session upload progress. PHP describes it as an unlikely attack path that needs a specific configuration. Its stopgap is one setting, session.upload_progress.enabled = 0, until the fix ships in the next regular release.

  • Since then: security researchers report PHP2Shell being exploited in the wild, so patching remains the top priority for anyone who hasn't yet.

If a server hasn't been updated since October 21, start there, before thinking about a version upgrade.

Which platforms run on PHP?

PHP runs 70.8% of all websites whose server-side language is known. You may know it by the platform name instead:

  • WordPress, which powers 41.1% of all websites 

  • WooCommerce, the store layer on about one in five WordPress sites

  • Magento Open Source and Adobe Commerce, behind many mid-market and B2B stores

  • Drupal and Joomla, common in government, education and publishing

  • Laravel and Symfony, the frameworks behind a lot of custom portals, SaaS products and internal tools

  • Moodle and MediaWiki, if you run a learning platform or an internal wiki

If one of those is yours, this deadline is yours too. And you'd have company: about 62% of WordPress sites that report their version still run PHP 8.2 or older. 

What happens when PHP 8.2 reaches end of life?

Nothing switches off on January 1. Your site keeps loading, your checkout keeps working. What changes is the PHP team stops shipping security fixes for 8.2, so you lose the safety net that catches problems found later.

PHP2Shell wasn't a one-off. In June 2024, CVE-2024-4577 (rated 9.8 out of 10) was patched in PHP 8.1, 8.2 and 8.3 within days, while PHP 8.0 and 7.x stayed unpatched because they had already retired. Both times, the difference between a quick update and a bigger problem came down to one thing: whether the version was still supported.

That's the whole argument for staying on a supported version: when something comes up, the fix is a Tuesday-afternoon update instead of a project.

There are practical reasons too. Hosts plan around these dates; WP Cloud, for example, retires PHP 8.2 on December 15, 2026. Plugin and package authors focus their testing on supported versions. Frameworks move their minimums forward, and Laravel 13 already needs PHP 8.3. And if you sell to larger customers, their security questionnaires will ask which versions you run.

Which PHP version should you upgrade to?

Our recommendation for most teams is PHP 8.4. It's supported until December 31, 2028, and the plugin and framework world has had two years to settle in with it.

PHP version
Released
Security support until
Our take
8.1
Nov 2021
Dec 31, 2025
Already retired
8.2
Dec 2022
Dec 31, 2026
Retiring this year
8.3
Nov 2023
Dec 31, 2027
Fine, but you'll be back here next year
8.4
Nov 2024
Dec 31, 2028
Our default recommendation
8.5
Nov 2025
Dec 31, 2029
A good pick if your dependencies support it
8.6
Nov 19, 2026
Dec 31, 2030
Exciting, and worth a test branch for now

PHP 8.6 arrives on November 19, and it's a genuinely nice release to look forward to. We'd still give it a few months in staging before it carries production traffic, so your upgrade plan doesn't depend on every package catching up at once.

What changes when you upgrade from PHP 8.2 to 8.4?

The language change itself is usually the easy part. Most of the effort goes into dependencies, the plugins, packages and SDKs your code leans on.

Going from 8.2 to 8.4, a few things tend to come up:

  • Parameters written as function f(Type $x = null) are deprecated in 8.4. Older codebases have plenty of them, and tools fix most automatically.

  • IMAP, OCI8, PDO_OCI and Pspell moved out of core in 8.4. If your app reads a mailbox or talks to Oracle, you'll install them separately from PECL.

  • Dynamic properties have been deprecated since 8.2, so any warnings you set aside earlier are worth clearing now.

Coming from 7.x or 8.0 is a longer trip, but a well-mapped one. PHP 8.0 changed how strings and numbers compare and turned many warnings into errors. PHP 8.1 started flagging null values passed to built-in functions, which can make the logs noisy in a mature app until it's cleaned up.

The biggest variable is rarely your own code. It's that one Composer package whose maintainer moved on, or a plugin nobody on the team remembers installing. Finding those early is what keeps the timeline relaxed.

How do you upgrade PHP safely?

For a typical mid-sized PHP application, this is a few weeks of steady work. Getting the order right matters more than any single tool.

  1. Take stock. List every server, container and hosting plan running PHP, with its version. Almost everyone finds one more than they expected, and that's fine.

  2. Check your dependencies. Confirm each plugin and Composer package supports 8.4, and line up replacements for any that don't. This step sets the pace for everything else.

  3. Let the tools do the heavy lifting. Static analysis (PHPStan, PHPCompatibility) finds most version issues, and Rector can fix many of them in bulk.

  4. Test on both versions. Add PHP 8.4 to your CI pipeline next to the current version, so every change is checked against both until you switch.

  5. Switch in steps. Staging first, then your lowest-risk production service, with a rollback you've actually tried.

If the calendar is tight, some hosts and vendors offer extended security support for retired versions. It's a reasonable bridge to buy a few months, as long as it has an end date.

What else is worth doing during a PHP upgrade?

While the code is open and the tests are running, two small additions pay off for years.

The first is writing down the business logic. Older PHP systems often hold pricing rules, approval steps and data habits that live nowhere else. Capturing them now makes every future data migration smoother.

The second is opening up the data. If the application holds orders, customers or inventory, adding clean APIs during the upgrade is what makes AI features possible later. In a Rackspace survey of 1,420 IT leaders, 80% said they'll only benefit from AI if they modernize their legacy apps and data. (Rackspace) It's the Data and Integration stage of our Intelligent Systems Lifecycle, and an upgrade is a natural place to start it.

What should you do next, based on your PHP version?

Your next step depends on which version and patch release you're on:

  • If it shows 8.5.12, 8.4.27, 8.3.36, 8.2.35 or newer, you have the PHP2Shell fixes.
  • If it shows an older patch on 8.2 to 8.5, update to the latest patch release today.
  • If it shows any 8.2 release, plan your move to 8.4 before December 31, 2026. On 8.1 or older, make that move your first priority, since those versions got no PHP2Shell fix.

Every setup is a little different, so the simplest way to know where you stand is to talk it through. Share your PHP version and the main plugins or packages you rely on, and we'll help you see what your upgrade involves.

Get your PHP upgrade plan