A PHP out-of-memory error can show someone tried PHP2Shell. A web-server process launching an unexpected program can show what happened afterward. Neither signal, on its own, proves which vulnerability was used.12 If you run internet-facing PHP or Node.js, collect error logs, process events and network telemetry together, then patch the affected runtimes. A detection rule is not a fix.
You're affected if you run PHP exposed to web requests without the October 21 fixes—8.5.12, 8.4.27, 8.3.36 or 8.2.35—or an older build without an applicable vendor backport. PHP2Shell covers CVE-2026-109618 and CVE-2026-109619. You're also affected by Node2Shell, CVE-2026-111497, if a vulnerable Node.js runtime decompresses untrusted Brotli data. Official upstream Node.js fixes are 22.23.4, 24.22.1 and 26.12.1. CISA added both PHP flaws to KEV on 26 October, with a federal due date of 29 October, and the Brotli flaw on 27 October, due 10 November. All three are listed as exploited. Status as of 4 November 2026.345
The complete PHP2Shell and Node2Shell guide covers the vulnerabilities and patches. This page covers the detection rules: what to collect, what to alert on and what a clean result cannot tell you.