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.58.5.12PHP official security fix version, synced on both Linux and Windows panels
PHP 8.48.4.27PHP official security fix version, synced on both Linux and Windows panels
PHP 8.38.3.36PHP official security fix version, synced on both Linux and Windows panels
PHP 8.28.2.35PHP official security fix version, synced on both Linux and Windows panels
PHP 8.18.1.35Linux fix version packaged by 宝塔
PHP 8.08.0.31Linux fix version packaged by 宝塔
PHP 7.47.4.34Linux fix version packaged by 宝塔
PHP 7.37.3.34Linux fix version packaged by 宝塔, can be updated via the software store
PHP 7.27.2.35Linux fix version packaged by 宝塔, can be updated via the software store
PHP 7.17.1.34Linux fix version packaged by 宝塔, can be updated via the software store
PHP 7.07.0.34Linux fix version packaged by 宝塔, can be updated via the software store
PHP 5.65.6.42宝塔 AI fix version, open for testing; currently updated via command
PHP 5.55.5.40宝塔 fix version, open for testing; currently updated via command
PHP 5.45.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].

image.png

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

image.png

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

image.png

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