PHP 7.3, 7.2 and PHP 5 After PHP2Shell: Upgrade or Take It Offline
PHP 7.3, 7.2 and PHP 5 After PHP2Shell: Upgrade or Take It Offline

As of 23 October 2026, PHP 7.3, 7.2, 7.1, 7.0 and every PHP 5 release have no fix for PHP2Shell (CVE-2026-109618 and CVE-2026-109619) from the PHP project. Not a release and not a source backport. The PHP security team's backports stop at PHP 7.4. Researchers report the flaws go back to PHP 5.4, released in 2012, so these old versions are affected.
The direct answer: upgrade to a supported PHP, or take the site off the public internet until you can. A few paid extended-support vendors and hosting platforms still ship patched builds for some of these versions, and they can bridge a short gap. But a server this old has missed years of other security fixes too, and the software running on it is usually just as old.
This page lists what is still patched, explains why it is only a bridge, and shows how to isolate a site safely while you rebuild or upgrade it.
Key Takeaways
- The PHP project offers no PHP2Shell fix or backport for 7.3 and older. Its backports cover only 7.4, 8.0 and 8.1.
- Some vendors still patch these versions, almost all through paid extended support: Ubuntu Pro and its Legacy add-on, Freexian Extended LTS for Debian, TuxCare and CloudLinux, and Zend for 7.2 and 7.3.
- AlmaLinux 8 patched its php:7.2 and 7.3 streams even though Red Hat has no fix for them. AlmaLinux says php:7.2 is still AlmaLinux 8's default stream.
- WordPress 6.9 is the last WordPress that runs on PHP 7.2 or 7.3. Joomla 3 lost official support in August 2023, and Drupal 7 security support ended on 5 January 2025.
- CISA, the UK NCSC and EU agencies all say to take systems offline or isolate them if you cannot patch or update.
- Moving from PHP 5 or early 7.x to 8.3 is a large jump. For many old sites, a rebuild costs less than the repair.
Where These Versions Stand
All of these branches stopped receiving PHP security fixes years ago. The dates come from PHP's end-of-life page:
| Branch | End of life | Last release | Official PHP2Shell fix |
|---|---|---|---|
| 7.3 | 6 Dec 2021 | 7.3.33 | None |
| 7.2 | 30 Nov 2020 | 7.2.34 | None |
| 7.1 | 1 Dec 2019 | 7.1.33 | None |
| 7.0 | 10 Jan 2019 | 7.0.33 | None |
| 5.6 | 31 Dec 2018 | 5.6.40 | None |
| 5.5 | 21 Jul 2016 | 5.5.38 | None |
| 5.4 | 3 Sep 2015 | 5.4.45 | None |
PHP's own advisories list only the supported branches (8.2 to 8.5). The US National Vulnerability Database now marks PHP 5.4.0 and later as affected for CVE-2026-109619, and Wiz, Calif and watchTowr all say older branches are affected. watchTowr's summary for "PHP 7.3 and older, including PHP 5" reads: "No fix available. Upgrade to a supported branch." Treat any of these versions as vulnerable unless a vendor has given you a patched build.
Who Still Patches PHP 7.3 and Older
PHP published fixes to Linux distributions and support vendors before the public release. Some of them patched very old PHP for their paying customers. As of 23 October 2026:
| Source | Versions patched | Cost |
|---|---|---|
| Ubuntu 18.04 (php7.2) | Fixed in 7.2.24-0ubuntu0.18.04.17+esm14 | Ubuntu Pro |
| Ubuntu 16.04 (php7.0), 14.04 (php5) | Fixed in 7.0.33-0ubuntu0.16.04.16+esm22 and 5.5.9+dfsg-1ubuntu4.29+esm18 | Ubuntu Pro with the Legacy Support add-on |
| Debian 10 (php7.3), Debian 9 (php7.0) | Fixed in 7.3.31-1~deb10u16 (ELA-1854-1) and 7.0.33-0+deb9u26 (ELA-1855-1) | Freexian Extended LTS (paid) |
| AlmaLinux 8, php:7.2 and php:7.3 streams | Patched, though the streams are retired and Red Hat has no fix | Free, but "future fixes for retired streams are not guaranteed" |
| CloudLinux / TuxCare | alt-php 5.2 to 5.6 and 7.0 to 7.3 on CloudLinux 7, 8 and 9; CloudLinux 7 PHP 5.4 under TuxCare ELS; ea-php52 and newer. CloudLinux 6 "not confirmed yet" | Included with CloudLinux; TuxCare ELS is paid |
| Zend PHP LTS | Names 7.2 and 7.3 (plus 7.4 to 8.1) | Paid |
| Plesk | For 5.6, 7.2 and 7.3, Plesk recommends "paid TuxCare Extended Lifecycle Support for PHP" | Paid |
| Ondřej Surý PPA (Ubuntu 22.04 and 24.04) | php5.6 changelog cites both CVEs; php7.0 to 7.3 republished the same day | Free, community-maintained |
| Red Hat Enterprise Linux 7 and 6 | RHEL 7: CVE-2026-109619 "Affected"; RHEL 6 "Out of support scope" | No fix listed |
| Docker official image | No branch older than 8.2 has a fixed image; php:5.6 last pushed January 2019 | None available |
Some managed hosts also say they patched or mitigated very old PHP on their platforms. If you are on managed or shared hosting, ask your host directly whether your site runs a patched build or only sits behind mitigations, and how you can confirm it. Our guide on how to check your PHP version covers build dates and changelogs.
Why a Patched PHP 5 or 7.2 Is Only a Bridge
A vendor patch closes PHP2Shell. It does not make an old stack current. Three problems remain:
- Years of other missed fixes. These branches got no upstream fixes after their end-of-life dates, some as far back as 2015. What a vendor has backported beyond PHP2Shell varies, and only the vendor can tell you.
- The software on top is just as old. A site on PHP 5.6 or 7.2 is almost always on an old CMS, old plugins and an old database driver. Those get no fixes either.
- Each patch is a favor, not a promise. AlmaLinux says outright that "future fixes for retired streams are not guaranteed." The next PHP flaw may not get the same treatment.
Use a patched build to stay online for a defined period while you upgrade or rebuild. Pick an end date.
Don't fill the gap with unofficial patch scripts. No official PHP source backport exists for these versions, so any script claiming to be one did not come from the PHP project. Security firms have warned that some PHP2Shell repositories on GitHub are fake.
Joomla 3, Drupal 7 and Old WordPress
The PHP2Shell flaws are in PHP, not in these platforms. But sites on very old PHP are usually on very old CMS versions too:
- Joomla 3: official support from the Joomla volunteer community ended on 17 August 2023. Joomla 4 needs PHP 7.2.5 or later, Joomla 5 needs 8.1 and Joomla 6 needs 8.3.
- Drupal 7: Drupal says "Drupal 7 security support has ended as of 5 January 2025." Its certified extended-support vendors are HeroDevs and Tag1 Consulting. Drupal 10 needs PHP 8.1 or newer and Drupal 11 needs 8.3, so moving off Drupal 7 also means moving off old PHP.
- WordPress: WordPress 7.0 "dropped support for PHP 7.2 and 7.3," so 6.9 is the newest WordPress that runs on them. WordPress 6.6 dropped PHP 7.0 and 7.1, and PHP 5.6 has been unsupported since WordPress 6.3. WordPress dropped security support for its 4.1 to 4.6 branches in July 2025. See our PHP2Shell guide for WordPress.
On a Joomla 3 or Drupal 7 site, switching PHP alone does not get you to a supported setup, because the CMS itself no longer gets fixes from its project. Plan the CMS migration and the PHP upgrade together. That is usually where the decision between upgrading and rebuilding gets made.
What Changed Between PHP 5 and PHP 7.4
Getting to a supported PHP from here means crossing every migration guide from your version to 8.3. The early ones contain some of the hardest breaks:
| Jump | Changes most likely to break old sites |
|---|---|
| 5.6 to 7.0 (guide) | "All ext/mysql functions were removed," as were the ereg functions; many fatal errors became exceptions; indirect variable expressions are evaluated strictly left to right; PHP 4-style constructors deprecated |
| 7.0 to 7.1 | Calling a user-defined function with too few arguments now throws an Error instead of a warning |
| 7.1 to 7.2 | count() on something that is not countable emits a warning; create_function() and each() deprecated |
| 7.3 to 7.4 | Using null, a number or a boolean as an array generates a notice; curly-brace offsets, unparenthesized nested ternaries and money_format() deprecated |
| 7.4 to 8.0 and later | Removed create_function() and each(), changed number-to-string comparisons, turned many warnings into errors. See our PHP 7.4 page for the details. |
The removal of the old mysql extension in PHP 7.0 is the classic blocker. Any PHP 5 code that still calls mysql_ functions will not run on PHP 7 or 8 until its database code is rewritten.
How to Take a Site Offline or Isolate It Safely
The agencies are consistent. CISA says organizations that "continue to use PHP 8.1 or earlier unsupported versions, should take PHP-based systems offline until they can be patched or updated." The UK NCSC says to "consider taking the system offline" if mitigations cannot be applied in time. The EU agencies advise "isolating exposed applications from public networks until fixes can be applied."
- Preserve evidence first. Beazley advises: "Preserve web, PHP, application, and host logs before restarting or rebuilding a suspect system." Take a full backup of files and database too; our guide to website backup and recovery explains what a usable backup looks like.
- Take public traffic off PHP. Serve a static maintenance page from the web server or CDN, or restrict access by network. Beazley warns against "disabling the PHP handler, which can expose application source code and credentials."
- Keep internal tools behind a VPN. For PHP applications that staff need but the public doesn't, Beazley recommends restricting them "to trusted networks or a VPN."
- Check for signs of compromise. Exploitation attempts were reported from 17 October 2026, so look back at least that far. Our guide was my site hacked by PHP2Shell? lists what to look for.
- Bring it back only on a supported or patched PHP. Restore on a fresh server with a supported PHP, or on a vendor-patched build with a fixed end date for the upgrade.
If the site's job is mostly informational, a static snapshot can keep the content online while the PHP application stays offline. Our website incident response plan covers the communication side.
Upgrade or Rebuild?
For a site on PHP 7.3 or older, the honest comparison is between a multi-step upgrade (CMS migration plus PHP 8 compatibility work on every plugin and piece of custom code) and a new build on a current platform. Upgrading usually makes sense when the CMS has a supported migration path and most extensions have current versions. A rebuild is often cheaper when the CMS is end of life, key plugins are abandoned or custom code uses removed functions throughout. Our guide to upgrading an old PHP site safely covers how to make that call, and our headless CMS development team builds replacements that keep PHP off the public front end.
Conclusion
As of 23 October 2026, PHP 7.3, 7.2, 7.1, 7.0 and PHP 5 have no fix or backport from the PHP project. Paid vendors and a few platforms can patch some of these versions, but that only buys time on a stack that is years out of date. If you cannot get a patched build today, take the site offline or isolate it, the way CISA, the NCSC and EU agencies advise, then upgrade or rebuild. If you need help with either, our emergency PHP patching team can work through it with you. Every PHP2Shell guide is in our PHP2Shell Resource Center.
Frequently Asked Questions
Is PHP 5.6 affected by PHP2Shell?
Researchers say yes. Wiz, Calif and watchTowr report the flaws go back to PHP 5.4, and the US National Vulnerability Database marks 5.4.0 and later as affected for CVE-2026-109619. PHP's own advisories list only supported branches.
Did PHP publish a backport for PHP 7.3 or 7.2?
No. The PHP security team's source backports cover only PHP 7.4, 8.0 and 8.1. Any fix for 7.3 or older comes from a vendor, not from the PHP project.
Can I buy a PHP2Shell patch for PHP 5 or 7.2?
Some vendors offer one, including Ubuntu Pro (with the Legacy add-on for 16.04 and 14.04), Freexian Extended LTS for Debian, TuxCare through CloudLinux, and Zend for 7.2 and 7.3. Check that the vendor covers your exact version and operating system.
Is taking my site offline really necessary?
If you cannot patch or upgrade, the US, UK and EU agencies all say to take it offline or isolate it. A maintenance page or network restriction keeps PHP away from attackers while you fix the underlying problem.
My site is on Joomla 3 or Drupal 7. What now?
Both are past official support from their projects, so upgrading PHP alone will not make the site supported. You need a migration to a current Joomla or Drupal version (Joomla 6 and Drupal 11 both need PHP 8.3 or newer), or a rebuild. Drupal 7 has certified extended-support vendors, HeroDevs and Tag1 Consulting.
Can a web application firewall protect an old PHP site?
A WAF can block known attack patterns, and CISA says it "may provide some protection until systems are updated or patched." It is not a fix, and every vendor says to patch PHP as well.
Put this into action with eSEOspace
We help businesses grow with maintenance & support that actually performs. Explore the services behind this guide:
Get a FREE Audit
We'll perform a comprehensive SEO, AEO, GEO & CRO audit of your website — completely free — and show you exactly how to outrank your competitors.
Don't have a site yet? Get in touch →
Get a FREE GEO/AEO/SEO Audit
We'll analyze your site's SEO, GEO, AEO & CRO — completely free — and show you exactly how to get found across Google and AI answers.
Don't have a site yet? Get in touch →
Great — your audit is on the way!
We'll send your free SEO/GEO/AEO/CRO audit within the next few hours. Where should we send it?
You're all set! ✓
Your free audit is being prepared — check your inbox in the next few hours. Talk soon!
On this page





