PHP2Shell, a second session bug, PHP 8.2 end of life and PHP 8.6: what changed in October and November 2026 and a practical upgrade plan.

Home › News › PHP Upgrade 2026: What Just Happened, Why It Matters, and How to Upgrade Safely
By the DESSS Team | Updated November 2026
If you manage a website or web application built on PHP, October 2026 was probably a stressful month. In the space of three days, the PHP project shipped emergency security fixes, researchers published working exploits, and a second remote code execution bug was announced. If you haven't checked your servers yet, this article is your nudge.
We've spent the last few weeks helping clients patch, test and upgrade PHP across Windows and Linux servers. Below, we've pulled together what we've learned: what went wrong, which versions are safe, and a practical plan you can follow (or hand to us).
Both bugs are rated critical, with a CVSS v4.0 score of 9.2. In plain terms, someone can send a specially crafted web request to your site and take control of the server behind it.
The PHP team released fixed versions on October 21, 2026: 8.5.12, 8.4.27, 8.3.36 and 8.2.35. Exploit code was public within days, so this isn't a theoretical risk.
PHP2Shell shows exactly what "end of life" means. A fix exists, but if you're on PHP 8.1, 8.0 or 7.x, it isn't for you. Old PHP also blocks updates to WordPress plugins, Laravel, Drupal and Magento, and it tends to fail compliance checks like PCI DSS.
Upgrading isn't just a version bump. A few changes that regularly trip people up:
For most production sites today, we recommend PHP 8.4. Choose 8.5 if your plugins and packages already support it.
| PHP version | Status (Nov 2026) | Security support ends | PHP2Shell fixed? | Our advice |
|---|---|---|---|---|
| 8.6 | Releasing Nov 19, 2026 | Dec 31, 2030 (expected) | Yes | Test on staging; adopt in early 2027 |
| 8.5 | Active support | Dec 31, 2029 | Yes (8.5.12) | Good target if dependencies support it |
| 8.4 | Active support | Dec 31, 2028 | Yes (8.4.27) | Recommended target |
| 8.3 | Security fixes only | Dec 31, 2027 | Yes (8.3.36) | Patch now, plan to upgrade in 2027 |
| 8.2 | Security fixes only | Dec 31, 2026 | Yes (8.2.35) | Upgrade before year end |
| 8.1 and older | End of life | Already ended | No official fix | Upgrade immediately |
Each PHP release gets two years of bug fixes, then two years of security-only fixes. You can always confirm current dates on php.net.
The vulnerability is the same everywhere, but the upgrade experience is very different.
On Linux, a package manager does most of the work. The catch is that updating packages doesn't restart running PHP-FPM workers, so a server can look patched while still running the old code. Distribution versions also lag behind, and each PHP version needs its own set of extensions.
On Windows, upgrading is hands-on. You download a new build, pick the right type (Non-Thread Safe for IIS, Thread Safe for Apache), install the right Visual C++ runtime, update IIS paths and recycle the app pool. Miss one step and the site returns a 500 error.
We've written a dedicated guide for each platform, plus one on how upgrades affect database connections:
Think of this as two jobs. Patching within your current branch (for example, 8.3.x to 8.3.36) is urgent and low risk. Moving to a new branch (8.1 to 8.4) is a small project that deserves proper testing.
We've been building and maintaining PHP applications for more than two decades, from WordPress and Joomla sites to Magento stores and custom Laravel platforms. Here's how we can take this off your plate:
Explore our Web Development and Custom Application Development services to see the full range of PHP work we do.
No two environments are the same, so we don't do one-size-fits-all pricing. Tell us a little about your setup and we'll come back with a clear plan and a quote built around it:
Talk to a DESSS PHP specialist. With PHP 8.2 reaching end of life on December 31, now is the right time to plan.
If it runs PHP 5.4 through 8.5.11 and hasn't been updated since October 21, 2026, yes. Check your version and make sure PHP was restarted after updating.
There's no official fix for 8.1. Unofficial patches exist, but they're stopgaps. The real fix is moving to 8.2 or newer, ideally 8.4.
Not on release day. Test it on staging now and move production once your plugins and packages support it.
A security patch can take a few hours. A major version jump on a custom application can take days to weeks, depending on the code and how well it's tested.
It's more manual, because you manage builds, runtimes and IIS settings yourself. The code changes are the same on both.
The information in this article is provided for general informational and educational purposes only. It reflects publicly available information as of November 4, 2026. PHP versions, support dates, security advisories and third-party software change often, so always confirm details with official sources such as php.net and your software vendors before making changes.
This article is not professional, legal or security advice, and following these steps does not guarantee protection against every vulnerability or compatibility issue. Always back up your systems and test upgrades in a staging environment before applying them to production. DESSS, Inc. is not liable for any loss, damage or downtime resulting from the use of this information.
Product names and trademarks mentioned (including PHP, Microsoft, Windows, IIS, SQL Server, Oracle, MySQL, MariaDB, PostgreSQL, Ubuntu, Debian, Red Hat, cPanel and Plesk) belong to their respective owners and are used for identification only. Links to third-party sources do not imply endorsement. Please also see the DESSS Disclaimer and Privacy Policy.
News and platform guides from the DESSS team on PHP2Shell, PHP 8.2 end of life and safe upgrades.

PHP Upgrade on Windows Server: IIS and Apache Impact, Fixes and Best Practices

PHP Upgrade on Linux Server: Impact, Fixes and Best Practices

How PHP Upgrades Affect Direct Database Connectivity (MySQL, SQL Server, Oracle and PostgreSQL)
Tell us about your PHP versions, servers and applications. A DESSS PHP specialist will come back with a tailored upgrade plan and quote.