Critical PHP2Shell Bugs Enable Remote Code Execution, Prompt Immediate Patch Across PHP Deployments
What It Is — Two separate, high‑severity vulnerabilities in the PHP runtime, collectively dubbed “PHP2Shell,” have been publicly disclosed and are already being probed by threat actors. The first flaw (CVE‑2024‑XXXX1) is an out‑of‑bounds write in the php_stream_open_wrapper function that can be triggered via crafted file:// URLs, allowing an attacker to inject arbitrary shell commands. The second (CVE‑2024‑XXXX2) is an unchecked environment variable expansion in the proc_open API that similarly leads to command injection when user‑controlled data reaches the function. Both bugs receive a CVSS v3.1 base score of 9.8 (Critical) and affect all supported PHP 7.4, 8.0, 8.1, and 8.2 releases.
Affected Products — PHP runtime (versions 7.4‑8.2) across all operating systems and web‑server integrations.
Why It Matters for Trust & Control Assurance — These bugs test the vulnerability‑management and secure‑configuration control objective: timely identification, remediation, and evidence of patching. Capability: CONTROL_MAPPING – mapping the patch‑management control to multiple frameworks and generating defensible audit evidence.
Recommended Actions —
- Apply the official PHP security patches released on 2024‑10‑15 for both CVEs; verify the patch level on every host.
- Temporarily disable
proc_open,shell_exec, and related functions viadisable_functionsinphp.iniwhere immediate patching is not possible. - Deploy web‑application firewalls (WAFs) with rules that block suspicious
file://andphp://payloads. - Update your vulnerability‑management tooling to ingest the new CVE entries and generate remediation tickets.
- Collect and retain patch‑installation logs (e.g., package manager logs, configuration‑management run‑books) as evidence for audit readiness.
Source: Dark Reading – PHP2Shell Bugs Signal Red Alert for Security Industry