php2shell in Practice: Exploitable, Conditional, and Hard to Mass-Exploit
Praetorian provides a detailed technical analysis of php2shell (CVE-2026-109618 and CVE-2026-109619), two pre-auth RCEs in PHP core that are exploitable but heavily version and build-dependent. Exploitation requires defeating ASLR by leaking heap pointers and libphp base addresses, then achieving precise heap control to trigger an out-of-memory condition under default display_errors=Off settings. The analysis reveals that exposed phpinfo pages become critical information disclosure vectors enabling attackers to determine PHP version, architecture, build provider, and configuration—eliminating reconnaissance effort. In mod_php deployments, ASLR is not re-randomized across worker forks, making a single leak persistent across all subsequent requests until server restart, significantly amplifying the risk of low-severity findings like exposed phpinfo.