AWS WAF Provides Critical Interim Protection Against Widespread PHP2Shell Exploitation
On October 21, 2026, the PHP project released urgent patches for two critical remote code execution (RCE) vulnerabilities, CVE-2026-109618 and CVE-2026-109619, collectively dubbed PHP2Shell. These vulnerabilities, rated 9.2 (Critical) under CVSS v4.0, allow unauthenticated attackers to execute arbitrary code on vulnerable servers. Fixed PHP versions include 8.5.12, 8.4.27, 8.3.36, and 8.2.35.
This development is highly significant for any organization running PHP applications, particularly those with large or complex environments. The unauthenticated nature and high severity of these RCE flaws mean that vulnerable systems are at immediate and severe risk of compromise. While patching is the definitive solution, the reality of enterprise-scale deployments often means that immediate, widespread patching is not feasible due to inventorying, testing, and scheduling constraints. This is where the guidance from AWS becomes critical, offering a practical interim defense strategy.
The emergence of PHP2Shell aligns with a broader trend of increasingly sophisticated and rapidly exploited zero-day and N-day vulnerabilities. The shrinking window between vulnerability disclosure and active exploitation, as highlighted by Amazon Threat Intelligence's detection of PHP2Shell exploitation prior to public disclosure, underscores the need for proactive and layered security measures. Cloud providers like AWS are continuously enhancing their security offerings to help customers manage these evolving threats, moving beyond simple detection to providing actionable mitigation strategies.
In practice, practitioners should prioritize upgrading their PHP installations to the patched versions immediately. However, for systems that cannot be patched instantly, implementing the recommended AWS WAF rules is a crucial compensatory control. These rules, focusing on `multipart/form-data` request processing, request body size, and the session upload progress field, can help block known attack patterns. It's vital to understand that WAF provides a temporary reduction in exposure, not a complete fix. Organizations must avoid a false sense of security and continue with their patching plans. Furthermore, monitoring WAF logs for blocked attempts can provide valuable insights into ongoing attack campaigns targeting their infrastructure.
Read original source