Fixed releases available for PHP 8.2–8.5 Independent community resource · facts verified 22 Oct 2026

PHP2Shell checker / php2shell patch

PHP2Shell patch: fixed PHP versions and how to update

The PHP2Shell patch is in 8.2.35, 8.3.36, 8.4.27 and 8.5.12, plus patched packages from Linux distributions. Update the PHP that serves your website, restart every PHP worker, then confirm the version your site reports. On shared hosting, your host installs it: ask them.

PHP2Shell.help editorsVerified Official sources ↓

Which PHP versions contain the PHP2Shell patch?

BranchFirst fixed release
PHP 8.28.2.35
PHP 8.38.3.36
PHP 8.48.4.27
PHP 8.58.5.12
8.1 and olderNo new release; official source patches for 7.4, 8.0 and 8.1

These are the first fixed releases; any newer release in the same branch also has the patch. Linux distributions backport the patch into their own packages, often keeping an older-looking version number. The table below also lists images, panels and hosts whose status we haven’t verified yet:

VendorReleasePackageFixed package versionStatus
Ubuntu22.04php8.18.1.2-1ubuntu2.28Fixed
Ubuntu24.04php8.38.3.6-0ubuntu0.24.04.13Fixed
Ubuntu26.04php8.58.5.4-0ubuntu1.5Fixed
Ubuntu26.10php8.58.5.9-0ubuntu2.1Fixed
Debian13php8.48.4.27-1~deb13u1Fixed
Docker Official Images—php—Not verified
宝塔—PHP—Not verified
XServer—PHP—Not verified
ConoHa WING—PHP—Not verified
ロリポップ!—PHP—Not verified
1Panel—1panel/php—Not verified

Checked between 21 Oct 2026 and 22 Oct 2026.

PHP 8.1 and older get no new releases. PHP published minimal source patches for 7.4, 8.0 and 8.1, and some distributions ship fixed packages for these branches; see PHP end of life.

Which PHP2Shell patch guide matches my setup?

Your setupWho updates PHPGuide
Shared or managed hostingYour hostThis page, below
cPanel or PleskYou pick the version; the host installs itChange PHP version in cPanel
Your own Ubuntu or Debian serverYouUpdate PHP on Ubuntu
DockerYouDocker PHP image
PHP 7.4, 8.0, 8.1 or a custom buildYou or your vendorPHP end of life
WordPress on any of theseSame as aboveWordPress PHP version

How do I get the PHP2Shell patch on shared hosting?

On shared hosting the host installs PHP. Some update automatically; others offer several PHP versions per site, and you only get the fix after choosing a patched one.

  1. Check your version. In WordPress: Tools → Site Health → Info → Server. Otherwise, your hosting panel’s PHP settings.
  2. Compare it with the fixed releases above, or use the PHP version checker.
  3. Switch to a fixed version in the same branch if your panel offers one.
  4. Otherwise ask your host, using the message below.
  5. Confirm the new version once they reply.

Some hosts temporarily suspended their control panels or service sites as a precaution, for example XServer and Lolipop in Japan. If your panel is unavailable, check the host’s status page or announcements before changing anything.

What should I send my hosting provider?

Copy this into a support ticket and replace the bracketed parts:

Hello, my website [example.com] is hosted with you. PHP has released security fixes for the PHP2Shell vulnerabilities (CVE-2026-109618 and CVE-2026-109619).

Could you tell me:

  1. Which PHP version my site runs?
  2. Whether it has been updated to a fixed release (8.2.35, 8.3.36, 8.4.27, 8.5.12 or newer) or a vendor package that includes the fix?
  3. Whether all PHP workers were restarted afterwards?
  4. If not yet, when the update will be applied, and whether I need to do anything?

Thank you.

If your host says the site is patched but the version number didn’t change, ask which package or security notice contains the fix; distribution backports can keep the old number.

Will updating PHP break my site?

Moving to a newer release in the same branch (for example from an older 8.3 release to 8.3.36) brings bug and security fixes, not new features, so it rarely breaks sites. Changing branch, for example from 7.4 to 8.3, can break older themes, plugins or code: make a backup and test on a staging copy first. After updating, check login, forms, uploads, payments and scheduled tasks, not just the homepage.

How do I confirm the PHP2Shell patch worked?

  • Restart every PHP process. PHP-FPM pools and Apache keep running the old PHP until they restart.
  • Check what the website reports, not only the command line: WordPress Site Health or your control panel. php -v on the server shows the command-line PHP, which can differ. Enter the result in the PHP version checker.
  • Repeat for every site, worker pool and container. One fixed site doesn’t mean the others are.
  • If you patched late, review the check if your website is hacked guide. The patch closes the hole but doesn’t remove a backdoor.

What if I can’t install the PHP2Shell patch today?

Use the official stopgaps only to buy time: they reduce exposure to specific attack paths but are not a fix and don’t make the site safe. See the PHP2Shell workaround page. If you can’t patch, several national agencies have advised taking the site offline or isolating it until you can.

How do I explain the patch to my manager or clients?

Report facts: which sites run which PHP, what has been updated, what’s still pending, who owns it and when the next update is due. Keep “patched” separate from “checked for intrusion”. Example: “Our sites run PHP. Two critical PHP vulnerabilities were fixed today; we updated [N] sites, [M] are pending with our host, expected by [date].” Back to the PHP2Shell checker.

Which sources support this page?

Check your PHP for PHP2Shell

Enter the version your website reports. We compare it with the first fixed release for its branch and tell you what to do next.

PHP2Shell checker →

Sources

The core facts on this page (fixed versions, CVE details, vendor packages and agency warnings) come from official sources. Research, news and community posts are labelled as such.