ZEROLAG

The right name for your project

Find a domain and check its availability with ZEROLAG.

Give your project a name.

Enter a domain name to check its availability.

PHP2Shell: the PHP vulnerabilities and how to protect your site

A PHP security patch stitched across a tear.
Back to articles
Article contents

PHP2Shell is the name used for two critical vulnerabilities in PHP, CVE-2026-109618 and CVE-2026-109619, which can allow remote code execution without authentication. Patches were released in PHP 8.2.35, 8.3.36, 8.4.27 and 8.5.12. Imunify360 also released filtering rules, and CloudLinux published patched PHP packages for hosting platforms.

For a site owner, the key difference is where the problem arises: in the PHP engine on the server. The WordPress update or a plugin does not install the necessary correction in PHP.

What is PHP2Shell and why is it a serious problem?

PHP processes the dynamic pages of many applications, including WordPress, WooCommerce, Joomla and Drupal. A vulnerability in this level may affect several applications, even if they are updated.

The two problems each received a score of severity CVSS v4.0 of 9.2 out of 10. The setting up is critical because the operation can start over the network without an account on the site. However, the possibility and reliability of an attack depends on the server configuration, extensions and how applications are processed.

VulnerabilityWhat's going on?
CVE-2026-109618The management of an insufficient memory error may leave the internal data of an application in an invalid state, which is subsequently used to close the application.
CVE-2026-109619An application may leave references to memory already released in the PHP process. A subsequent request can access that old state before it is reset.

The impact may include code execution with the rights of the process running PHP. This may endanger files and information accessible to that process; it does not automatically mean administrator access to the entire server.

Are WordPress, WooCommerce or LiteSpeed affected?

An updated WordPress site can still run on a vulnerable PHP. The same can happen with a WooCommerce store or an app of its own. Protection shall also be checked at the host level.

PHP warning includes installations serving web applications, including PHP-FPM, Apache mod_php, php-cgi, FrankenPHP and LiteSpeed. The risk is considered the highest for mod_php. The use of LiteSpeed or PHP-FPM does not eliminate the need for updating

Filtering known applications and updating PHP have different roles and complement.

What updates did Imunify360 receive?

On 21 October 2026, Imunify360 distributed three sets of WAF rules relevant to PHP2Shell:

  • Rouleset 8.83: has introduced the blocking of the public form of exploitation on ModSecurity and Coraza. That main rule doesn't run on LiteSpeed.
  • Rouleset 8.84: added blocking of the public operating tool and suspicious upload requests, including on LiteSpeed.
  • Rouleset 8.85: extended the detection of instrument variants and added unusual upload applications.

These are versions of the firewall rules, not versions of the Imunify360 application. Automatic distribution requires active WAF and functional updates.

Rules reduce exposure to known attack requests. It does not cover all variants of the two vulnerabilities and does not alter the PHP engine. Therefore, the update of PHP remains necessary even when the firewall blocks attempts.

What did CloudLinux patch?

CloudLinux distributed corrections for families alt-php, used including by PHP Selector, and it-php, used in cPanel / EasyApache ecosystem 4. They are separate packages families: updating one does not prove that the other is updated.

On 22 October, alt-php corrections for CloudLinux 7, 8 and 9 were available in stable deposits. E-php corrected packages have also been published. Some of the updates use a backport: the correction is applied to the already distributed version without changing the PHP number displayed in the same way as php.net.

For example, CloudLinux has published a built-ea-php83 corrected by number 8.3.35-2.el9.cloudlinux.2. It should not be confused with the original PHP 8.3.35 version without correction. The full version of the building and the confirmation of the correction in the package history are important for these packages.

Which PHP versions include the fixes?

PHP has published the following corrected versions for branches supported at the time of the announcement:

PHP BranchVersion with fix PHP2Shell
PHP 8.28.2.35
PHP 8.38.3.36
PHP 8.48.4.27
PHP 8.58.5.12

Subsequent versions of these branches also include remediation. Suppliers' packages may contain the same correction via backport. For PHP 8.1 and older versions, the existence of a corrected package should be checked with the supplier; the correction of this incident does not correspond to the return of the version to the PHP standard support.

What kind of protection does your website get at ZEROLAG?

Hosting protection is administered at server level so you don't have to track every PHP alert alone or install a plugin for every new vulnerability. Our platform uses Imunify360, CloudLinux and LiteSpeed, with different roles in protecting and managing sites.

  • Imunify360 provides filtration at the host level. The rules for malicious requests shall be distributed on the server without interference in the code of each site. For PHP2Shell, the relevant updates for LiteSpeed are described above.
  • CloudLinux provides corrected PHP packages. This also allows the application of patches in the PHP branch compatible with your application when the supplier offers a corrected build.
  • Our team is running the server. Installing PHP updates and uploading them in active services is about managing the hosting, not installing a WordPress plugin by the client.

For you, the advantage is that these mechanisms are part of the hosting service. You must not buy Imunify360 separately or manage the operating system to benefit from them.

In the case of PHP2Shell, full protection confirmation is based on PHP packages corrected and loaded in the processes serving the sites. WAF filtration is an additional layer; checking all used PHP branches remains essential.

What do you have to do if you have a hosted site?

Updating the PHP engine on an administered hosting is the responsibility of the provider. As the owner of the site, you can check the version attributed to the domain and ask for confirmation that the building used includes corrections for both CVE.

Keep the app and extensions updated and check important functions after changes: authentication, forms, upload files and, for shops, basket and order completion. There is no need to blindly change the PHP branch just to get a larger version number.

If there are signs of compromise, the installation of the patch shall be accompanied by an investigation of the incident. The update closes the vulnerability, but does not automatically remove a malicious file previously entered.

Frequently asked questions

A WordPress security plugin solves the problem?

Do not replace the update of PHP. Some applications are processed by the PHP engine before the application or plugin can intervene.

Does an older PHP number automatically mean that the site is vulnerable?

No. A supplier may distribute a backport-corrected building. It is necessary to check the complete package, not just the short number displayed in the panel.

Is it enough to update Imunify360?

No. WAF rules provide additional protection against forms of attack; full repair requires corrected PHP.

For questions about compatibility and the PHP version suitable for your website, contact the support team in your client account.

Choose the next step
for your project.

Explore the relevant service or discuss your requirements with us.

Explore your options