PHP2Shell: One Upload, Full Server
Vulnerability: Critical PHP vulnerabilities enable unauthenticated remote code execution and memory leaks on 70% of web servers.
Deep Analysis and Expert Commentary
The PHP2Shell vulnerabilities exploit memory handling flaws in PHP's core, bypassing application-layer defenses entirely. Attackers can trigger these bugs before any application code executes, making traditional logging ineffective. The attack path involves a malformed request causing memory exhaustion, leading to a stale pointer that corrupts OPcache state, enabling type confusion and eventual RCE. This affects all PHP-FPM, Apache modphp, php-cgi, FrankenPHP, and LiteSpeed configurations, with modphp being the most vulnerable. Mitigation requires immediate patching of PHP to the latest versions, as older releases (PHP 8.1 and below) lack official fixes. Organizations should also monitor for suspicious lateral movement and abnormal data access, as these vulnerabilities can be exploited silently.
Action Items
- Patch PHP installations to versions 8.5.12, 8.4.27, 8.3.36, or 8.2.35 immediately.
- Monitor server logs for unusual memory exhaustion events or malformed upload attempts.
- Implement additional layers of defense, such as WAF rules to block suspicious PHP requests.
Original Article Brief Intro
Varonis Blog · 2026-10-22 · Vulnerability: Critical PHP vulnerabilities enable unauthenticated remote code execution and memory leaks on 70% of web servers.
Related Terms and Notes
CVE IDs
- CVE-2026-109618 — A critical vulnerability in PHP's core enabling memory disclosure and remote code execution.
- CVE-2026-109619
Techniques / TTPs
- RCE
Context Notes
- Memory Corruption
- Memory Leak
- OPcache Corruption
- PHP
- PHP2Shell
- Remote Code Execution — An attack where an attacker can execute arbitrary code on a target system remotely.
- Web Security
- Web Server Vulnerabilities