Critical PHP Remote Code Execution Vulnerabilities (PHP2Shell)
Score: 9/10

Critical PHP Remote Code Execution Vulnerabilities (PHP2Shell)

Critical unauthenticated remote code execution flaws in PHP core (CVE-2026-109618 and CVE-2026-109619) allow attackers to take full control of web servers by exploiting memory corruption in session upload progress and fatal error handling.

Executive Summary

In October 2026, two critical zero-day vulnerabilities in the PHP core, collectively known as 'PHP2Shell,' were leaked online and subsequently addressed via emergency security updates. The vulnerabilities (CVE-2026-109618 and CVE-2026-109619) carry a CVSS v4.0 rating of 9.2 and enable unauthenticated remote code execution (RCE) on a vast majority of the world's web servers, including those powering WordPress, Drupal, and Magento. The vulnerabilities were discovered and weaponized with significant assistance from frontier AI models, highlighting a shift in the exploit development landscape.

Technical analysis reveals the flaws stem from heap use-after-free (UAF) conditions in how PHP handles session upload progress and fatal errors, specifically out-of-memory (OOM) events. Attackers can trigger these conditions via specially crafted multipart POST requests to corrupt internal global state, allowing them to redirect execution to system commands. These operations occur during request initialization, meaning application-level security controls (like authentication) are bypassed entirely.

Organizations must prioritize patching immediately, as early signs of exploitation have been observed in the wild. Because PHP 8.1 and older versions are end-of-life, many legacy systems remain vulnerable without official vendor support. High-risk environments should consider isolating internet-facing PHP applications or implementing aggressive WAF rules as temporary stopgaps while preparing for infrastructure-level updates.

Key Details

Threat Name

php2shell

Affects

PHP, PHP versions 5 through 8, PHP < 8.5.12, PHP < 8.4.27, PHP < 8.3.36, PHP < 8.2.35, PHP 5.x, 7.x, 8.0, 8.1, PHP versions 5–8, PHP 5, PHP (all versions, back to 5.x), PHP 8.5.x, PHP 8.4.x, PHP 8.3.x, PHP 8.2.x, PHP 5.x through 8.1.x, PHP (CGI), PHP-FPM, PHP-CGI, PHP 8.4.4, PHP 8.2.34, PHP 5.4 or later, PHP 8.2.x before 8.2.35, PHP 8.3.x before 8.3.36, PHP 8.4.x before 8.4.27, PHP 8.5.x before 8.5.12, PHP (PHP 5.4 and later), WordPress, Drupal, Joomla

Adversary

—

MITRE Techniques

Malware/Tools

None identified

Report Score

9out of 10
Quality Score
Excellent
IOC Quality5
TTP Details9
Detection Guidance9
Enterprise Relevance10
Clarity & Structure10
Technical Depth9

Sources