PHP2Shell: securing WordPress and PrestaShop [TEST]

22.10.2026 Author:

PHP2Shell concerns the runtime behind a website. Learn what to check with your host, why php -v is insufficient and how to verify the update.

PHP2Shell requires checking and updating the PHP runtime serving your website. Updating WordPress, PrestaShop or plugins alone does not establish that an interpreter vulnerability has been fixed. You must also verify that the processes handling web traffic have loaded the patched code.

Sources checked on 19 November 2026. Version numbers below describe specific releases; consult the current notice for your hosting service or package supplier.

What is PHP2Shell?

PHP2Shell refers to CVE-2026-109618 and CVE-2026-109619, disclosed in October 2026. These request-handling memory errors can permit unauthenticated remote code execution under certain conditions. The PHP project documents them in its out-of-memory advisory and stale-state advisory.

Which releases should you check?

The initial October fixes shipped in PHP 8.2.35, 8.3.36, 8.4.27 and 8.5.12. These are historical PHP2Shell patch thresholds, not a list of the latest secure builds. Further security releases, 8.2.36, 8.3.37, 8.4.28 and 8.5.13, appeared on 19 November. Review the PHP announcements and current changelog.

A Linux distributor may backport a fix into its own package. Confirmation must cover the complete package revision. For an older installation, also establish its support status and application compatibility with the intended PHP branch. A higher version number alone is not a deployment plan.

Why php -v is not enough:

php -v describes the interpreter launched in the terminal. A website may use another build through PHP-FPM or Apache, while scheduled jobs use a third. Map each domain to its handler and pool, then check packages and running processes after updating. Avoid publishing an unrestricted page containing full phpinfo() output.

On shared hosting, ask the provider to confirm the complete web-runtime version and patch status. A selector in a control panel does not establish whether an earlier compromise occurred.

What should update acceptance include?

  1. Inventory PHP installations used by web requests, scheduled tasks and additional applications.
  2. Prepare a recoverable backup and a rollback plan.
  3. Check compatibility on a representative test environment.
  4. Install the correct package and reload or restart the required processes following supplier instructions.
  5. Test authentication, forms, administration, jobs and the important checkout path in a controlled test mode.
  6. Record the running runtime version, test results and remaining limitations.

Patching and incident response are separate checks

A patch addresses the specified flaw in the updated component. It does not automatically remove unexpected accounts, modified files or stolen data. If there are signs of an incident, preserve logs and check application integrity separately. A vulnerable version number by itself does not prove that a website was compromised.

If your website or store already shows signs of infection, we can help with WordPress or PrestaShop malware removal and verify that the affected features work after cleanup.

Almost one in three PHP websites still uses PHP 7 or older

On 19 November 2026, W3Techs reported PHP 7 on 24.6% of websites using PHP, PHP 5 on 7.3% and PHP 4 on 0.1%. Adding the rounded shares gives approximately 32%. This measures websites, not unique servers or confirmed PHP2Shell exposure. Those branches are outside standard upstream support; separate vendor backports must be assessed individually.

Help with the runtime and the application

See our Linux server administration service for environment maintenance. For a store, combine the runtime work with PrestaShop support; for a WordPress website, see ongoing website maintenance. The scope should follow the actual configuration and verification results.

If your WordPress site stops loading or an important feature breaks after a PHP update, ask our WordPress support team to help identify the cause and plan the repair.

About the author

Leszek Iwaniec is the owner of Projectic. He works on online store implementations, custom applications and technical support. On the blog, he describes problems and solutions involving PrestaShop, Laravel and system integrations, drawing on the team’s project experience.

Back