PHP2Shell: Two Critical PHP Flaws, Emergency Patches and What Website Owners Should Do

PHP released emergency fixes for two critical remote code execution flaws (CVE-2026-109618, CVE-2026-109619). What is confirmed, what isn’t and what to do.

Published: October 22, 2026
Check a Wallet Address Before Sending Crypto – Free, No Sign-Up → or create a free account

On 21 October 2026 the PHP project released emergency security updates for two critical vulnerabilities, tracked as CVE-2026-109618 and CVE-2026-109619. The flaws, nicknamed "PHP2Shell" by researchers and the press, can allow an attacker to run code on a web server without logging in. This article summarizes what is confirmed, what is disputed and what to do. It will go out of date quickly, so check the sources at the end for the latest information.

What happened

On 20 October the PHP team announced that a critical security release was planned for the next day. According to security firm Huntress, details of the flaws leaked the same day, and another firm, watchTowr, confirmed the leak was genuine. PHP published the fixes on 21 October.

What PHP says

According to the PHP project's own announcement:

Who is affected

PHP is widely used. Wiz Research estimates that it powers roughly 70% of websites, which does not mean that 70% of websites are vulnerable. Google Cloud says PHP versions from 5.4 through 8.5.11 are affected. Researchers cited by Newsweek say they demonstrated remote code execution against WordPress, Drupal and Joomla, among other PHP-based applications, and Wikimedia said its PHP systems were affected.

PHP 8.1 and older no longer receive updates from the project. Some Linux distributions and long-term-support vendors provide backported fixes. PHP also published minimal source backports for 7.4, 8.0 and 8.1 for people who build from source. Reports differ on how far this covers older versions, so check with your vendor.

Is it being exploited?

Reports conflict, and the picture is changing. Qualys says exploitation attempts have been observed, citing Amazon Threat Intelligence and Cloudflare. Help Net Security reports that an Amazon honeypot recorded an attempt on 17 October, four days before disclosure. Patchstack's telemetry showed probing without hard evidence of breaches, while Huntress said it had not seen exploitation among its own partners. Several outlets reported that some government and local-government sites in Europe were taken offline as a precaution. Those reports are second-hand. We found no confirmed account of a large-scale compromise in the sources we reviewed.

What website owners should do

  1. Update PHP to one of the fixed versions, or install your vendor's patched package. PHP says only an update is a complete fix.
  2. Do not stop at WordPress, plugins or themes. Automattic noted that updating them does not fix the underlying PHP flaw.
  3. Take stock of every PHP installation, including staging sites, containers and software bundled in vendor products.
  4. If you cannot update right away, PHP lists interim measures, such as disabling session upload progress and limiting request sizes. It states that they reduce exposure but do not make an installation safe. Authorities in Europe and the NSA have advised taking affected systems offline if they cannot be patched.
  5. Treat a server as possibly compromised if you see signs of attack, and rotate the credentials it holds, because the flaws can also expose memory contents.
  6. Beware of "fix" plugins and copied snippets from unofficial sources.

What ordinary users can do

There is nothing for you to patch yourself. Press reports recommend the usual precautions: unique passwords, multifactor authentication, and caution with unexpected login or password-reset messages, which can follow incidents like this one.

What is still unclear

Sources: the PHP project's security announcement (php.net), the CVE advisories on GitHub, Qualys, Help Net Security, Patchstack, Huntress, Google Cloud, BleepingComputer, Newsweek and Deseret News.

This article is for general information only and is not financial advice.