Exposure assessment ≠ compromise detection. This guide cannot determine whether a particular system was compromised. Verify the current advisory and your exact runtime.

What the advisory establishes

This is a server-side PHP engine flaw that can let an unauthenticated request execute code with the web worker’s permissions. Review the PHP build serving your website, including Apache mod_php and PHP-FPM; an application update alone does not patch that runtime.

PHP uses a nonlocal exit when an allocation exhausts memory. Some operations do not safely account for that interruption when preparing request data. Later cleanup may treat partially initialized data as valid. The upstream advisory documents the route from that condition to remote code execution.

This is not a claim that any single large request compromises every server. Reachability and exploitability vary with the runtime and the operation interrupted. The defensive priority is to replace vulnerable builds, rather than attempt to predict every possible input.

Runtime differences

Apache mod_php has demonstrated attack paths during request setup before application code executes. PHP-FPM handles startup failures differently. The absence of an identical startup exploit does not establish that FPM deployments are immune to the PHP2Shell vulnerabilities.

Review both advisories and the Foundation analysis. Application-level paths, enabled extensions and worker behavior matter. An internet-facing runtime warrants urgent patch verification.

For this CVE, upstream supports FPM susceptibility through source analysis but does not report a complete FPM exploit. This distinction is not an exemption from patching.

Patch and verify

Updating to a build containing the fix is the only complete mitigation. For installations that cannot update, upstream describes administratively enforcing memory_limit=-1 as an incomplete fallback. Removing PHP’s per-request memory limit can increase resource-exhaustion risk; the advisory also requires frontend request bounds and worker restarts. Have the runtime owner review the full mitigation section before changing production settings. This OOM workaround does not fix the other PHP2Shell vulnerability.

  • Use at least the first fixed upstream release on the relevant branch: 8.2.35, 8.3.36, 8.4.27 or 8.5.12; check for newer security releases.
  • For vendor packages, use the distribution notice and full revision rather than the core PHP number alone.
  • Replace or restart all serving workers after the update; validate the runtime in authenticated administration.
  • If immediate patching is impossible, restrict exposure and escalate. Configuration and WAF mitigations cannot establish complete protection.

CHECK THE ORIGINAL GUIDANCE

Sources & further reading

PHP advisory · Out-of-memory corruptionNVD · CVE-2026-109618PHP project · October 2026 security releasesThe PHP Foundation · Security release analysis

Advisory snapshot: 2026-10-22. Next review due: 2026-10-29. Recheck sources before acting; this site does not update advisories automatically.