Key takeaways
- The PHP2Shell vulnerabilities (CVE-2026-109618 and CVE-2026-109619, CVSS 9.2) originate from memory handling flaws latent in the core PHP runtime since 2012.
- Frontier AI models enabled security researchers at Calif, Wiz, and OpenAI to compress exploit chain development from months of manual debugging into days.
- Cloudflare and AWS recorded millions of automated exploitation attempts within hours of public disclosure, though confirmed system takeovers remain rare.
- Mitigating the risk requires updating the underlying PHP C runtime directly, as web application firewalls and application-layer safeguards offer only temporary shielding.
The disclosure of two critical vulnerabilities in the core PHP runtime—designated as CVE-2026-109618 and CVE-2026-109619 with a CVSS score of 9.2—marks a pivotal shift in vulnerability weaponization. Collectively dubbed PHP2Shell, the flaws stem from decade-old memory-management bugs that human analysts long deemed practically unexploitable. By utilizing frontier artificial intelligence models, security researchers demonstrated that automated reasoning can compress exploit development timelines from months down to days. While cloud platforms like Cloudflare absorbed millions of automated attack probes immediately following disclosure, enterprise IT directors and DevSecOps teams must prioritize patching the underlying PHP C runtime across environments hosting WordPress, Drupal, and custom web applications.
Decade-Old Memory Flaws Weaponized by AI
The underlying weaknesses behind PHP2Shell are not newly written code defects; they have resided within the core PHP runtime engine since approximately 2012. While components of these memory-safety issues were documented during security reviews in 2024, maintainers and independent researchers initially set them aside. The intricate sequence of memory exhaustion, allocation manipulation, and pointer alignment needed to trigger remote code execution was considered too complex for human attackers to reliably engineer.
That assessment changed when security researchers at Calif identified the flaws in early August, leveraging advanced artificial intelligence tools alongside deep human expertise in PHP runtime dynamics as part of OpenAI’s Patch the Planet initiative. Following Calif’s initial breakthrough, research teams at OpenAI and Wiz independently reproduced the findings using frontier AI models. As detailed in a Wiz emergency threat briefing, AI models compressed the time required to construct reliable, functional exploit chains from months of tedious manual assembly down to just a few days.
According to Sagi Tzadik, a security researcher at Wiz, the flaw had been known to the PHP maintainers for years, but because human attackers could not realistically construct a functional exploit path, it remained unaddressed. The expanded analytical capabilities of modern foundation models bridge the gap between theoretical software defects and weaponized proof-of-concept exploits, as reported by WIRED.
| Parameter | Verified Details |
|---|---|
| CVE Identifiers | CVE-2026-109618 and CVE-2026-109619 |
| Severity Rating | CVSS 9.2 (Critical) |
| Affected Component | Core PHP C Runtime Memory Management |
| Exploit Mechanism | Out-of-memory handling failure triggering Use-After-Free RCE |
| Defensive Remediation | PHP runtime upgrade; interim WAF mitigation rules |
Runtime Architecture and Exposure Breadth
Unlike application-specific bugs or plugin-level flaws, PHP2Shell resides deep in the C runtime layer that executes PHP scripts. Technical assessments from Imperva and Sansec confirm that the exploit relies on inducing an out-of-memory condition during request parsing. When the PHP engine hits severe memory pressure, its internal memory management mechanisms fail to properly release or nullify active object pointers. This breakdown introduces a use-after-free condition that attackers can leverage to read arbitrary memory or execute unauthorized system commands.
Because this vulnerability lives in the interpreter itself, it affects every web application executing on an unpatched runtime, irrespective of CMS plugins or userland frameworks. Massive ecosystems, including WordPress and Drupal deployments, are fundamentally exposed until server-level runtimes are upgraded. The scale of the surface area became apparent within hours of disclosure, when threat actors launched automated scanning campaigns.
According to analysis from the Cloudflare Blog, protective edge networks recorded millions of automated exploitation attempts targeting PHP endpoints almost immediately. Threat activity was discussed in our review of how Agentic Cloud Breach and Critical PHP Flaws Lead Week 43 Threats. Despite the intense volume of inbound traffic, the PHP Foundation noted that widespread breaches have not materialized. Many circulating exploit scripts appear ineffective against varied server architectures, though the risk remains active for exposed nodes.
Enterprise Risk and Defensive Realities

The emergence of AI-accelerated exploits places intensified operational strain on under-resourced IT and DevSecOps organizations. Enterprise patching backlogs are already staggering; Microsoft’s monthly security updates recently addressed a record 1,453 vulnerabilities, while institutions like Bank of America have engaged hundreds of consultants to address flaws uncovered by systems such as Anthropic’s Mythos. However, cybersecurity analysts caution against assuming AI has made all legacy code instantly obsolete.
Jake Williams, vice president of research and development at Hunter Strategy and a former NSA analyst, emphasized that PHP represents a uniquely exposed target because web runtimes are internet-facing by design. Most legacy software utilities operate behind enterprise network perimeters or segmented cloud boundaries, limiting an attacker’s reach. Furthermore, AI tools do not eliminate the necessity of human domain expertise. As Calif researcher Ryan Austin noted, models cannot unearth and weaponize complex vulnerabilities through simple prompting alone; success still requires seasoned security researchers guiding the system through intricate architectural nuances.
Security engineer Niels Provos echoed this measured perspective, pointing out that discovering PHP2Shell demanded specialized human researchers collaborating with frontier models over extended research cycles. While AI tools compress development timelines, they do not grant attackers arbitrary control over every legacy system without significant technical orchestration.
What happens next
Enterprise infrastructure teams must treat PHP2Shell as a mandate for strict runtime lifecycle management rather than relying on perimeter defenses. While edge web application firewalls deployed by Cloudflare and Amazon Web Services provide essential temporary shielding by filtering known exploit payloads, they do not resolve the root memory-handling defect in the PHP binary.
Technical teams should take the following immediate operational steps:
- Audit runtime versions: Identify all production, staging, and containerized environments executing PHP, prioritizing publicly accessible web servers and reverse proxies.
- Apply official runtime patches: Upgrade PHP binaries to maintainer-released builds that resolve the out-of-memory pointer handling flaws (CVE-2026-109618 and CVE-2026-109619).
- Enforce strict memory limits: Configure conservative
memory_limitsettings inphp.iniand monitor host-level memory metrics to detect anomalous memory exhaustion triggers early. - Maintain active edge filtering: Verify that CDN and WAF managed rule sets are updated to drop malformed request headers and suspicious multipart payloads designed to exhaust worker memory.
As AI-assisted vulnerability discovery becomes standard across both red teams and malicious actors, enterprise defenders must anticipate faster disclosure-to-exploit turnaround times and automate their runtime patch deployment pipelines.
Sources
- The PHP Meltdown Shows How AI Makes Bugs More Exploitable | WIRED
- PHP2Shell Exploitation: Two Critical PHP Flaws Explained
- Cloudflare deploys protections against php2shell vulnerability | Cloudflare Blog
- PHP2Shell: PHP RCE (CVE-2026-109618, CVE-2026-109619) | Sansec
- PHP2Shell: When PHP Runs Out of Memory at the Wrong Moment | Imperva
- PHP2Shell Emergency Threat Briefing | Wiz | Wiz
- PHP2Shell – Wikipedia



