What is End-of-Life PHP After PHP2Shell?
End-of-life PHP is a release branch that no longer receives official updates, including security releases. PHP 7.4, 8.0 and 8.1 are end of life and received only source-level backports for PHP2Shell, PHP 7.3 and older received no fix, and PHP 8.2 reaches end of life on 31 December 2026.
PHP2Shell received official releases only for PHP 8.2, 8.3, 8.4 and 8.5. PHP 7.4, 8.0 and 8.1 got source-only backports, and PHP 7.3 and older received nothing at all. This is not a niche problem: about 79 percent of versioned PHP services observed by Modat run unsupported branches, PHP 7.4 is the single most common branch, and PHP 8.2 itself reaches end of life on 31 December 2026. You have six realistic options: build the backport from source, use a distribution or commercial extended-support vendor, upgrade the branch, isolate the system, retire it, or migrate off PHP — and the right choice depends on your version, your test coverage and what the application actually does.
The PHP Support Lifecycle
Each PHP release branch gets two years of active support with bug and security fixes, then two years of security-only fixes, then reaches end of life; under the current policy support ends on 31 December of the relevant year. As of 23 October 2026, branches 5.x through 7.3 are long gone, PHP 7.4 lost security support in November 2022, PHP 8.0 in November 2023, and PHP 8.1 on 31 December 2025. PHP 8.2 receives security fixes only until 31 December 2026, PHP 8.3 until 31 December 2027, PHP 8.4 is active until 31 December 2028, and PHP 8.5 until 31 December 2029. End of life means no more official releases, even for critical vulnerabilities, and PHP2Shell is exactly what that looks like in practice.
What PHP2Shell Means for Each Branch
Wiz says every PHP version from the past decade, back to 5.4, is affected by at least one of the PHP2Shell bugs, and the session upload-progress feature involved in CVE-2026-109618 has existed since PHP 5.4.0 and is on by default. Branch by branch: PHP 8.2 has an official fix in 8.2.35, so upgrade now and plan for the December end of life; PHP 8.1, 8.0 and 7.4 have source backports only, so you must build from source, take a distribution or vendor patch, or upgrade; PHP 7.3 and older have no fix, so upgrade, isolate, retire or migrate. Older branches are not safe because they are old — reporting is clear that unsupported branches should not be assumed safe.
Warning
PHP 7.3 and older received no fix at all. Isolate those systems now instead of waiting for a release that will never come.
How Many Sites Run End-of-Life PHP
Internet scans give a clear picture. Modat finds about 79 percent of versioned PHP services on unsupported branches, with PHP 7.4 alone accounting for 878,761 services, more than any other branch. VirusTotal found that of about 1.1 million IP addresses disclosing a PHP version, roughly 758,000 run end-of-life branches from 5.4 to 8.1, against about 272,000 on supported branches, and PHP 7.4 alone covers about 187,000 IPs. These figures only count servers that reveal their version, so the true share is higher.
Buying Time: Backports and Extended Support
PHP published minimal source backports for 7.4, 8.0 and 8.1, so you can keep the application unchanged and close these two CVEs, but you then maintain a custom PHP build with its own compile flags, extensions, packaging and updates, it covers only these CVEs, and a build mistake can leave you exposed while you believe you are safe. Treat it as a bridge measured in weeks. Distribution and commercial options do the same work more safely: Ubuntu including Ubuntu Pro and ESM, Debian LTS and Red Hat Enterprise Linux ship backported PHP fixes for the lifetime of the OS release, and the version number may not change, so check the distribution advisory for the CVE IDs. Commercial extended lifecycle support vendors and some managed hosting providers sell patched builds of end-of-life PHP. That buys time for a recurring fee and a vendor dependency, while you still run an outdated platform, which is the right trade when a rushed upgrade would be riskier than paying for time.
Upgrading to a Supported Branch
Upgrading to PHP 8.3, 8.4 or 8.5 is the proper PHP answer, and it is where many teams get stuck. The jump from 7.x to 8.0 brings stricter type juggling, named arguments, removed deprecated functions, match expressions and changed string-to-number comparisons; 8.0 to 8.1 adds enums, readonly and deprecations around passing null to non-nullable internal parameters; 8.1 to 8.2 deprecates dynamic properties and adds readonly classes; and later jumps add more deprecations while framework and package minimums rise. Each jump usually means framework upgrades too, such as several Laravel majors or the effectively complete rewrite from CodeIgniter 3 to 4, plus Composer packages that no longer exist, and WordPress sites may hit plugin and theme incompatibilities. Staying on PHP gives official support until 2027 to 2029, but a large project awaits on untested code, and if you land on 8.2 you would need to upgrade again within weeks. Well-tested applications on modern frameworks are the right candidates, and tools such as Rector and PHPCompatibility for PHP_CodeSniffer automate parts of the work.
Isolate, Retire, or Migrate Off PHP
If you cannot patch quickly, take the system off the internet: put it behind a VPN or zero-trust access with an IP allowlist, serve a static maintenance or information page from a CDN instead, and keep only the integrations you need over private networking. That is what governments in France, Denmark, Finland and the Netherlands did temporarily, and it removes most external exposure immediately, though business use shrinks and insiders or compromised devices can still reach the system. Every end-of-life audit also finds systems nobody needs — old microsites, campaign landing pages, forgotten staging servers, deprecated portals — so archive the data and switch them off, the cheapest security fix available. If a multi-version upgrade, framework rewrites and plugin replacements are unavoidable anyway, consider spending the same effort on a modern stack: WordPress and CMS sites move to Payload CMS on Next.js, and custom PHP apps move to TypeScript and Node.js. Many teams run the sequence of extended support now, migration over the next quarter or two, then decommission.
Choosing Your Path
The decision table cuts the six options down to one combination per situation: a tested PHP 8.2 application upgrades to 8.2.35 now and to 8.4 or 8.5 before 31 December 2026; PHP 8.1 or 8.0 on a healthy tested framework takes a backport or vendor patch now and then upgrades; PHP 7.4 WordPress with many plugins takes a vendor patch or isolation now and migrates to Payload CMS; PHP 7.4 Laravel or CodeIgniter 3 with few tests takes a vendor patch or isolation now and migrates to TypeScript with the strangler fig method; PHP 7.3 or older is isolated immediately, then migrated or retired; and unused or duplicated systems are simply retired. The flowchart below walks the same logic.
flowchart TD
A[EOL PHP system] --> B{Still needed?}
B -->|No| R[Retire]
B -->|Yes| C{Can patch this week? backport / vendor}
C -->|No| I[Isolate now]
C -->|Yes| P[Patch]
I --> D
P --> D{Tests + modern framework?}
D -->|Yes| U[Upgrade to PHP 8.4/8.5]
D -->|No| M[Migrate: Payload CMS or TypeScript]How App Corp Helps
App Corp helps organizations stuck on end-of-life PHP get safe now and modern next. The work starts with an EOL PHP triage lasting days: an inventory of every PHP system and branch, an exposure scorecard, and an immediate isolation and patching plan that includes vendor or backport options. Modernisation then takes one of two paths per vertical: WordPress on end-of-life PHP moves either to a Payload and Next.js starter with content, SEO and redirects migrated, or to a bespoke Payload platform with integrations and a design system; custom PHP on end-of-life PHP moves either to a TypeScript foundation with auth, RBAC, multi-tenancy and billing plus your features ported, or to a re-architecture or strangler-fig migration. Decommission closes the engagement by switching off and removing the old PHP servers so they cannot become tomorrow's breach, all with fixed, outcome-based pricing, senior engineers only, and typical delivery in 8 to 12 weeks.
Sources and references
The PHP Group publishes supported versions at php.net/supported-versions.php and the list of unsupported branches at php.net/eol.php. SOCRadar covered CVE-2026-109618 and CVE-2026-109619 at socradar.io, Recorded Future analysed exploitation at recordedfuture.com, and Wiz Research's original report is at wiz.io/blog/php2shell-php-rce. Brandefense listed the fixed PHP versions at brandefense.io. CNBC reported on government websites going dark at cnbc.com. WordPress documents PHP compatibility at make.wordpress.org/core/handbook/references/php-compatibility-and-wordpress-versions, the PHP manual covers migration from 7.4 to 8.0 at php.net/manual/en/migration80.php, and Rector automates upgrades at getrector.com.
Which end-of-life PHP option fits your situation
| Your situation | Recommended combination |
|---|---|
| PHP 8.2, tested app | Upgrade to 8.2.35 now, then to 8.4 or 8.5 before 31 December 2026 |
| PHP 8.1 or 8.0, healthy framework, tests | Backport or vendor patch now, then upgrade to 8.4 or 8.5 |
| PHP 7.4, WordPress with many plugins | Vendor patch or isolate now, then migrate to Payload CMS |
| PHP 7.4, Laravel or CodeIgniter 3, few tests | Vendor patch or isolate now, then migrate to TypeScript with the strangler fig method |
| PHP 7.3 or older | Isolate immediately, then migrate or retire |
| Unused or duplicated system | Retire it |
Patch what you can this week; when the upgrade path means multiple majors and rewrites, spend that effort on a modern stack instead.
From end-of-life PHP to a supported platform
- 1
Inventory every PHP system
List each application, its PHP branch, SAPI, owner and data classification, including forgotten staging servers and microsites.
- 2
Patch or isolate this week
Apply 8.2.35, a source backport, or a distribution and vendor patch where available; isolate anything on PHP 7.3 or older immediately.
- 3
Retire what nobody needs
Archive the data and switch off unused microsites, campaign pages, staging servers and deprecated portals.
- 4
Score the survivors
Rate test coverage, framework support and exposure to decide which applications are worth upgrading.
- 5
Upgrade or migrate
Move healthy tested apps to PHP 8.4 or 8.5; move multi-version, rewrite-bound apps to Payload CMS or TypeScript.
- 6
Decommission and document
Remove the old PHP servers and record the decisions for auditors, insurers and future incident reviews.
A PHP estate that is patched or isolated immediately, then reduced to either supported PHP branches or a modern stack, with nothing unpatchable left running.
Most versioned PHP services run on unsupported branches According to Modat, via Recorded Future, About 79% of versioned PHP services seen by Modat run unsupported branches, and PHP 7.4 is the single most common branch at 878,761 services. The figure measures exposure across scanned PHP services, not confirmed compromises, but it shows how much of the installed base sat on branches with weak or missing PHP2Shell backports.
Conclusion
End-of-life PHP was always a risk, and PHP2Shell turned it into an emergency. Patch what you can this week, isolate what you cannot, retire what nobody needs, and stop paying for upgrades that only buy you another version of the same problem. App Corp runs EOL PHP triage in days and then delivers Payload CMS or TypeScript migrations with fixed, outcome-based pricing and senior engineers, typically shipping in 8 to 12 weeks, so the finding is removed rather than documented again next year.
Frequently Asked Questions
Key Takeaways
- PHP2Shell got official releases only for PHP 8.2, 8.3, 8.4 and 8.5 — 7.4, 8.0 and 8.1 received source-only backports and 7.3 and older received nothing
- About 79 percent of versioned PHP services run unsupported branches, and PHP 7.4 is the most common branch in the wild
- PHP 8.2 reaches end of life on 31 December 2026, so an upgrade is due regardless
- Six options exist: build the backport, buy extended support, upgrade, isolate, retire or migrate
- When upgrading means several majors, framework rewrites and plugin replacements, migrating often costs the same and lasts longer