he PHP Project has released emergency security updates addressing two critical vulnerabilities, CVE-2026-109618 and CVE-2026-109619, collectively referred to as PHP2Shell. Both vulnerabilities have been assigned a CVSS v4.0 score of 9.2 (Critical) and may allow unauthenticated Remote Code Execution (RCE) on affected servers.
These vulnerabilities affect the PHP runtime itself, meaning applications such as WordPress, Laravel, Magento, Joomla, Drupal, Nextcloud, WHMCS, and other PHP-based platforms remain vulnerable until the underlying PHP installation is patched.
Vulnerability Details
CVE-2026-109618
A flaw in PHP's out-of-memory (OOM) handling may leave internal request data in an invalid state. During request cleanup, this memory corruption condition can potentially be leveraged to achieve remote code execution.
CVE-2026-109619
A flaw in PHP's request-owned global state management can allow stale references to freed memory to persist across requests. Under specific conditions, attackers may exploit this behavior to achieve remote code execution.
Affected Environments
According to PHP security advisories, the following web-serving PHP implementations are affected:
- PHP-FPM
- Apache mod_php
- php-cgi
- FrankenPHP
- LiteSpeed PHP
Apache mod_php deployments are considered the highest-risk configuration.
Fixed Versions
Upgrade immediately to one of the following patched releases:
PHP Branch Fixed Version
PHP 8.5 - 8.5.12
PHP 8.4 - 8.4.27
PHP 8.3 - 8.3.36
PHP 8.2 - 8.2.35
PHP 8.1 and older branches are End-of-Life and do not receive regular upstream security updates. Organizations running legacy versions should migrate to a supported release or apply vendor-provided backported fixes where available.
Impact
Successful exploitation may result in:
- Unauthenticated Remote Code Execution (RCE)
- Complete website compromise
- Data theft or modification
- Malware deployment
- Denial of Service (DoS)
- Privilege escalation within the PHP process context
- Recommended Actions
✅ Verify your current PHP version:
php -v
RHEL / AlmaLinux / Rocky Linux
dnf update php\*
systemctl restart php-fpm
Ubuntu / Debian
apt update
apt upgrade
systemctl restart php8.*
✅ Upgrade immediately to a patched release.
✅ Restart PHP-FPM, Apache, LiteSpeed, or other PHP services after updating.
✅ Rebuild and redeploy Docker containers using updated PHP images.
✅ Ensure hosting panels and multiple PHP installations (cPanel EA-PHP, CloudLinux Alt-PHP, Plesk, DirectAdmin, custom builds, Docker images, containers, etc.) are updated.
✅ Monitor web server and application logs for suspicious activity.