Mitigation for CVE-2026-109618 and CVE-2026-109619 (PHP2Shell)
Both CVE-2026-109618 and CVE-2026-109619 are critical PHP remote code execution (RCE) vulnerabilities collectively known as PHP2Shell . They affect PHP installations serving web requests, including PHP-FPM , Apache mod_php , php-cgi , FrankenPHP , and LiteSpeed . Immediate Action (Recommended) Update PHP to one of the fixed releases immediately: PHP 8.5.12 PHP 8.4.27 PHP 8.3.36 PHP 8.2.35 The PHP Security Team has stated that updating is the only safe choice . Verify Your Version php -v For RHEL-based systems: rpm -qa | grep php For Debian/Ubuntu: dpkg -l | grep php Temporary Mitigations (Until Patching Is Complete) PHP developers have published interim measures that may reduce exposure but do not eliminate risk . 1. Disable Upload Progress Tracking Add to php.ini : session.upload_progress.enabled = 0 Or for PHP-FPM pools: php_admin_flag[session.upload_progress.enabled] = off 2. Enable Strict Session Mode session.use_strict_mode = 1 PHP-FPM: php_admin_flag[session.use_strict_mo...