• Security
  • Story
  • Oct 21, 2026

PHP2Shell: updating WordPress doesn't patch the PHP running under it

My take: Updating WordPress patches WordPress, not the PHP that runs it. Check its version in two clicks, and get off PHP 8.2 before December 31, 2026.

What to know

  • On October 21, 2026, PHP shipped emergency releases for two flaws nicknamed PHP2Shell, CVE-2026-109618 and CVE-2026-109619, rated 9.2 out of 10 (PHP). One request, with no account, can make the server run the attacker's code. Every PHP setup that serves web pages is affected, Apache's mod_php most of all, and PHP's verdict is blunt: "updating is the only safe choice."
  • Fixed versions: 8.5.12, 8.4.27, 8.3.36 and 8.2.35. PHP 8.1 and older get no official release, only source patches for 7.4, 8.0 and 8.1. And PHP 8.2 reaches its end of life on December 31, 2026: no security fix after that date.
  • Details had leaked before the release, BleepingComputer reported on October 20, 2026. On October 26, the US agency CISA listed both flaws as exploited, and BleepingComputer relayed the first confirmed takeover, of a decoy server running PHP 8.4.26.

Spotted on @it_connect.fr, @ninon.ia_officiel and @nathanv_info, in French.

What changes

Updating WordPress, its theme and its plugins leaves PHP untouched: PHP belongs to whoever runs the server. In WordPress, open Tools > Site Health > Info, then Server (WordPress): the PHP version is there. Below the fixed version of its branch, or on 8.1 and older, write to your host with two questions: is the fix for CVE-2026-109618 and CVE-2026-109619 installed, and when does my site move off 8.2?

The number alone can mislead: some Linux distributions patch without changing it, and on Ubuntu 24.04 the fixed PHP still reads 8.3.6 (Ubuntu). If the server is yours, update the package, restart PHP-FPM or Apache, and plan PHP 8.3 or later before December 31, 2026.

Source: The PHP Group, “Security advisory: Critical remote code execution vulnerabilities, update now”, October 21, 2026

Drafted with Claude, Anthropic's AI, from my take. Reviewed and owned by me.

Up next