Old PHP

PHP 8.1, 8.0 and 7.4 after PHP2Shell: your real options

Short answer

PHP 8.1 and older get no new official release for PHP2Shell. The PHP security team published source backports for 7.4, 8.0 and 8.1, and several distributions and hosting panels ship builds that include them — under the same version number. Use one only as a bridge: the lasting fix is moving to PHP 8.3 or newer.

On this page

Is there a fix for PHP 8.1, 8.0 or 7.4?

Not from the PHP project as a release. In its own words, “PHP 8.1 and older no longer receive updates from the PHP project.” For PHP2Shell, the security team made an exception and published minimal source backports for 7.4, 8.0 and 8.1. Those are patches, not releases, so there is no PHP 8.1.35 or 7.4.34 to download.

Whether you’re fixed therefore depends on who built your PHP:

  • Your Linux distribution, hosting panel or host may have rebuilt it with the backport. It keeps the old version number.
  • If you built PHP yourself, you have to apply the patch and rebuild.
  • Releases older than 7.4 got no backport from PHP at all.

Builds that include the backport

Where your PHP comes from Branches How to tell it’s fixed
Ubuntu 22.04 LTS php8.1 Package 8.1.2-1ubuntu2.28 or later
Ubuntu 20.04 LTS (Ubuntu Pro) php7.4 Package 7.4.3-4ubuntu2.29+esm5 or later
Ubuntu 18.04, 16.04, 14.04 (Ubuntu Pro) php7.2, php7.0, php5 ESM packages listed in USN-8948-2
cPanel EasyApache 4 ea-php74, ea-php80, ea-php81 Package changelog lists both CVE IDs
Plesk 7.4, 8.0, 8.1 handlers Build date of 21 October 2026 or later
DirectAdmin 7.4, 8.0, 8.1 via CustomBuild Rebuilt with the CVE patch after CustomBuild was updated
Commercial extended-support providers Varies Their advisory names both CVE IDs

Some managed hosts also patched old versions for their customers — see did my host patch?

The official Docker php images don’t publish updated tags for end-of-life branches. If your containers run 8.1 or older, rebuild them on 8.3 or newer. Docker guide

The November 2026 fixes and old PHP

PHP’s 19 November 2026 release fixed 17 more security issues in 8.2 to 8.5, and again released nothing for 8.1 and older. Several of those bugs are older than the branches PHP still supports: its advisories trace the session file bug, CVE-2026-126714 (“phpAfterShell”), back to PHP 4.1.0, and the PHP-FPM request smuggling bug, CVE-2026-129289, to 5.6.0. Analyses disagree on exactly which bugs reach 8.1, 8.0 and 7.4, so treat an old PHP as exposed unless whoever built it says otherwise.

Some packagers have shipped November backports:

Where your PHP comes from Branches What was reported
Ubuntu 22.04 LTS php8.1 8.1.2-1ubuntu2.29 listed as fixed for CVE-2026-126714
Ubuntu 20.04 LTS (Ubuntu Pro) php7.4 7.4.3-4ubuntu2.29+esm6 listed as fixed for CVE-2026-126714
cPanel EasyApache 4 (25.98) ea-php74 Backport listing CVE-2026-126714, CVE-2026-129289, CVE-2026-129496 and others; no November entry seen for ea-php80 or ea-php81
Ondřej Surý packages (used by Laravel Forge) 8.1, 8.0, 7.4 New package revisions such as 8.1.34-13, with an unchanged php -v
Plesk 8.1, 8.0, 7.4 Plesk staff said in their forum that they plan to backport the fixes (reported by mySites.guru)

Check the package changelog for the CVE IDs, as described below. If nothing lists them, the stopgaps that matter most are: no FastCGI connection reuse in your web server, and session.upload_progress.enabled = 0. Both are explained in the seven quick checks.

Each round of backports is a little less complete than a real release, and each one depends on someone else’s goodwill. November is a good moment to schedule the upgrade.

How to verify a backported build

The version number won’t tell you, so check the package or the build:

# Debian / Ubuntu packages
zgrep -E 'CVE-2026-10961(8|9)' /usr/share/doc/php8.1-common/changelog.Debian.gz

# RPM-based packages (cPanel ea-php, RHEL-family)
rpm -q --changelog ea-php81-php-common | grep -E 'CVE-2026-10961(8|9)'

# Panel builds (Plesk, DirectAdmin): build date
/opt/plesk/php/8.1/bin/php -i | grep -i 'build date'

Adjust the package name or path to your version. Our checker will still say VULNERABLE for any 8.1.x, 8.0.x or 7.4.x because it only sees the version number. For these branches, the changelog or build date is the authority.

Why a patched 8.1 is only a bridge

  • The next bug won’t be backported. PHP2Shell got an exception. Future PHP vulnerabilities will be fixed in supported branches only, and PHP hasn’t said whether the CVE-2026-115560 fix will reach any end-of-life branch.
  • Vendor support ends too. Distribution and commercial extended support runs out on its own timeline.
  • PHP 8.2 is next. It reaches end of life on 31 December 2026. If you’re upgrading anyway, go to 8.3 at least. PHP 8.4 and 8.5 get security fixes until the end of 2028 and 2029.

Upgrade plan: 7.4 or 8.1 to 8.3+

  1. Inventory. List which sites run which PHP: your panel’s PHP settings page, or ls /etc/php/ /opt/cpanel/ /opt/plesk/php/ 2>/dev/null on the server.
  2. Check compatibility. Confirm your CMS, framework, themes and plugins support the target version. For custom code, composer check-platform-reqs and a PHP-compatibility code sniffer catch most problems.
  3. Test a copy. Clone the site to staging, switch it to the new PHP and work through the main pages and forms with the error log open. Deprecation warnings are fine for now; fatal errors are what block you.
  4. Switch site by site. Change the PHP version per site in the panel or FPM pool. Keep the old version installed for a day so you can roll back quickly.
  5. Remove the old PHP once everything runs, so nobody selects it again by accident. Then verify and restart.

If you can’t upgrade yet

  • Get a patched build from one of the sources above, and verify it.
  • Apply the interim mitigations, including session.upload_progress.enabled = 0.
  • Restrict who can reach the site (VPN, IP allow-list, basic auth) for internal or legacy tools.
  • The UK’s NCSC advised taking systems offline if they can’t be patched promptly. For a forgotten legacy site, that’s often the right call.

Old PHP that needs a careful upgrade path is what our complex-setups service covers, from €249, scoped on a call.

Shayan Abbas writes these PHP security guides from the official advisories and vendor guidance listed below, and updates them when those change. About this site

Sources

  1. Ubuntu: CVE-2026-126714 status by release
  2. cPanel: EasyApache 4 change log (25.98)
  3. Laravel Forge: PHP security advisory (November 2026)
  4. php.net — PHP2Shell security release and source backports for 7.4, 8.0 and 8.1 (21 Oct 2026)
  5. php.net — Supported versions
  6. Ubuntu — USN-8948-2: PHP vulnerabilities (older releases)
  7. Ubuntu — USN-8948-1: PHP vulnerabilities

Know about the next critical PHP bug first

Short, plain-English alerts when a serious PHP vulnerability or fix lands — with what to patch and how. About two emails a month.