Skip to content
CCEA Nexus

PHP2Shell: Critical PHP Vulnerabilities CVE-2026-109618 and CVE-2026-109619 Explained

Two unauthenticated remote code execution flaws in PHP core (PHP2Shell) disclosed October 2026. Patched versions, affected releases, and remediation steps.

Ceanexus Administrator
PHP2Shell: Critical PHP Vulnerabilities CVE-2026-109618 and CVE-2026-109619 Explained

PHP2Shell: Critical PHP Vulnerabilities CVE-2026-109618 and CVE-2026-109619 Explained

On 21 October 2026, the PHP security team disclosed two critical remote code execution (RCE) vulnerabilities in the PHP core, tracked as CVE-2026-109618 and CVE-2026-109619, collectively known as "PHP2Shell." Both carry a CVSS v4.0 score of 9.2 (Critical) and allow unauthenticated remote code execution.

What Are CVE-2026-109618 and CVE-2026-109619?

Both vulnerabilities exist in PHP's core error handling mechanism and involve improper handling of longjmp() during fatal errors:

CVE-2026-109618

Out-of-memory (OOM) error handling via longjmp() leaves request memory uninitialized due to improper control flow management. Attackers can reliably achieve remote code execution by triggering OOM conditions.

CVE-2026-109619

longjmp() fatal error handling leaves global memory pointing to freed memory regions. These regions can later be read or branched on during subsequent requests, enabling arbitrary code execution.

Why PHP2Shell Is Critical

  • CVSS v4.0 Score: 9.2 (Critical) for both vulnerabilities
  • Unauthenticated — the malicious request never reaches application code; PHP processes it before any authentication or application logic runs
  • No application-level workaround — community mitigations such as session.upload_progress.enabled=0 do not protect against these flaws
  • Universal exposure — any PHP script is vulnerable, even one that only prints a response
  • Pre-auth RCE — complete host compromise is possible without valid credentials

Affected and Patched PHP Versions

| Status | PHP Versions | |--------|-------------| | Vulnerable | PHP 5.0 through PHP 8.1.x (end of life, no patches available) | | Patched | PHP 8.2.35+, PHP 8.3.36+, PHP 8.4.27+, PHP 8.5.12+ |

How Major Organizations Responded

U.S. Government (CISA)

The Cybersecurity and Infrastructure Security Agency (CISA) issued an urgent alert on 21 October 2026, strongly urging organizations to immediately patch PHP installations serving web requests. CISA added these vulnerabilities to its catalog of known exploited vulnerabilities and recommended immediate updating to patched versions.

Cloud Providers

Major cloud providers including Google Cloud and AWS published customer advisories within hours of disclosure, confirming that managed PHP runtimes were updated to patched versions and advising self-managed customers to apply updates immediately.

Security Research Firms

Datadog Security Labs, Wiz Research, and Palo Alto Networks Unit 42 independently reproduced the exploits, confirmed the vulnerabilities, and published technical analysis showing that authentication cannot block an attack because PHP processes the malicious request before application code executes.

Enterprise Response

Fortune 500 technology companies and financial institutions issued internal security bulletins mandating immediate PHP version audits and emergency patching cycles, prioritizing internet-facing PHP applications first.

How to Fix PHP2Shell

Step 1: Check Your PHP Version

Run the following command to verify your installed PHP version:

php -v

If you see PHP 8.5.11 or earlier, PHP 8.4.26 or earlier, PHP 8.3.35 or earlier, PHP 8.2.34 or earlier, or any PHP 5.x through 8.1.x, you are vulnerable.

Step 2: Update to a Patched Version

Update to the minimum patched version for your PHP branch:

  • PHP 8.5: Update to 8.5.12 or later
  • PHP 8.4: Update to 8.4.27 or later
  • PHP 8.3: Update to 8.3.36 or later
  • PHP 8.2: Update to 8.2.35 or later

Step 3: Remove End-of-Life PHP

Uninstall any PHP 5.x through 8.1.x installations immediately. These versions will not receive patches and should not run on internet-facing systems.

Step 4: Verify the Patch

After updating, run php -v again to confirm the patched version is active. Restart your web server (Apache, Nginx, PHP-FPM) to ensure the new PHP binary is loaded.

Step 5: Monitor and Audit

  • Review web server logs for unusual OOM (out-of-memory) errors or unexpected process execution
  • Audit all servers running PHP, including internal and staging environments
  • Add PHP version checks to your regular security patching schedule

References


Published 21 October 2026. This advisory is based on public security disclosures from the PHP security team, CISA, and independent security research firms.