Exposure assessment ≠ compromise detection. This guide cannot determine whether a particular system was compromised. Verify the current advisory and your exact runtime.
23 October 2026: session upload progress
PHP recommends setting session.upload_progress.enabled=0 until the next regular bugfix release. If already disabled, keep it disabled.
The follow-up, CVE-2026-115560, requires upload progress enabled, session.serialize_handler configured as php_binary or php_serialize, and application code switching it to php with ini_set() before session_start(). PHP says applications that never change the handler at runtime may leave upload progress enabled.
Apply the setting before request parsing through php.ini, the FPM pool or server configuration, then restart every PHP worker. Do not rely on a runtime ini_set() or FPM .user.ini.
This configuration precaution does not replace patches for CVE-2026-109618 and CVE-2026-109619 or cover every attack path. The first-fixed version table still applies to those original two CVEs. The notice does not announce a fixed release for the follow-up.
Sources: PHP notice · 23 October 2026 and the upstream session mitigation guidance.
Verify the traffic path and protections
Cloudflare’s published guidance describes deployed WAF protections for PHP2Shell. Review current guidance and your account’s active rules. Paid customers should confirm the relevant Managed Ruleset operates in the intended blocking mode.
Confirm the relevant hostname is proxied and that requests cannot casually bypass the proxy to reach the origin. Origin access restrictions depend on the architecture and must preserve health checks, trusted integrations and administrative recovery. Do not apply an untested firewall allowlist to an unknown server.
- Unexpected unfiltered traffic: check that the HTTP hostname is Proxied, not DNS only. Cloudflare’s WAF acts on traffic passing through its proxy.
- A managed rule did not act: inspect its deployment, enabled status and exceptions that may skip it. Proxy status alone does not establish that the intended rule ran.
- A legitimate request is blocked: identify the matching rule and action in Security Events before tuning the rule. Do not disable the entire WAF to verify a PHP update.
Before you change the runtime
Record the current package revision, runtime handler, configuration and deployment topology. Confirm a current fix for both CVEs from the responsible vendor. Back up application data and configuration using a tested restore process. If an incident is suspected, preserve evidence before changing processes or files.
Test the intended PHP build with the application, extensions, scheduled jobs and database in staging. Plan a maintenance window or a rolling change with health checks. Keep a configuration and application rollback plan; do not restore a vulnerable runtime to public traffic without restricting exposure.
Patch behind the proxy
Identify and update the origin’s actual PHP packages or container images using the corresponding environment guide. Replace every worker and test the application through its normal traffic path.
WAF detection evolves as attack patterns change. Blocking some requests does not prove all vectors are covered, and a lack of WAF alerts does not establish that the origin has not been targeted or compromised.
- Traffic protection: Cloudflare filters proxied requests; it does not update PHP packages or replace the origin’s PHP workers.
- Runtime remediation: your hosting provider or authorized server administrator must update the actual origin build and verify its serving workers.
Use events as investigation evidence
Filter Security Events to the relevant hostname and time window, then inspect the action and security feature. Sampled logs contain a subset of events, not every request; an empty result does not prove that no attack reached the origin.
- Preserve relevant WAF event timestamps and request identifiers.
- Correlate events with origin access logs, PHP errors and worker crashes.
- Distinguish a blocked request, an allowed suspicious request and evidence of successful execution.
- Retain protections during and after remediation, while tuning false positives through change control.
Verify the result and handle a delayed patch
Check the actual web-serving binary, package revision or image on every instance. Replace old workers and verify their startup times. Validate application health, uploads, sessions, queue workers and scheduled jobs. CLI output alone does not prove what serves HTTP requests.
If a fixed deployment fails compatibility checks, restrict access and escalate to your vendor or administrator. Temporary WAF or configuration changes may reduce specific attack paths but are not a complete substitute for patching. Investigate suspicious activity separately: a successful update cannot establish that the system was never compromised.
CHECK THE ORIGINAL GUIDANCE
Sources & further reading
Cloudflare · PHP vulnerabilities and WAF protectionPHP project · October 2026 security releasesPHP advisory · Stale global stateAdvisory snapshot: 2026-10-22. Next review due: 2026-10-29. Recheck sources before acting; this site does not update advisories automatically.