All articles
Exploited vulnerabilitiesAwarely Monitor editorial team8 minUpdated

PHP2Shell: CVE-2026-109618 and 109619, fixes from 14:00 UTC

On 21 October 2026, PHP published a security advisory for two critical remote code execution vulnerabilities, CVE-2026-109618 and CVE-2026-109619, known as “PHP2Shell”, both with a CVSS 4.0 score of 9.2. The fixes appeared on 21 October, from 14:00 UTC: PHP 8.5.12, 8.4.27, 8.3.36 and 8.2.35. The details had become public a day earlier, and several sources report exploitation attempts.

Because PHP runs web applications, control panels, CMSs and vendor appliances, the first task is not the patch but the answer to “where do we have PHP?”. Below we separate what PHP and the NCSC confirm from what researchers report and what remains contradictory.

What PHP and the NCSC confirm

PHP’s 21 October advisory (“Critical remote code execution vulnerabilities, update now”) describes two flaws. CVE-2026-109618: out-of-memory handling can interrupt PHP while internal request data is only partially initialized, and request cleanup then treats it as valid. CVE-2026-109619: request-owned internal state can survive after its memory is freed, and a later request on the same worker can use it. Both can allow unauthenticated code execution.

PHP says all installations serving web requests are at risk, including PHP-FPM, Apache with mod_php, php-cgi, FrankenPHP and LiteSpeed, with the highest risk on mod_php, where a demonstrated exploit lets an unauthenticated request trigger the attack before application code runs. The UK’s NCSC says the issue “may allow attackers to execute commands on any web server running PHP” and urges immediate action. PHP’s advisory does not list affected versions; it lists the fixed ones.

Update, 24 October: according to SecurityWeek, Amazon observed the first exploitation attempt on 17 October, and activity rose after the patch. Sophos says attackers tried to install “Potassium”, which it considers a Mirai variant, through PHP2Shell, but the attempt it analyzed was stopped; Sophos corrected an earlier report of a successful exploitation. VulnCheck published, for its customers only, an exploit for CVE-2026-109618 that works on x86-64 with ASLR enabled and error display off. No successful compromise had been confirmed, and Sansec revised its prediction of mass exploitation. Qualys estimates that about 71% of the PHP instances in its data run unsupported versions (5.4–8.1). Neither CVE was in KEV in the CISA feed of 23 October, which we checked directly.

Timeline, in UTC

  • ▸20 October: details become public before coordinated disclosure. According to Huntress, a post that was later removed circulated through screenshots, and watchTowr confirmed the leak within hours. Also on 20 October, PHP announces an emergency release, a day before the original embargo.
  • ▸21 October, 07:43: Cloudflare reports early attacks on PHP sites and enables WAF rules, according to Sansec.
  • ▸21 October, 14:00: PHP publishes the fixed versions. Huntress notes the release at about 13:30 UTC and Sansec at 14:00; PHP’s advisory says the release had been scheduled for 14:00 UTC.

Where sources differ

Exploitation: Sansec reports early attacks observed by Cloudflare, watchTowr says it saw exploitation on its honeypot network, Huntress saw no exploitation in its partner base at 14:00 UTC, and Sophos and Unit 42 did not report confirmed exploitation. These observations do not necessarily contradict each other, since they come from different environments, but they cannot be added into one figure. The PoC: Unit 42 says it saw exploit code, Sophos cites a user claiming to have built a working one, without confirming it, and Huntress knew of no public PoC.

Affected versions: before the patch, reports spoke of PHP 5 through 8. Sansec says the oldest affected code dates from PHP 5.4.0, and the NCSC says “any version”. The official line covers only 8.2 and newer. For 8.1 and older, PHP says they no longer receive updates from the project, but it published minimal source backports for 7.4, 8.0 and 8.1, and some distributions and LTS vendors offer backports. Unit 42 counts more than 22.6 million potentially vulnerable exposed instances through Cortex Xpanse telemetry; that is an exposure estimate, not a count of compromises.

We could not read Plesk’s page on PHP shipped with Plesk (403); a search summarizes it as listing PHP 7.4–8.1 as affected and not yet patched. Check directly with Plesk, your distribution or the appliance vendor.

