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: PHP2Shell Fix, PHP 8.2 End of Life 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:
CVE-2026-115560 is the second remote code execution bug announced in October. It sits in PHP's session upload progress feature, and it is separate from PHP2Shell: the October 21 releases (8.5.12, 8.4.27, 8.3.36 and 8.2.35) don't cover it.
The interim fix: turn off session upload progress until the CVE-2026-115560 patch is installed. Most sites only use this feature for upload progress bars, so switching it off rarely changes anything visitors notice. Set this in php.ini:
session.upload_progress.enabled = OffInterim only. This setting lowers risk while you wait for the patch; it does not replace patching. Keep applying the PHP2Shell fixes as well.
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.
PHP 8.2 stops receiving security updates on December 31, 2026. PHP 8.2.35 includes the PHP2Shell fixes, so patch to it now, but treat it as a bridge rather than a destination. After December 31, new vulnerabilities in 8.2 won't get official fixes, which is exactly where PHP 8.1 users are with PHP2Shell today.
What changes for you after that date:
Our advice: upgrade from PHP 8.2 before year end. For most production sites, PHP 8.4 is the recommended target, with security support until December 31, 2028.
PHP 8.6 arrives November 19, 2026, and turns on stricter session cookies by default. That is good for security, but it can quietly break logins and checkouts.
Where to look first:
Our advice is to test PHP 8.6 on staging now, walk through login, checkout and payment callbacks, and plan to adopt it in early 2027 once your plugins and packages support it. Don't move production on release day.
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.
We do services across the globe, including the cities below. DESSS patches and upgrades PHP on Windows and Linux servers wherever your sites are hosted.
Texas TX
Austin · Houston · San Antonio · Dallas · Fort Worth · El Paso · Arlington · Corpus Christi · Plano · Lubbock
Alabama AL
Montgomery · Huntsville · Birmingham · Mobile · Tuscaloosa · Hoover
Alaska AK
Juneau · Anchorage · Fairbanks · Sitka · Ketchikan · Wasilla
Arizona AZ
Phoenix · Tucson · Mesa · Chandler · Scottsdale · Glendale · Tempe · Flagstaff
Arkansas AR
Little Rock · Fayetteville · Fort Smith · Springdale · Jonesboro · Rogers
California CA
Sacramento · Los Angeles · San Diego · San Jose · San Francisco · Fresno · Long Beach · Oakland · Bakersfield · Anaheim
Colorado CO
Denver · Colorado Springs · Aurora · Fort Collins · Lakewood · Boulder · Pueblo
Connecticut CT
Hartford · Bridgeport · New Haven · Stamford · Waterbury · Norwalk
Delaware DE
Dover · Wilmington · Newark · Middletown · Smyrna
Florida FL
Tallahassee · Jacksonville · Miami · Tampa · Orlando · St. Petersburg · Fort Lauderdale · Hialeah
Georgia GA
Atlanta · Augusta · Columbus · Savannah · Athens · Macon
Hawaii HI
Honolulu · Hilo · Kailua · Pearl City · Kahului
Idaho ID
Boise · Meridian · Nampa · Idaho Falls · Pocatello · Coeur d’Alene
Illinois IL
Springfield · Chicago · Aurora · Naperville · Joliet · Rockford · Peoria
Indiana IN
Indianapolis · Fort Wayne · Evansville · South Bend · Carmel · Bloomington
Iowa IA
Des Moines · Cedar Rapids · Davenport · Sioux City · Iowa City · Waterloo
Kansas KS
Topeka · Wichita · Overland Park · Kansas City · Olathe · Lawrence
Kentucky KY
Frankfort · Louisville · Lexington · Bowling Green · Owensboro · Covington
Louisiana LA
Baton Rouge · New Orleans · Shreveport · Lafayette · Lake Charles · Monroe
Maine ME
Augusta · Portland · Lewiston · Bangor · South Portland · Auburn
Maryland MD
Annapolis · Baltimore · Frederick · Rockville · Gaithersburg · Hagerstown
Massachusetts MA
Boston · Worcester · Springfield · Cambridge · Lowell · Brockton
Michigan MI
Lansing · Detroit · Grand Rapids · Warren · Sterling Heights · Ann Arbor · Flint
Minnesota MN
St. Paul · Minneapolis · Rochester · Duluth · Bloomington · Brooklyn Park
Mississippi MS
Jackson · Gulfport · Southaven · Hattiesburg · Biloxi · Tupelo
Missouri MO
Jefferson City · Kansas City · St. Louis · Springfield · Columbia · Independence
Montana MT
Helena · Billings · Missoula · Great Falls · Bozeman · Butte
Nebraska NE
Lincoln · Omaha · Bellevue · Grand Island · Kearney
Nevada NV
Carson City · Las Vegas · Henderson · Reno · North Las Vegas · Sparks
New Hampshire NH
Concord · Manchester · Nashua · Dover · Rochester · Portsmouth
New Jersey NJ
Trenton · Newark · Jersey City · Paterson · Elizabeth · Camden · Atlantic City
New Mexico NM
Santa Fe · Albuquerque · Las Cruces · Rio Rancho · Roswell
New York NY
Albany · New York City · Buffalo · Rochester · Yonkers · Syracuse
North Carolina NC
Raleigh · Charlotte · Greensboro · Durham · Winston-Salem · Fayetteville · Wilmington · Asheville
North Dakota ND
Bismarck · Fargo · Grand Forks · Minot · West Fargo
Ohio OH
Columbus · Cleveland · Cincinnati · Toledo · Akron · Dayton
Oklahoma OK
Oklahoma City · Tulsa · Norman · Broken Arrow · Edmond · Lawton
Oregon OR
Salem · Portland · Eugene · Gresham · Hillsboro · Bend · Medford
Pennsylvania PA
Harrisburg · Philadelphia · Pittsburgh · Allentown · Erie · Reading · Scranton
Rhode Island RI
Providence · Warwick · Cranston · Pawtucket · Newport
South Carolina SC
Columbia · Charleston · North Charleston · Greenville · Rock Hill · Myrtle Beach
South Dakota SD
Pierre · Sioux Falls · Rapid City · Aberdeen · Brookings
Tennessee TN
Nashville · Memphis · Knoxville · Chattanooga · Clarksville · Murfreesboro
Utah UT
Salt Lake City · West Valley City · Provo · West Jordan · Orem · Ogden · St. George
Vermont VT
Montpelier · Burlington · South Burlington · Rutland · Barre
Virginia VA
Richmond · Virginia Beach · Norfolk · Chesapeake · Arlington · Newport News · Alexandria
Washington WA
Olympia · Seattle · Spokane · Tacoma · Vancouver · Bellevue · Everett
West Virginia WV
Charleston · Huntington · Morgantown · Parkersburg · Wheeling
Wisconsin WI
Madison · Milwaukee · Green Bay · Kenosha · Racine · Appleton
Wyoming WY
Cheyenne · Casper · Laramie · Gillette · Rock Springs
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.