PHP Issues Emergency Patches for PHP2Shell RCE Flaws
Two critical Remote Code Execution (RCE) vulnerabilities affect the core PHP runtime across all versions from PHP 5.4 up to 8.5. Immediate patching and server restarts are required.
⚠️ High Risk Threat: PHP2Shell
CVSS 9.2 (Critical)On October 21, 2026, the PHP development team released emergency security updates for two core runtime flaws that allow unauthenticated attackers to achieve Remote Code Execution (RCE) or read sensitive process memory on target servers.
Because these flaws exist within the PHP engine itself rather than application-level code (like WordPress or Laravel), even a basic, static PHP endpoint can be susceptible to compromise. Active exploit attempts have been detected globally.
Tracked Vulnerabilities
CVE-2026-109618
Triggered when a request forces PHP to run out of memory. During process termination, incomplete internal data structures are handled as valid during cleanup, causing memory corruption that attackers can leverage for remote execution.
CVE-2026-109619
A Use-After-Free (CWE-416) condition where internal request pointers persist across requests within long-running worker processes. Subsequent requests handled by the same worker can read or manipulate freed memory state.
Affected Versions & Patches
Upstream patches have been released for actively supported PHP branches. Check your server's runtime version immediately:
Auditing with php2shell-check
You can use php2shell-check in local mode to verify if your active local runtime or server CLI build is vulnerable:
# Run local CLI environment audit
bash php2shell-check.sh -m local
# Run remote HTTP inspection for exposed PHP signatures
bash php2shell-check.sh -m web -s -u https://your-domain.com
Recommended Remediation Steps
-
Update System Packages: Upgrade your PHP binaries via system package managers (e.g.
apt upgrade php,dnf update php) or pull updated Docker image tags. -
Restart Web Processing Workers: Ensure you restart
php-fpm,apache2,nginx, or any container workers so updated binaries take effect in memory. - Enable WAF Protections: If immediate patching is delayed, activate Web Application Firewall rules (e.g. Cloudflare / AWS WAF) to block suspicious multipart payloads.
- Audit Log Entries: Watch for HTTP 500 errors, unusual Out-Of-Memory logs, oversized
PHPSESSIDcookies, or unexpected worker restarts.