php2shell high-risk vulnerability: 宝塔面板 php version fix method
Published: 2026-10-29
I. What is this vulnerability? What impact does it have on my website?
PHP officially disclosed two high-risk vulnerabilities (CVE-2026-109618, CVE-2026-109619), codenamed "php2shell". An unauthenticated remote attacker can trigger memory corruption through a specially crafted multipart POST request to achieve remote code execution. Once exploited, it may lead to serious consequences such as website intrusion, data leakage, and webpage tampering.
As long as your website runs on an affected PHP version, there is a risk. This vulnerability can be exploited remotely by unauthenticated attackers and triggered without logging in, with a high risk level. It is recommended to confirm your current PHP version as soon as possible and apply patches.
II. Fix method for PHP version in 宝塔面板
For PHP CVE-2026-109618, CVE-2026-109619, two severe security vulnerabilities, 宝塔 has synchronized the relevant PHP security fix versions and provides a one-click risk hardening feature on the homepage.
PHP Security Fix Versions #
The fix versions and test versions provided for this vulnerability are as follows. Please note the applicable notes for each version. PHP 8.2 to 8.5 are PHP official fix packages, and PHP 8.0, 8.1, PHP 7, and PHP 5 are 宝塔 fix packages.
| PHP Branch | Fix Version | Applicable Notes |
|---|---|---|
| PHP 8.5 | 8.5.12 | PHP official security fix version, synced on both Linux and Windows panels |
| PHP 8.4 | 8.4.27 | PHP official security fix version, synced on both Linux and Windows panels |
| PHP 8.3 | 8.3.36 | PHP official security fix version, synced on both Linux and Windows panels |
| PHP 8.2 | 8.2.35 | PHP official security fix version, synced on both Linux and Windows panels |
| PHP 8.1 | 8.1.35 | Linux fix version packaged by 宝塔 |
| PHP 8.0 | 8.0.31 | Linux fix version packaged by 宝塔 |
| PHP 7.4 | 7.4.34 | Linux fix version packaged by 宝塔 |
| PHP 7.3 | 7.3.34 | Linux fix version packaged by 宝塔, can be updated via the software store |
| PHP 7.2 | 7.2.35 | Linux fix version packaged by 宝塔, can be updated via the software store |
| PHP 7.1 | 7.1.34 | Linux fix version packaged by 宝塔, can be updated via the software store |
| PHP 7.0 | 7.0.34 | Linux fix version packaged by 宝塔, can be updated via the software store |
| PHP 5.6 | 5.6.42 | 宝塔 AI fix version, open for testing; currently updated via command |
| PHP 5.5 | 5.5.40 | 宝塔 fix version, open for testing; currently updated via command |
| PHP 5.4 | 5.4.47 | 宝塔 fix version, open for testing; currently updated via command |
PHP Version Upgrade and Repair Process
The following steps and screenshots use the Linux panel as an example:
1. Go to "Software Store", and select [Installed].

2. First click [Update Software List / Payment Status] in the upper right corner to get the latest software information.

3. Find the PHP branch currently used by the website, click [Update], and install the corresponding fix version as prompted.

4. After the upgrade is complete, test whether the website functions normally.
Tip: For old versions for which no patch is currently available, temporary mitigation and protection measures should be retained, and version migration should be completed as soon as possible.
Fix method for php2shell high-risk vulnerability on WIN system cloud servers/dedicated servers
