PHP security · October 2026 · 4 min read

PHP2Shell: October 2026 PHP Security Fixes for WordPress

Two critical PHP vulnerabilities require a server update. Which versions contain the fixes, what to ask your host, and how to check WordPress and WooCommerce afterward.

Conceptual illustration of a PHP server receiving a protective green patch for the PHP2Shell security update

By Cristian Daron

Checked on 22 October 2026. PHP released emergency security updates on 21 October for CVE-2026-109618 and CVE-2026-109619, commonly called PHP2Shell. Both can allow remote code execution without authentication under specific conditions. If you run a WordPress site or WooCommerce store, confirm that the PHP runtime serving your website has received the fixes.

Which PHP versions fix PHP2Shell?

The upstream fixes are PHP 8.2.35, 8.3.36, 8.4.27 and 8.5.12. These are the fixed releases announced on 21 October 2026, rather than a permanent list of the latest versions. Use the current patched release for your supported branch, or a distribution package that your vendor explicitly confirms fixes both CVEs.

PHP identifies all installations serving web requests as at risk, including PHP-FPM, Apache mod_php, php-cgi, FrankenPHP and LiteSpeed. Its advisory highlights mod_php as the highest risk, with an attack demonstrated before application code runs. A login screen or an application-level security plugin should therefore not be treated as proof that the server is protected.

What do the two vulnerabilities do?

CVE-2026-109618 concerns memory corruption during out-of-memory handling. PHP can leave internal request data partially initialized and later process that invalid data during cleanup. The PHP project's advisory describes how this can lead to remote code execution.

CVE-2026-109619 concerns stale internal state. Memory associated with a request can be freed while references to it remain, and a reused worker can access that state during a later request. The separate advisories linked below explain the conditions and affected code. A site's exposure depends on its runtime and configuration; a vulnerability announcement alone does not establish that the site has been compromised.

Does updating WordPress fix these PHP vulnerabilities?

No. WordPress states that no WordPress release is required or planned for these issues: the fix belongs to PHP on the hosting server. Updating WordPress core, themes and plugins remains normal maintenance, but it does not replace this runtime update. WooCommerce owners need to coordinate with their host or server administrator too.

In WordPress, open Tools > Site Health > Info > Server to see the PHP version used by the site. Record it alongside the version shown in the hosting panel. A command-line PHP version can belong to a different installation, so I would ask the host to verify the web runtime for each affected domain, not just send a screenshot of php -v.

What should you ask your hosting provider?

Ask: Have you applied fixes for both CVE-2026-109618 and CVE-2026-109619 to the PHP runtime serving this domain? Which package or image contains the fixes, and have the affected workers been restarted or replaced? Include staging sites, subdomains and other PHP applications in the request.

A distribution package can include a backported security fix without adopting the upstream version number above. Ubuntu's USN-8948-1 notice, for example, identifies updated packages for its supported releases. Compare the installed package with your vendor's advisory instead of deciding patch status from the short PHP version string alone. Keep the host's confirmation with the maintenance record.

How I would check a WooCommerce store after patching

My recommended workflow is to confirm recoverable file and database backups, apply the vendor's update promptly, and then verify the web runtime again. Use staging for compatibility checks where practical, without leaving an exposed production server waiting for an unrelated redesign or plugin upgrade.

Afterward, check the storefront, account login, forms, uploads, cart, shipping calculations and checkout. Use the payment provider's test mode or an agreed test-order process. Verify order creation and transactional email, and review application and PHP error logs for new failures. Record the checks and the runtime version so the next person maintaining the site can see what changed.

Are a WAF or configuration changes enough?

PHP says only an update is a complete solution. Its temporary configuration measures reduce particular attack paths and do not make an unpatched installation safe. Follow the current official advisory with your host rather than copying isolated php.ini changes from social media. If patching cannot happen promptly, discuss temporary isolation or taking the affected service offline with the operator responsible for it.

For older PHP installations, verify whether your vendor provides a supported backport and plan a move to a supported branch. Once the immediate update is complete, keep a simple inventory of domains, PHP runtimes, hosting contacts and patch dates. That makes the next security release much easier to handle.

Sources

  1. PHP: 21 October 2026 security advisory and fixed releases (opens in a new tab)
  2. PHP advisory: CVE-2026-109618, RCE via OOM corruption (opens in a new tab)
  3. PHP advisory: CVE-2026-109619, RCE via stale global state (opens in a new tab)
  4. WordPress: Critical PHP Security Release, 21 October 2026 (opens in a new tab)
  5. Ubuntu: USN-8948-1 PHP security update packages (opens in a new tab)
  6. PHP: supported versions and security support dates (opens in a new tab)