An emergency PHP update requires more than checking a console version. A site owner needs to establish which interpreter serves web requests, what is actually deployed, and whether every process received the fix.

As of 24 October 2026, CVE-2026-109618 and CVE-2026-109619 each have an official CVSS v4.0 score of 9.2. These are PHP runtime flaws, not WordPress plugins, Composer packages, or Laravel bugs. Updating a CMS and its dependencies does not replace runtime remediation. The opposite overstatement is also unsafe: an RCE advisory does not show that every PHP site is compromised, that every configuration has the same exploit path, or that code execution automatically means root access.

What Was Fixed on 21 October

On 21 October, PHP released 8.2.35, 8.3.36, 8.4.27, and 8.5.12. The official advisories list these as patched versions for the two PHP2Shell issues. PHP treats installations serving web requests as requiring action. The strongest demonstrated case reaches the vulnerable path before application code under Apache mod_php.

How the Two PHP2Shell Vulnerabilities Differ

In CVE-2026-109618, PHP can abort request handling on out-of-memory before request state is fully formed. Shutdown then treats that state as valid. Under Apache mod_php, the vulnerable transition can occur before application code. FPM exits a child when request startup fails, so its path differs; analysis identifies possible conditions after successful request initialization, during application-stage operations, but the advisory does not claim a complete demonstrated FPM exploit for this CVE.

CVE-2026-109619 concerns state retained by a worker after memory owned by a request has been freed. A later request can consume the stale state before normal initialization. The FPM caveat from the previous CVE must not be copied here: the advisory confirms an FPM path involving session upload progress when application behavior creates suitable state and a later request reaches the same worker.

The operational conclusion is narrower. SAPI and worker design affect exploit paths, but they do not justify removing FPM, CGI, FrankenPHP, or LiteSpeed from inventory. Patch first; use reachability detail to prioritize follow-up and investigation.

Why CVE-2026-115560 Needs a Separate Decision

PHP’s 23 October notice identifies CVE-2026-115560 when session.serialize_handler=php_binary/php_serialize changes to php via ini_set() before session_start(), with upload progress enabled. Temporarily set session.upload_progress.enabled=0. Apply this setting administratively before request processing and restart every worker; do not rely on application-level ini_set(). Without runtime serializer switching, PHP permits keeping it enabled. Full advisory details remain pending. This disables progress tracking, not file uploads.

Which Systems Belong in the Inventory

Start with every environment where PHP accepts web requests: public and internal sites, administration panels, APIs, background HTTP endpoints, FPM pools, mod_php, CGI, FrankenPHP, LiteSpeed, containers, and vendor-embedded products. php -v in a shell can report a different binary and configuration from the web SAPI. The PHP configuration manual describes different php.ini loading behavior for server modules, CGI, and CLI. Inventory must bind an endpoint to its SAPI, pool or worker, package or image, owner, and exposure.

If the open question is which runtime and INI set actually serve a route, first record the authorized endpoints, roles, SAPI or pool, and permitted checks in the pentest scope planner. Within those boundaries, Pentest.red can perform a human-led check of the specific deployment and configuration: confirm the observed SAPI, version or package revision, and relevant session settings. This check does not install the patch and should not delay the urgent update.

The PHP support table currently lists 8.2 through 8.5; older branches do not receive ordinary project releases. A distribution or LTS vendor may still provide a backport, so verify its advisory and package revision. For example, Red Hat evaluates CVE-2026-109618 in the context of its builds and FPM deployment. A base version string alone does not prove that a backport is present or absent. Such a patch also does not restore lifecycle support, so migration remains necessary.

Minimum upstream releases fixing CVE-2026-109618 and CVE-2026-109619:

Scroll sideways to compare

PHP branchMinimum upstream release for the two PHP2Shell CVEs
8.28.2.35
8.38.3.36
8.48.4.27
8.58.5.12

This table applies only to the two PHP2Shell CVEs and does not claim that the separate session condition is fixed. A vendor backport requires vendor evidence rather than the upstream version number.

Update the Running Runtime, Not Just the Project

In a container environment, a new registry tag does not change running pods or tasks. Docker says that it updated its Official Images and Hardened Images, but an operator still needs to update the base image, rebuild a custom application image where applicable, and then deploy the checked digest to every replica while removing old instances from service. A package inside a base image likewise will not change because someone ran composer update.

Useful acceptance evidence records the endpoint, SAPI, package version and revision, image digest, deployment identifier, updated replica count, and evidence for any vendor backport. The guide to verifying the component actually deployed helps prevent a CI or registry version from being mistaken for the process serving users.

From urgent advisory to verified remediation
  1. InventoryBind every web endpoint to its SAPI, pool, package or image, and owner
  2. PrioritizeUpdate public systems first, then internal and embedded instances
  3. DeployRebuild images, restart workers, and replace every replica
  4. VerifyRead version, package revision, and digest from the running environment
  5. ObserveSeparately investigate earlier exploitation and monitor for the next PHP release

Verify Deployment Without a Dangerous PoC

Proving remediation does not require a destructive production payload. Establish the origin of the patched package or image, replacement of processes, replica consistency, and normal service operation. Check HTTP health, important user journeys, startup logs, session-upload-progress configuration, and the absence of an old digest behind the load balancer. If rollback becomes necessary, a configuration validation plan after rollback should prevent reintroducing the vulnerable runtime.

A WAF can temporarily reduce attack surface, but it does not repair PHP memory faults and cannot replace the update. When patching is delayed, apply published mitigations and risk-based access restrictions. Consider removing a system from service when it cannot be protected in time.

After patching, Pentest.red can conduct an agreed web application penetration test for selected endpoints and roles. The deliverable can include reproducible evidence of the runtime actually observed, remediation priorities in technical and executive reporting, and a narrow retest after the owner deploys changes. This work cannot prove that earlier compromise never occurred, guarantee discovery of every vulnerability, or justify delaying the urgent patch.

Separate Remediation from Compromise Assessment

On 22 October, CERT-In reported multiple reports of large-scale exploitation in the wild involving the two PHP2Shell CVEs. That attributed warning supports urgent action. It is not an independently verified victim count, evidence about CVE-2026-115560, or proof that every attempt achieved code execution.

The NCSC recommends finding public and then internal installations, patching or containing them, and assessing evidence of compromise and possible backdoors when updates are delayed. A patched runtime closes the two PHP2Shell flaws, but it does not revoke stolen credentials or remove changed files, scheduled jobs, web shells, or other persistence that an attacker may have established earlier.

Run two parallel tracks: remediation with version evidence, and incident review that preserves logs and examines suspicious request timing, file changes, and account activity. The decision to conduct a full investigation should follow exposure, observed signals, and system value rather than the old version alone.

Decisions to Make Today

Assign an inventory owner and a deadline for replacing all web runtimes. Record the minimum fixed versions for supported branches, how vendor backports will be validated, and a separate migration plan for EOL systems.

Close the work only after proving deployment, not after merging a pull request. Keep three claims distinct: “the package is fixed,” “the fixed package is running on every instance,” and “no evidence of earlier compromise was found at the agreed depth.” That distinction turns an emergency update from a ticket status into a controlled security decision.

PENTEST.RED

Discuss pentest scope and pricing

We start by agreeing on systems, access, constraints and the expected evidence.

Prepare your testing scope

Based on in-depth research, edited for clarity and practical use.

PENTEST.RED / RED JOURNAL