Skip to content

Image: d2908q01vomqb2.cloudfront.net · rights & removal

Executive Summary

Critical remote code execution (RCE) vulnerabilities, collectively named PHP2Shell (CVE-2026-109618 and CVE-2026-109619), were disclosed in core PHP runtime versions. These flaws allow unauthenticated attackers to execute code on a vulnerable server and are rated Critical (CVSS v4.0, 9.2). While upgrading PHP to patched releases (PHP 8.5.12, 8.4.27, 8.3.36, or 8.2.35) is established as the sole complete fix, organizations face time delays in patching large infrastructures. AWS WAF deployment offers a mitigation strategy during this window by utilizing new managed rules, such as the PHP application rule group version 2.3, which introduces controls against specific attack vectors like those related to CVE-2026-109619 via multipart traffic inspection. It is crucial, however, that organizations understand WAF's limitations: it cannot inspect server memory or configurations, meaning its role is strictly defensive in depth, not a replacement for patching.

Facts Only

Critical RCE vulnerabilities (CVE-2026-109618 and CVE-2026-109619) affected PHP core runtime before October 21, 2026. Emergency fixes were released in PHP versions 8.5.12, 8.4.27, 8.3.36, and 8.2.35 on that date. AWS WAF version 2.3 of the PHP application managed rule group was released on October 22, 2026, adding the PHP2ShellBODY rule for CVE-2026-109619. The vulnerabilities are rooted in how PHP handles multipart/form-data request processing. AWS WAF can partially mitigate out-of-memory conditions by capping body size with Core rules but cannot address server configuration issues or internal worker memory corruption entirely.

Full Take

The situation presents a classic tension between the speed of digital threat proliferation and the operational inertia of large-scale system maintenance. The narrative champions a layered defense model—AWS WAF as the perimeter guardrail, PHP patching as the architectural cure. This framework assumes that network defenses are logically distinct from application runtime fixes; yet, the article itself demonstrates this separation is imperfect, detailing where WAF's edge inspection fails to reach worker memory or internal state management within PHP. The cost here is time: administrators must implement defensive controls in a temporary operational state (Count mode) while they navigate inventory and testing cycles for the definitive fix. This highlights a systemic pattern where security response must often bifurcate into immediate tactical shielding versus long-term strategic remediation, placing immense cognitive load on DevOps teams to manage concurrent risk reduction activities. The unstated assumption is that administrators possess sufficient visibility—inventorying every PHP execution point—which frequently proves false in complex cloud environments.
Patterns detected: none

From the original · AWS Security Blog

AWS Security Blog Using AWS WAF to apply mitigations for PHP2Shell RCE vulnerabilities (CVE-2026-109618 and CVE-2026-109619) October 22, 2026: We updated this post to add the AWS WAF PHP application managed rule group. Version 2.3 of the rule group adds the PHP2Shell_BODY rule for CVE-2026-109619, and AWS made it the default version.
Read the full story at aws.amazon.com
Using AWS WAF to apply mitigations for PHP2Shell RCE vulnerabilities (CVE | Huntaegis