Back

PHP2Shell patches are out: what is at risk and how to protect PHP sites
SiTech AI Team5 min read

PHP2Shell patches are out: what is at risk and how to protect PHP sites

PHP 8.5.12, 8.4.27, 8.3.36 and 8.2.35 are released. The official warning covers web-serving deployments; temporary mitigations do not replace the security update.

Fixes for the two critical PHP2Shell vulnerabilities have been released. PHP's team published PHP 8.5.12, 8.4.27, 8.3.36 and 8.2.35 and urges users to update immediately. The official warning covers PHP installations serving web requests; Cloudflare had already reported emerging attacks.[13][5]

Updated after checking sources on October 21 at 17:55 Tbilisi time, UTC+4. The release was originally scheduled for 18:00 Tbilisi time, or 14:00 UTC, but the official advisory and fixed versions were already available when checked. This is no longer only a warning to prepare for an update.[3][13]

What is confirmed, and why the timetable changed

PHP's team rated both vulnerabilities CVSS v4.0 9.2.[3] The new official advisory now names CVE-2026-109618 and CVE-2026-109619, explains their mechanisms and confirms the unauthenticated remote-code-execution risk.[13] CERT-EU had already warned about these identifiers.[4]

watchTowr's chief executive confirmed the flaws' reality to BleepingComputer and assessed their severity as 10.[10] That is a researcher's assessment, not PHP's official score; the quotation provides no scoring vector for a precise like-for-like comparison.[10][3] watchTowr also says it believes it reproduced CVE-2026-109618.[10] That does not establish that both flaws have been fully investigated.[10]

  • On October 20, researchers reported a leak concerning vulnerabilities still under embargo.[10]
  • PHP scheduled its emergency release for October 21. The October 22 date remaining in older reports no longer matched the official timetable.[3][8]
  • On October 21, Cloudflare's CTO reported early attacks and temporary WAF protections.[5]
  • At the October 21, 17:55 Tbilisi check, PHP's official advisory and fixed releases for four supported branches were already published.[13]

Which systems are at risk?

Remote code execution, or RCE, means an attacker can execute code on a target system. PHP explains that CVE-2026-109618 concerns partially initialized request data after out-of-memory handling: cleanup may treat invalid data as valid. With CVE-2026-109619, request-owned internal state can survive after its backing memory is freed, and a later request handled by the same worker may use that stale state.[13]

PHP's team considers all PHP installations serving web requests at risk, including PHP-FPM, Apache with mod_php, php-cgi, FrankenPHP and LiteSpeed. It rates the risk highest for mod_php, with a demonstrated exploit where an unauthenticated request can trigger an attack before application code runs. This does not establish identical exploitation prerequisites across every configuration.[13]

PHP 8.1 and older branches no longer receive the project's normal updates. A distribution or LTS supplier may provide a backported fix; check the specific package. Exceptionally, PHP's team has also provided minimal source backports for PHP 7.4, 8.0 and 8.1. That does not restore ordinary support for those branches.[13][11][12]

Attack reports are not proof of mass compromise

Cloudflare CTO Dane Knecht wrote on X that the company sees early attacks and updates mitigations as new vectors emerge.[5] A blanket statement that no exploitation has been reported anywhere is therefore outdated.[5] However, his statement provides no successful-compromise count, measured attack scale, or separate analysis of each CVE.[5]

Huntress's article says it had not observed such exploitation in its partner environments at its stated checkpoint, and had not built or reproduced a proof of concept.[9] That is a bounded observation, not evidence that the whole internet is safe.[9] The previous week's PHP incident discussed in the same article is explicitly described as unrelated to PHP2Shell.[9]

WAF protection is a stopgap, not a patch

Knecht says initial WAF rules for known attack vectors are available to all customers, including Free. Official emergency changes have also been published for both the Managed Ruleset and Free Ruleset. Their descriptions are generic; the CTO's statement supplies the connection to PHP.[5][6][7]

Cloudflare explicitly describes the protection as temporary and urges users to patch. The existence of rules does not prove they are correctly enabled on any particular site. The hosting or security owner should verify that protection is actually enforcing decisions rather than merely logging requests.[5]

What website owners should do

CERT-EU, the cybersecurity service for EU institutions and bodies, recommends identifying PHP applications and preparing to patch promptly. When immediate remediation is infeasible, it recommends considering temporary isolation of internet-facing applications, not indiscriminately taking every site offline.[4]

  1. Inventory PHP deployments, identify the version actually serving web requests, and name the person or provider responsible for updates.
  2. Prepare a backup, testing plan and rollback path. Ask the hosting provider or distribution for guidance addressing these specific CVEs.
  3. Tie remediation to an officially fixed release or the supplier's applicable security patch. Running a general system-upgrade command does not, by itself, prove this issue is fixed.
  4. After updating, verify the running environment and application health. Preserve logs, and do not run unknown online “testing” code on production servers.

The next check is not just PHP's announcement but the package status at your distribution or hosting provider. Complete the update by verifying the version actually running and the application's health. PHP warns that temporary measures reduce exposure to specific paths without making an installation safe; updating is the complete solution.[13]

Sources: [3] PHP Security Team · [4] CERT-EU · [8] watchTowr · [9] Huntress · [10] BleepingComputer · [5] Cloudflare CTO · [6] Cloudflare Managed Ruleset · [7] Cloudflare Free Ruleset · [11] PHP supported versions · [12] PHP end-of-life branches · [13] PHP security advisory

SiTech

SiTech — AI-powered web development

We build fast, modern websites and bring AI into real business workflows. Have a project or a question? We'd love to help.