Which PHP versions contain the PHP2Shell patch?
| Branch | First fixed release |
|---|---|
| PHP 8.2 | 8.2.35 |
| PHP 8.3 | 8.3.36 |
| PHP 8.4 | 8.4.27 |
| PHP 8.5 | 8.5.12 |
| 8.1 and older | No 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:
| Vendor | Release | Package | Fixed package version | Status |
|---|---|---|---|---|
| Ubuntu | 22.04 | php8.1 | 8.1.2-1ubuntu2.28 | Fixed |
| Ubuntu | 24.04 | php8.3 | 8.3.6-0ubuntu0.24.04.13 | Fixed |
| Ubuntu | 26.04 | php8.5 | 8.5.4-0ubuntu1.5 | Fixed |
| Ubuntu | 26.10 | php8.5 | 8.5.9-0ubuntu2.1 | Fixed |
| Debian | 13 | php8.4 | 8.4.27-1~deb13u1 | Fixed |
| 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 setup | Who updates PHP | Guide |
|---|---|---|
| Shared or managed hosting | Your host | This page, below |
| cPanel or Plesk | You pick the version; the host installs it | Change PHP version in cPanel |
| Your own Ubuntu or Debian server | You | Update PHP on Ubuntu |
| Docker | You | Docker PHP image |
| PHP 7.4, 8.0, 8.1 or a custom build | You or your vendor | PHP end of life |
| WordPress on any of these | Same as above | WordPress 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.
- Check your version. In WordPress: Tools → Site Health → Info → Server. Otherwise, your hosting panel’s PHP settings.
- Compare it with the fixed releases above, or use the PHP version checker.
- Switch to a fixed version in the same branch if your panel offers one.
- Otherwise ask your host, using the message below.
- 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:
- Which PHP version my site runs?
- 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?
- Whether all PHP workers were restarted afterwards?
- 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 -von 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?
- The PHP Group: security advisory and fixed releases
- GitHub advisory GHSA-w8hw-w9fx-j79w
- GitHub advisory GHSA-6wmf-4rv5-p3rp
- WordPress.org: Update PHP
- WordPress.org: Site Health screen
- Canonical: Ubuntu security notice
- Debian: security announcement
- cPanel: MultiPHP Manager
- Plesk: PHP settings
- XServer: precautionary control panel suspension (X)
- Lolipop: precautionary suspension notice (X)
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.
- Security advisory: Critical remote code execution vulnerabilities, update nowOfficial The PHP Group
- RCE via OOM corruptionOfficial The PHP Group
- RCE via stale global stateOfficial The PHP Group
- Update PHPOfficial WordPress.org
- Site Health screenOfficial WordPress.org
- USN-8948-1: PHP vulnerabilitiesVendor Canonical
- DSA-6574-1 php8.4 security updateVendor Debian Security Team
- MultiPHP Manager for cPanelVendor cPanel
- PHP SettingsVendor Plesk
- 予防的な安全対策のためアカウント管理画面等へのアクセスを一時停止(X)Vendor エックスサーバー
- PHPの重大な脆弱性への予防措置としてサービスサイト等を順次停止(X)Vendor ロリポップ!