← All articles
Incident Response 6 min read

PHP2Shell: The Patch, the WAF Rule, and the Exposure You Still Need to Check

An AWS response plan for PHP2Shell that connects runtime patching, WAF coverage, deployment artifacts, and investigation of the earlier exposure window.

CloudDefender Team ·

Listen to article

Narrated by Andy · 7:03

Download

A critical runtime advisory creates two clocks. One measures how quickly the organization reduces exposure. The other measures how long vulnerable systems may already have been reachable. Installing a patch stops neither clock from needing an owner.

The October PHP2Shell disclosures are a useful test of that operating model. The PHP project published fixes for CVE-2026-109618 and CVE-2026-109619 on October 21. AWS subsequently updated its WAF guidance as managed protections and advice for older PHP branches evolved. The response now needs to connect the runtime, the deployment system, the edge control, and the evidence of what happened before the fix.

The most consequential sentence in AWS’s guidance is its insistence on patching. A web application firewall can reduce exposure during the rollout. It does not make an unpatched PHP runtime safe in every configuration.

The firewall sees requests while patching changes the runtimeAn internet request crosses an edge filter before reaching a PHP worker. A separate deployment path patches the worker, while an investigation timeline extends back before the patch.TWO CONTROLS. TWO DIFFERENT BOUNDARIES.WAFrequest filterPHP workermemory + configurationPatched deploymentInvestigate earlier exposureVerify the fix
Illustrative control boundaries. Edge filtering reduces some request-driven exposure; a patched deployment and a retrospective investigation answer separate questions.

Find the PHP that actually serves traffic

Asset discovery should start with the serving runtime, not just the package inventory on the host. A machine can contain multiple PHP versions. The command-line binary may not be the interpreter used by an application server, and a newly built image may not be the image the current task is running.

Map internet-facing routes to their origins, deployment artifacts, runtime branches, and application owners. Include containers, machine images, managed deployment platforms, administrative interfaces, and older applications that no longer have an active feature team. Record which systems are confirmed patched and which remain unknown.

The upstream advisories and companion disclosure identify the fixes for the original two issues. Their technical descriptions also show why configuration and execution environment matter. Avoid flattening those differences into a claim that every PHP installation has the same demonstrated exploitation path.

Use currently supported vendor guidance for the actual distribution in use. A downstream package may carry a backported fix without matching the upstream version string exactly. Document the evidence for that conclusion rather than declaring it safe based on the presence of a familiar package name.

Verify both the patch and the rollout

The initial upstream fixes for the two October 21 vulnerabilities were PHP 8.2.35, 8.3.36, 8.4.27, and 8.5.12. Those are reference points for the original disclosures, not a recommendation to stop checking newer security releases. AWS later discussed a separate related issue, CVE-2026-115560, which the original releases did not fix.

The response owner should therefore maintain an issue-to-fix mapping, not a single checkbox labeled PHP2Shell. Record which advisory each deployment addresses, which configuration mitigations remain applicable, and which current vendor release has been approved.

Then verify the running fleet. A successful build or deployment job is evidence that a process completed, but the closure condition is the software state that now serves traffic. Check for old tasks, surviving worker processes, rollback artifacts, and launch definitions that can recreate vulnerable instances.

For unsupported branches, treat backports as a specific remediation path requiring validation, not a renewal of normal upstream support. AWS’s October 29 update discusses available source backports for some older branches. An application owner still needs to establish who maintains that patched build and how it will receive the next fix.

Make WAF coverage an observed fact

Inspect the actual protection associated with each public route. Does traffic pass through the intended web ACL? Is the relevant managed rule group attached? Does the configuration use the maintained default version or pin an older version? Are rule actions enforcing, counting, or overridden?

AWS’s published response identifies managed PHP rules for the original vulnerabilities and explains their limitations. It notes that body inspection limits, multipart handling, and runtime state can leave exposure outside a simple edge filter. Read those limits before treating blocked requests as proof that exploitation is impossible.

Changes also need application testing. A temporary restriction on uploads can reduce exposure while disrupting a legitimate business function. The owner of that function should know what has been blocked, how exceptions are approved, and when the restriction will be reconsidered.

Do not copy an emergency rule into every account without checking its reach and effect. The goal is a controlled reduction in risk while the fleet is patched, with a clear path to remove or retain the compensating control afterward.

The exposure window is an investigation scope

A patched system may still need incident review. Establish when the affected runtime was deployed, when it became reachable, and when the fix actually took effect. Preserve available edge, load-balancer, application, endpoint, and deployment evidence for that interval according to the organization’s retention rules.

CloudTrail has a role in this investigation, but it is not a transcript of every application request or process action. It can help reconstruct relevant AWS API activity and identity use. Application-layer and host evidence must come from the systems that observed those layers. Our logging-gaps article explains that distinction.

Look for evidence that changes the response decision: unexpected processes, new outbound connections, modified application files, unusual identity activity, or persistence inconsistent with approved deployments. Those are investigative categories, not a PHP2Shell-specific detection guarantee. Absence of a retained log cannot be converted into absence of compromise.

Give every uncertain system an owner

The most useful response dashboard may be a small table with no decorative risk score:

Response fieldRequired record
Workload and ownerNamed service and responsible team
Serving runtimeBranch, build, and deployed artifact
Fix evidenceRunning version or validated distribution backport
Edge protectionAssociated ACL, managed group, version, and action
Earlier exposureBounded interval, retained evidence, and gaps

The table is a proposed record for each workload. Its purpose is to make unknowns actionable. A workload with no owner should not quietly disappear from the report because the team cannot patch it quickly.

Set closure criteria before the count of vulnerable systems reaches zero. The deployment source must be fixed, the running workload must be verified, temporary controls must have an owner, and the retrospective investigation must have a disposition. Some systems will need further review after their software is current.

That is the durable lesson from an emergency runtime advisory. Good patching changes the software state. Good incident response also explains the period when the organization depended on that state and did not yet know it was unsafe.

Sources and reporting notes


CloudDefender helps teams prioritize cloud exposures and maintain ownership of remediation. An emergency fix is more defensible when the record shows what changed, where it changed, and which investigation questions remain open.

CloudDefender

Defend your cloud. Continuously.

CloudDefender Suite gives security teams continuous posture management, threat detection, and compliance automation across AWS, Azure, and GCP — with zero false-positive fatigue.

Try CloudDefender →