Advisory: PHP2Shell critical PHP flaws (CVE-2026-109618 and CVE-2026-109619)

Two critical flaws in PHP let attackers take over web servers, including WordPress sites, with a single request. Patches are out. Here’s what to do now.

Advisory: PHP2Shell critical PHP flaws (CVE-2026-109618 and CVE-2026-109619)

Severity: Critical (CVSS 9.2)

Who is affected: Any organization running websites or web apps built on PHP, including WordPress, Drupal, Joomla and Magento sites, hosting control panels, and vendor appliances that include PHP

Summary: Two flaws in PHP itself, nicknamed PHP2Shell, let an attacker run code on a web server with a single request and no password. PHP released fixes on October 21, 2026, and attackers were already probing for them before that.

What’s happening

PHP is the programming language behind a large share of the web, including every WordPress site. On October 21, 2026, the PHP project released emergency security updates for two critical memory-safety flaws. Details leaked online a day early, and Amazon’s threat intelligence team recorded an exploitation attempt on October 17, four days before the public announcement. Security researchers have since published working attacks against WordPress, Drupal and Joomla sites.

  • CVE-2026-109618: if PHP runs out of memory while setting up a web request, its cleanup step can treat half-built data as valid. An attacker can use this to run code on the server.
  • CVE-2026-109619: data from one web request can linger after its memory is freed, and a later request handled by the same PHP worker can use it. This can leak memory contents such as passwords, API keys and certificates, or let an attacker run code.

Why it matters

The attack happens inside PHP before your website’s own code runs. That means updating WordPress, your theme or your plugins does not fix it: the PHP software on the server has to be updated. Servers running Apache with mod_php are at the highest risk, but every PHP setup that serves web pages is affected, including PHP-FPM, php-cgi, FrankenPHP and LiteSpeed.

Fixed versions

  • PHP 8.5.12, 8.4.27, 8.3.36 and 8.2.35 contain the fixes.
  • PHP 8.1 and older are no longer supported. The PHP team published source patches for 7.4, 8.0 and 8.1, and some Linux distributions and long-term support vendors offer patched packages.
  • Vendor products that include PHP, such as firewalls, appliances and control panels, need their own vendor updates. Palo Alto Networks has confirmed PAN-OS is affected, and other vendors are still reviewing their products.

What to do

  • Find every place PHP runs: websites, intranet and line-of-business apps, hosting control panels, appliances and containers. Start with anything reachable from the internet.
  • Update PHP to a fixed version, or install your Linux distribution’s or vendor’s patched package. Rebuild containers on a patched base image and confirm the new version is running.
  • Ask your web host. If a hosting company runs your website, ask them to confirm in writing that PHP has been patched.
  • Can’t patch today? Limit access to the server (for example, VPN only), put the site behind a web application firewall such as Cloudflare, which has released rules for these attacks, or take it offline until it’s fixed. For unsupported PHP versions, turning off session.upload_progress.enabled in php.ini offers partial protection only.
  • Watch for warning signs: PHP processes starting command shells or download tools, unexpected new files in the website folder, new scheduled tasks or new administrator accounts.
  • If you suspect a compromise: isolate the server, keep its web and PHP logs, check for web shells, and change any passwords, API keys and certificates stored on it.

How iSpark helps

For our managed clients we’re inventorying PHP across servers, websites and appliances, applying vendor patches, confirming fixed versions are running, and monitoring for signs of exploitation. Not sure whether your website or hosting is affected? We can check it for you.

References

Need help? iSpark clients can call our help desk at 403-313-6605. Not a client yet? Book a free security assessment.


Ready for IT that just works?

Book a free, no-pressure IT assessment. We review your network, cloud and security, then hand you a clear, prioritized action plan.