abstract header image

PHP2Shell Exploitation: Two Critical PHP Flaws Explained

Two critical remote code execution vulnerabilities in the PHP engine, CVE-2026-109618 and CVE-2026-109619 (nicknamed “PHP2Shell”), are reportedly being targeted in active exploitation attempts following the leak of technical details ahead of PHP’s October 21, 2026, security release. Because the flaws affect PHP itself rather than a specific application, websites running vulnerable PHP versions may be exposed, including those built on WordPress, Drupal, and Joomla.

This post covers PHP’s advisories, exploitation reports, public proof-of-concept exploits, exposure data, and patching guidance, along with details from the TTP Instance Insikt Group® published to customers. Attack Surface Intelligence signatures for CVE-2026-109618 and CVE-2026-109619 are available to Recorded Future customers. Organizations running PHP should patch immediately.

The Latest Update

Insikt Group has published a TTP Instance for PHP2Shell covering public proof-of-concept (PoC) exploits, observed exploit activity, and recommended mitigations. As of 7 PM UTC on October 21, 2026:

How It Started

On October 20, 2026, the PHP security team announced an out-of-band security release for October 21 at 14:00 UTC to fix two critical vulnerabilities, both rated 9.2 under CVSS v4.0. PHP initially withheld technical details and affected versions pending coordinated disclosure, warning that the release could be accelerated if vulnerability details leaked or exploitation emerged.

Ahead of the scheduled release, watchTowr reported reproducing CVE-2026-109618 and assessed that both vulnerabilities could enable remote code execution (RCE). Technical information subsequently leaked before coordinated disclosure, prompting heightened concern about potential exploitation. PHP shipped the fixes on October 21, alongside a PHP Foundation post about the release, which addressed the emergency release and improvements to PHP's security processes.

The “PHP2Shell” name comes from Wiz Research, which found the flaws with Calif and OpenAI and reported them to PHP in August. Wiz’s write-up covers the discovery and root cause in depth.

The Vulnerabilities

Both CVEs are memory-safety vulnerabilities involving PHP's handling of request memory during initialization, error handling, and cleanup. According to Wiz, out-of-memory (OOM) failures and stale internal state can expose freed or partially initialized memory, potentially enabling memory disclosure, memory corruption, and remote code execution (RCE).

The vulnerabilities affect PHP itself rather than a particular website application. Some exploitation paths involve PHP's session upload-progress functionality, which VirusTotal notes has existed since PHP 5.4.0 and is enabled by default. Because exploitation depends on the PHP runtime, server configuration, and reachable execution paths, even websites with secure application code may be vulnerable.

PHP identified the following affected and patched versions. Older, unsupported PHP branches are not covered by these release-specific fixes and should not be presumed unaffected.

Affected Versions
Patched Versions
8.2 releases before 8.2.35
8.2.35
8.3 releases before 8.3.36
8.3.36
8.4 releases before 8.4.27
8.4.27
8.5 releases before 8.5.12
8.5.12

Reports of Active Exploitation

Following the disclosure of the PHP2Shell vulnerabilities, multiple sources reported exploitation activity in the wild:

Although these reports indicate early exploitation activity, publicly available evidence remains insufficient to establish the extent of successful compromise or characterize the techniques used in observed attacks.

Public Proof-of-Concept Exploits

Numerous public GitHub repositories have emerged around PHP2Shell, including projects advertising proof-of-concept (PoC) exploits, vulnerability-testing tools, and defensive resources. Several claim to target CVE-2026-109618 and CVE-2026-109619 through memory-corruption techniques intended to crash vulnerable servers or achieve remote code execution (RCE). However, some rely on invalidated exploitation theories, and the existence of publicly available code does not establish that it successfully exploits either vulnerability.

Insikt Group's TTP Instance examines two PoC scripts published by security researcher J4ck3LSyN:

J4ck3LSyN subsequently invalidated the cached-pointer vulnerability theory underlying these proposed exploitation techniques but separately reported reproducing another memory-safety issue without demonstrating RCE.

Other publicly available repositories advertise PHP2Shell exploits, vulnerability-testing scripts, and demonstration environments. Some continue to describe the invalidated cached-pointer technique, while others claim to use different exploitation methods. At the time of this publication, Insikt Group has not independently tested J4ck3LSyN’s PoCs or other publicly available PoCs for accuracy or effectiveness.

Scale and Exposure

Two independent internet scans show how much PHP is exposed, but they count differently. Modat counts PHP services that report a readable version and were seen in the 10 days before October 20. VirusTotal counts IP addresses as of October 21, including PHP servers it identifies through signals other than a version string, such as the application, session cookies, and framework headers.

Neither scan counts confirmed vulnerable hosts, but both point the same way: most exposed PHP runs on end-of-life branches that will not receive an official fix. Scans that rely on version strings miss most of the exposed surface, and running the latest release was no protection: VirusTotal counted about 85,000 IP addresses on the September 24 releases, the newest available before the fix.

Why This Matters

Timeline of Events

The disclosure of the PHP2Shell vulnerabilities unfolded over several weeks, beginning with their discovery in August 2026 and culminating in an emergency security release on October 21, 2026. However, vulnerability details became publicly accessible ahead of the coordinated release, prompting defensive preparations and reports of exploitation activity before patches became available.

The following timeline outlines key developments associated with the discovery, coordinated disclosure, early exploitation reports, and Recorded Future's response.

Notably, reports of exploitation activity emerged before the official security release, creating a brief period during which vulnerability information was circulating publicly while affected organizations lacked an official patch. As a result, PHP users may discover exploitation attempts that occurred prior to the official patch disclosure. Threat hunters should therefore extend their lookback period for exploitation attempts to before the vulnerability disclosures were published.

Recorded Future Independent Analysis

Recorded Future's Insikt Group analyzed the PHP2Shell vulnerabilities, publicly available proof-of-concept (PoC) exploits, reported exploitation activity, and defensive measures. The resulting TTP Instance provides defenders with technical context and actionable guidance to help assess exposure, prioritize remediation, and identify potential attacks.

What You Need to Do Now

Organizations operating PHP-based applications should prioritize patching vulnerable systems, assessing their exposure, and monitoring for potential exploitation. Given reports of exploitation activity ahead of the coordinated security release, organizations should also investigate whether affected systems may have been compromised before patches became available.

Insikt Group recommends the following measures to mitigate the risks associated with PHP2Shell:

Recorded Future customers can access the Insikt Group PHP2Shell TTP Instance, Validated Intelligence Event, and Vulnerability Intelligence Cards® for CVE-2026-109618 and CVE-2026-109619 in the Recorded Future Intelligence Operations Platform. Recorded Future will continue to monitor developments related to PHP2Shell and provide updated intelligence as additional information becomes available.

How Recorded Future Helps Prioritize Actively Exploited Vulnerabilities

PHP2Shell went from disclosure to exploitation in hours, which leaves little time to determine where you are exposed and what to fix first. Learn how Recorded Future helps teams prioritize the vulnerabilities attackers are exploiting

Speak to Our Threat Intelligence Experts Today →

Insikt Group adheres to responsible disclosure procedures in conducting its research.

About Insikt Group®

Recorded Future’s Insikt Group, the company’s threat research division, comprises analysts and security researchers with deep government, law enforcement, military, and intelligence agency experience. Its mission is to produce intelligence that reduces risk for customers, enables tangible outcomes, and prevents business disruption.

Explore expert insights, reports, and tools to strengthen your cybersecurity strategy.