Updated 23 Oct 2026: AWS confirms PHP2Shell exploitation attempts since Oct 17 and broad in-the-wild activity; adds retrospective incident-response guidance and UK NCSC recommendations.

Key details

  1. AWS MadPot saw a PHP2Shell exploitation attempt on October 17, 2026, before the October 21 disclosure and security release.
  2. AWS reports multiple actors attempting exploitation and broad in-the-wild activity after disclosure; observed attempts do not establish successful customer compromises.
  3. Released October 21, 2026: PHP 8.5.12, 8.4.27, 8.3.36 and 8.2.35.
  4. CVE-2026-109618: out-of-memory corruption; CVE-2026-109619: stale request-global state; each CVSS v4.0 9.2.
  5. All web-serving PHP SAPIs are at risk; PHP considers mod_php highest risk.
  6. Only upgrading to a patched release or verified vendor backport fully addresses the flaws.
  7. Minimal source backports exist for PHP 7.4, 8.0 and 8.1; branches remain unsupported.
  8. PHP 8.2 reaches end of life December 31, 2026.

What builders should take away

  1. Patch internet-facing PHP and retrospectively investigate from at least October 17; distinguish vulnerable-version remediation from separate incident-response investigation.
  2. Upgrade all web-serving PHP processes to fixed versions or verified vendor-backported packages immediately.
  3. Restart PHP-FPM/Apache and other workers and verify the running binaries.
  4. Treat memory, upload-progress and fatal-backtrace settings as partial exposure reduction only.
  5. Include shared hosts, containers and non-obvious endpoints; investigate compromise separately.
  6. Plan migration from PHP 8.2 before its December 2026 end of life.

What changed

October 23 follow-up: AWS Threat Intelligence published evidence of a PHP2Shell exploit attempt against its MadPot honeypot on October 17, before the coordinated disclosure and patches on October 21. It also observed additional activity before the embargo lifted and multiple actors deploying proofs of concept within hours of release; AWS says PHP2Shell is now broadly exploited in the wild. The honeypot traces demonstrate attempted exploitation, not proof of successful compromise in customer systems. The UK's NCSC independently urged immediate patching, investigation for compromise, and temporary risk reduction for systems that cannot be upgraded. On October 21, 2026 PHP released emergency fixes for CVE-2026-109618 (out-of-memory cleanup/state corruption) and CVE-2026-109619 (stale request-global state after backing memory is freed), each CVSS v4.0 9.2. Fixed builds: 8.5.12, 8.4.27, 8.3.36 and 8.2.35. PHP says all web-serving installations are at risk, including FPM, mod_php, php-cgi, FrankenPHP and LiteSpeed; mod_php is considered highest risk because a demonstrated exploit can run before application code. This supersedes the October 20 advance warning.

Why it matters

Verified pre-disclosure exploit attempts materially shorten the response window. Administrators should not assume scanning began after the PHP security release: assess logs and available telemetry from at least October 17, prioritize vulnerable internet-facing sites, and update every supported PHP branch to the fixed build. A WAF is a defense-in-depth mitigation, not a substitute for patched PHP. These are vulnerabilities in PHP itself, not just an affected application or plugin. Immediate action is to install fixed upstream or vendor-backported packages, restart workers and verify running binaries. PHP 8.1 and older are unsupported by the PHP project; emergency minimal source backports for 7.4, 8.0 and 8.1 do not restore ongoing support. Temporary configuration changes reduce only specific attack paths and cannot replace patching.

Active exploitation identified before public disclosure

Amazon's MadPot network recorded an exploitation attempt on October 17, ahead of the October 21 coordinated disclosure. AWS also saw attempts between 02:00 and 08:00 UTC on October 21, proof-of-concept code published rapidly, and further exploit use against sensors after the patch. AWS calls the activity broad in-the-wild exploitation but does not claim every observed request succeeded in a real production environment. Its published infrastructure indicators may be shared proxy networks, so they are investigation leads, not automatic blocking criteria. Operators should begin retrospective checks at least as far back as October 17 and immediately move to PHP 8.5.12, 8.4.27, 8.3.36 or 8.2.35 (or vendor-backported security-equivalent builds). UK NCSC guidance reinforces prioritising all internet-facing PHP and looking for prior compromise.

What the security team confirmed

CVE-2026-109618 arises when an out-of-memory bailout interrupts initialization and cleanup treats invalid data as valid. CVE-2026-109619 arises when request-owned state outlives freed backing memory and is reused by a subsequent request. Both can permit unauthenticated RCE. PHP lists all web-serving SAPIs at risk and considers mod_php particularly exposed.

Patch matrix and support boundaries

Install PHP 8.5.12, 8.4.27, 8.3.36 or 8.2.35, or a verified distribution/LTS-vendor backport. PHP 8.1 and older are unsupported, though emergency minimal source backports exist for 7.4, 8.0 and 8.1. The volunteer remirepo RPM repository warned its packages would not be updated on release day. PHP 8.2 reaches end of life December 31, 2026.

Partial exposure reduction is not a fix

For the OOM path, PHP describes memory_limit=-1 enforced administratively, strict upload/input limits and cgroup boundaries; underlying allocation failures remain possible. For the stale-state path, disabling session.upload_progress.enabled before parsing and restarting workers blocks confirmed session paths; PHP 8.5 may also disable fatal_error_backtraces. These measures do not cover all variants. A WAF or hidden error output is not a complete mitigation.

Operator response

Inventory Apache modules, FPM pools, containers, CGI workers and managed hosting. Confirm vendor packages contain the fix, even if distribution versions are backported. Upgrade, restart all workers, smoke-test authentication, uploads, sessions and background jobs, and independently check logs for compromise. Patching does not undo a previous intrusion.

Evidence limits

PHP.net is authoritative for CVEs, versions and SAPI exposure. Wiz research corroborates severe RCE and memory-disclosure risk, but estimates of internet-wide exposure should not be confused with confirmed compromised hosts. Publicly established exploitation scale remains uncertain.

What to watch next

  • Confirmed real-world compromises, new attacker tooling/IOCs, and distro/host-managed backport rollout following AWS's exploitation finding.
  • Distribution and managed-host package availability.
  • Security-team follow-up advisories, variants and evidence of exploitation.
  • Operational issues from emergency upgrades.

Still unclear

  • Actual exploitation scale is not established by PHP's primary advisory.
  • Downstream package versions vary where distributions backport fixes.
  • Partial mitigations may not prevent alternate exploitation paths.

Sources

Direct reading behind this dossier.

5 sources

Discussion

Discussion is reader-contributed. Comments are not part of the BTN dossier or its editorial evidence.

0 visible comments

Join the discussion

Keep comments useful and relevant. Reader contributions may be moderated and are not BTN editorial evidence.

Sign in to comment