Work top to bottom. Check the box when done, note what you found. Detection and forensic triage only — do not attempt to reproduce the flaw or run exploit code.
CISA KEV status
- CVE-2026-109618 · PHP Group PHP · in CISA KEV (“PHP Memory Corruption Vulnerability”) · added 2026-10-26 · federal due 2026-10-29
- CVE-2026-109619 · PHP Group PHP · in CISA KEV (“PHP Stale Internal Request-State Vulnerability”) · added 2026-10-26 · federal due 2026-10-29
Sources: CISA KEV: 109618 · 109619 · NVD: 109618 · 109619 · Vendor advisory: PHP security advisories GHSA-w8hw-w9fx-j79w / GHSA-6wmf-4rv5-p3rp
Verified against CISA KEV on 2026-12-04 (catalog version 2026.12.03). Re-checked weekly by
tools/verify_kev.py.
php -v, plus the web server configuration
(Apache mod_php, PHP-FPM, php-cgi, FrankenPHP, LiteSpeed/LSAPI).sh, bash, dash, zsh) — the primary signal,
CISA’s stated observable (“PHP worker processes launching shells or
downloading tools”)curl or
wget.php / .phtml under the web root, uploads, or /tmp — excluding
template-cache directories (storage/framework/views, var/cache,
cache/twig), which frameworks write legitimatelyAllowed memory size
exhausted / OOM entries in the PHP error log, or worker restarts
clustering around the same window. A crash alone is not exploitation;
a crash next to the signals above isforensicTriage: Yes)A host that ran unpatched PHP while internet-exposed must be checked for compromise, not merely patched. CISA lists both CVEs with forensic triage required; ransomware use is Unknown for both.
.php under the web root, uploads, /tmp, or
anywhere a web worker can write — treat as hostile until proven
otherwise; compare content against known-goodauthorized_keys for
the web worker accountmemory_limit=-1 removes the predictable per-request
limit the confirmed exploit uses — but it is not complete, because an
mmap() failure can still trigger the vulnerable path. Keep
post_max_size conservative and enforce the decoded request size at
the frontend; reduce max_input_nesting_level; bound input variables,
multipart parts, headers per part, and uploads; block multipart at the
frontend if the app does not use it. Do not use RLIMIT_AS /
RLIMIT_DATA — they make mmap() fail and trigger the vulnerable pathsession.upload_progress.enabled=0 kills the demonstrated
session-lifecycle path, and on PHP 8.5 fatal_error_backtraces=0
removes the producer behind the confirmed case; consider
pm.max_requests=1; prefer startup configuration over per-request
overrides; eliminate fatal errors and diagnostics on attacker-reachable
pathsFrom the repo root:
python3 07-kev-hunting/detect/php2shell-detect.py \
07-kev-hunting/samples/php2shell-sysmon.log
Expect one [INCIDENT] (web-01: shell + download tool + outbound + webshell
drop inside 30 seconds) and three [SUSPICIOUS] (web-02: legitimate
application shell-out — pdftotext, triage to allowlist; web-03: lone shell
spawn; web-05: direct download-tool spawn under the worker). web-04 is clean:
FPM pool spawns, cron php artisan, admin and monitoring curl, a direct
outbound connection from the worker, and a template-cache .php write. All
lines are synthetic training data.
Wazuh: 07-kev-hunting/detect/php2shell-wazuh-rules.xml — four rules
(100100 shell spawn, 100101 download tool, 100102 webshell drop, 100110
correlation). They were checked structurally only; there is no Wazuh manager
in this lab, so validate them on a manager before relying on them (see the
file header for the assumptions, including the stock Sysmon decoder fields
and the negate / if_matched_group points to confirm).