Update, 28 October: CISA added both CVEs to KEV on 26 October, with a federal deadline of 29 October (we checked the KEV feed directly), and updated its PHP alert. The Hacker News reports that Unit 42 retracted its assessment that post-compromise activity against a European government agency involved exploitation of PHP2Shell, saying it cannot confirm that initial access is tied to these CVEs. The same source cites a researcher who recorded on honeypots what “appears to be” the first successful in-the-wild exploitation, with no second-stage artifacts observed, and CYFIRMA, which links, with moderate confidence, low-volume global scanning to an operator in the Lazarus ecosystem; that is a single vendor’s claim. The PHP Foundation also flagged a third RCE flaw, CVE-2026-115560, which needs an unusual combination of configurations.

Update, 29 October: on 28 October CISA added CVE-2026-46300 (Fragnesia), a local Linux kernel flaw, to KEV, and says in the catalog entry that it can be chained with CVE-2026-109618 and CVE-2026-109619 to implant PHP webshells and run commands as root; we checked the entry directly in the KEV feed. The text of CISA’s alert does not mention the chain, and we found no independent report describing it. For PHP servers, the PHP fix is no longer enough: see our analysis of Fragnesia and the Linux kernel.

Find all the PHP

  • ▸Inventory all PHP installations, starting with those reachable from the Internet. The NCSC asks you not to limit yourself to old versions.
  • ▸Include bundled PHP: control panels, vendor appliances and services, and CMSs such as WordPress, Drupal, Joomla or Magento. Huntress notes the PHP in these products is affected the same way.
  • ▸Record the exact version, the SAPI (mod_php, FPM, FrankenPHP, LiteSpeed, php-cgi) and who administers the installation. NCSC-NL publishes an inventory of products with potentially affected PHP dependencies.
  • ▸For PHP 5, 7, 8.0 and 8.1, decide now: upgrade to a supported version, a backport from your distribution or LTS vendor, or isolation behind a VPN or WAF, as Huntress recommends.

Update, then mitigate what you cannot update

Update to 8.5.12, 8.4.27, 8.3.36 or 8.2.35, starting with exposed systems. Linux distributions and LTS vendors received the fixes in advance, so check their packages; Huntress notes the Remi repository did not yet have updated packages on 21 October. PHP 8.2 reaches end of life on 31 December 2026, so an 8.2 target holds only temporarily.

If you cannot update immediately, PHP’s advisory lists mitigations that it describes as reducing exposure without making an installation safe. For CVE-2026-109618: memory_limit=-1 set with php_admin_value, a low post_max_size, request limits at the web server or proxy (size, field count, multipart parts, headers) and a container or cgroup limit that kills only the affected worker, not RLIMIT_AS or RLIMIT_DATA. For CVE-2026-109619: session.upload_progress.enabled=0 in php.ini or the pool configuration, with every worker restarted, and fatal_error_backtraces=0 on PHP 8.5. Sansec notes that memory_limit=-1 lets one request consume all server memory and that blocking multipart/form-data stops file uploads. If mitigations cannot be applied, the NCSC says to consider taking the system offline.

What to look for if you could not patch immediately

  • ▸PHP worker processes (php-fpm, php-cgi, httpd, apache2) that spawn shells, interpreters or download and network tools, reverse-shell patterns on the command line, and reconnaissance commands launched from the web server, according to Huntress.
  • ▸Unusual multipart requests followed by memory-limit errors or repeated 500s, unusually large or malformed PHPSESSID cookies, and unexplained worker restarts, according to Sansec.
  • ▸New files in the web root (webshells), cron jobs, scheduled tasks and new accounts, if you suspect compromise.
  • ▸Sansec states that freed memory can reach the client in a PHPSESSID cookie, with potential passwords, session tokens, API keys or TLS keys from other requests. That is a Sansec claim; if you ran exposed servers and have indications, treat the secrets on them as potentially exposed.
  • ▸If you suspect compromise: isolate the host, preserve the web and PHP logs, and get help from an incident response provider, as the NCSC suggests.

Close the alert with evidence

For each PHP installation, keep the version before and after, the SAPI, the date and time of the update (with time zone), the mitigations applied until then, the result of log searches and the decision for systems left on uncovered versions, with reason and deadline. For vendor-bundled PHP, keep the vendor’s written confirmation of its patch status.

How to monitor CVEs and get alerts for products in your inventory