2026-11-26 15:47 UTC

Wiz reports AI-assisted PHP core flaws enabled unauthenticated RCE

state: significantheat: lowuncertainty: mediumrelevance: highai-vulnerability-discovery php-security cybersecurityWiz ResearchPHP teamOpenAIGoogle DeepMind

What is this?

Wiz Research’s October 21, 2026 disclosure describes memory-safety flaws in PHP’s core engine, grouped as CVE-2026-109618 and CVE-2026-109619. Wiz says the bugs affected versions back to PHP 5.4 and could enable unauthenticated remote code execution or process-memory disclosure. It reports using its Wiz Atlas platform with Gemini 4 Argon and GPT-5.6 Sol, and credits Gemini in particular with helping find the flaws, develop exploits, detect attacks and validate the patch. PHP released fixes on October 21. The account of AI’s contribution and the scale of impact comes principally from Wiz; the supplied evidence also includes PHP Foundation and OpenAI release-related links, but not their article text. The discovery history is not fully settled: comments point to separate Calif research and an earlier report, and a later secondary report says Amazon identified exploitation on October 17, before public disclosure. A search result for Wiz’s October 27 follow-up says it observed attempts but no successful exploitation; that does not resolve the earlier Amazon report or establish the full scope of activity.

Why it matters

This is a consequential example of AI-assisted security research lowering the cost of turning obscure, interacting memory bugs into working exploits—not merely flagging suspicious code. If the reported workflow generalizes, more legacy software flaws may become practically exploitable, while the same tools can help defenders find, verify and patch them. The case also highlights the operational challenge: broad exposure does not guarantee fast remediation, and disclosure coordination can be fragile. The evidence supports a notable capability demonstration, not a settled claim that AI independently discovered the bugs or that AI-driven attacks are now broadly successful.

Current assessment

Wiz reported that frontier models, especially Gemini 4 Argon, helped researchers find and develop exploits for longstanding PHP core memory-safety flaws; PHP released fixes for CVE-2026-109618 and CVE-2026-109619 on October 21, 2026. This is a consequential example of AI-assisted vulnerability research, but the models’ precise contribution and the extent of human work are not independently established here. Later evidence titles allege exploitation, including a report of a chained exploit compromising 25 servers, while Microsoft-attributed reporting says AI is shortening the time from disclosure to working exploit; the supplied records lack enough underlying detail to verify scope or attribution. A later PHP critical security release is also reported, with comments suggesting an unauthenticated RCE in a specific Apache/mod_php configuration; confirm its advisory and relationship to PHP2Shell from primary sources. Patch uptake, incident evidence, and whether AI materially changes exploitation rates remain unresolved. The latest Exploitwatch post is a low-detail tool announcement, not evidence of broad adoption or a material change. Attention is now low despite high broader topic heat.

Measured heat

now 0 pts/hpeak 18 pts/hcomments 0/hpeers p10momentum: steady3 platformsage 890h
points/hour across evidence · reading as of 2026-11-27 02:23:58.509736+11:00 · deterministic, not a model opinion

How the heat travelled

10-20 13:00⭐ origin echo-reconstructedWiz says frontier models, especially Gemini 4 Argon, helped discover and develop exploits for PHP core memory-safety vulnerabilities affecti
Wiz Research on blog (echo) · attributed from hn.story.50180836
—
10-21 13:43first on hacker news · published · +24.7hPHP2Shell: AI uncovers critical RCE in PHP
danlark1
—
10-21 15:08first on r/OpenAI · published · +26.1hSo it was them…
Powermadlux
—
10-21 16:01first on r/singularity · published · +27.0hWebsites taken down worldwide as critical PHP cyber-security update issued
MurkyRaspberry9610
—
10-21 16:04first on r/artificial · published · +27.1hAI-assisted php2shell exploit chain hits PHP runtime, forces coordinated defense across 70% of web
VectorWireAI
—
10-21 20:53first on r/ClaudeAI · published · +31.9hOpus 5.5 created a music video explaining the recent PHP exploit
LostMyConcentration
—
10-22 15:13first on r/ChatGPT · published · +50.2hFirst time in history?! AI-discovered bug forced my government to take its websites offline yesterday. And there are 26 more hacks this month that they're trying to hide from the public!
we93
—
10-21 13:43amplified on hacker newshn.story.50180836
danlark1
peak 455 · 184 comments · 11% of case engagement
10-21 13:57amplified on hacker newshn.story.50181058
nr378
peak 30 · 2 comments · 1% of case engagement
10-21 14:11amplified on hacker newshn.story.50181326
Maxious
peak 134 · 24 comments · 3% of case engagement
10-21 15:08amplified on r/OpenAIreddit.post.1xbpq1i
Powermadlux
peak 0 · 2 comments · 0% of case engagement
10-21 15:31amplified on hacker newshn.story.50182710
marvinborner
peak 1 · 0 comments · 0% of case engagement
10-21 15:48amplified on hacker news 👑hn.story.50182987
ejohnso49
peak 816 · 395 comments · 20% of case engagement
38 more amplifiers in ainews.case_chain
10-21 14:26our radar first saw it · +25.4hdiscovery anchor: hn.story.50180836—
10-21 14:33reached heat=high · +25.6h · via ledger——
pace: p99 vs 879 stories at the 720h mark (now 890h old) — ahead of deepseek-deepinfer-inference-engine (1.4x), behind kimi-k31-pro-release (0.9x)

Evidence (45) — ⭐ canonical anchor

sourceobjectauthorscorecomments
🟧 hnPHP2Shell: AI uncovers critical RCE in PHP
Retrieved article excerpt

Open article · Retrieved 2026-10-21T14:30:53.722245+00:00

# Executive Summary

- Wiz Research uncovered multiple critical vulnerabilities in core PHP, a popular general-purpose scripting language that powers 70% of all websites in the world. Successful exploitation could allow attackers to take control of affected servers, steal sensitive data, and deface the websites running on them.
- PHP is a backbone of the web: it’s the programming language powering WordPress, Joomla, Drupal, Wikipedia’s MediaWiki, and many others.
- These vulnerabilities include memory disclosure and unauthenticated remote code execution **in PHP itself, independent of the application running on top of it**, putting every affected website in immediate risk.
- Every PHP version released in the last decade is affected by at least one of these vulnerabilities, going back to version 5.4. Attackers can exploit them remotely, in some cases fairly easily. Immediate patching is strongly advised.
- On October 21, 2026, [PHP released the patch](https://www.php.net/archive/2026.php#2026-10-21-5) fixing multiple memory-safety vulnerabilities in the core engine.
- These findings rank among the most severe vulnerabilities discovered in PHP, and arguably in software history. The underlying flaws had been present for decades, but demonstrating their exploitability  required an exceptionally complex chain of steps, at the edge of what human researchers could practically achieve. Frontier AI models substantially reduced that barrier, turning a longstanding flaw into an exploit.

# Overview

In this post, we explain how frontier AI helped us find and fix vulnerabilities that had remained hidden in the PHP codebase for more than a decade. The issues described below all stem from key architecture decisions, some made over a decade ago, and were grouped under two CVEs, with severity reaching CVSS 9.2. The work grew into a cross-industry effort to protect customers, find variants, deploy detections and mitigations, and verify a patch in time for coordinated disclosure.

Nearly every PHP version is affected by at least one of these issues, including releases dating back to PHP 5.4. The vulnerabilities can allow unauthenticated attackers to execute code on affected servers or read sensitive process memory. That memory may contain passwords, authentication tokens, API keys and certificates belonging to other requests or the server itself.

PHP is the programming language behind much of the web, powering WordPress, Drupal and MediaWiki, the software that runs Wikipedia. A flaw in its core engine can affect websites across this ecosystem, even when their own application code is secure.

Some vulnerabilities become turning points because they challenge fundamental assumptions about security. In 2014, Heartbleed exposed the fragility of shared infrastructure securing the internet. In 2021, Log4Shell revealed how deeply embedded software dependencies could create widespread exposure that organizations struggled to identify. We believe PHP2Shell could mark a similar turning point for the AI era, illustrating how AI can change the practical exploitability of longstanding vulnerabilities. Building the exploit required chaining multiple flaws and adapting to each target’s memory layout through repeated testing and debugging. Frontier models were critical to making this process practical, enabling us to develop and adapt working exploits across multiple applications in hours. As the time and expertise required for this work decrease, complexity may no longer provide a meaningful barrier, changing how we define what is vulnerable in practice.

Wiz Research would like to thank the PHP team, Calif and OpenAI for their work on discovery, coordination and patch verification. [OpenAI](http://openai.com/index/coordinated-disclosure-of-critical-vulnerabilities) and [Calif](https://calif.io/php2shell/) also published blogs containing details on the vulnerability – its history, technical details, and insight into the disclosure process. [PHP](https://thephp.foundation/blog/2026/10/21/todays-php-security-release-and-how-were-strengthening-php-security/) posted as well.

We’d also like to express our sincere gratitude towards Automattic, Akamai, AWS, [Cloudflare](http://blog.cloudflare.com/php-vulnerabilities-waf-protection/), Fastly, Google, Imperva, Microsoft, Vercel, and many others, for helping prepare guidance and out-of-the-box mitigations for customers who cannot apply the patch immediately.

# How Can Wiz Help?

Wiz customers should refer to the [Wiz Threat Intel Center advisory for PHP2Shell](https://app.wiz.io/boards/threat-center/), which includes built-in coverage for agentless and runtime vulnerability detection, exploitation detection via Wiz Defend and Sensor, and automatic response policies, alongside remediation and threat hunting guidance.

Sensor customers using the newest version (1.0.12768) can also enable a built-in response policy to automatically terminate processes exhibiting behaviors typical of PHP2Shell exploitation:

# The Vulnerabilities

All of the disclosed vulnerabilities are memory-safety issues that stem from bugs in how PHP handles fatal errors while processing requests, particularly out-of-memory errors. These bugs can leave a corrupted internal PHP state behind after a request ends unexpectedly. A later request or worker can reuse that stale state, leading to memory disclosure or corruption.

Below you can find a table that demonstrates what type of impact was demonstrated by each of the bugs we reported to PHP. The applications listed below are targets we chose for the RCE demonstrations. They are representative targets - exploitation does not require one of these CMSs, as the vulnerable code is in PHP itself.

| Tracking ID | Bug | What an attacker can achieve | What we demonstrated |
| --- | --- | --- | --- |
| CVE-2026-109618 | Upload-progress unserializer use-after-free  Remote process-memory disclosure | Corrupt process memory and execute code  Unauthenticated disclosure of PHP worker memory | Pre-authentication RCE on WordPress, Drupal and Joomla  Application-agnostic remote memory disclosure |
| CVE-2026-109619 | Fatal-error backtrace use-after-free  OPcache type confusion | Corrupt process memory and execute code  Corrupt shared PHP state and execute code | Pre-authentication RCE on Drupal  Pre-authentication RCE on WordPress |

While this blog covers only four instances of exploitable bugs (grouped under two CVEs) that follow this problematic pattern, there are other tracked, and likely untracked, variants of this issue in the PHP codebase. These variants have different requirements for exploitation and can lead to different types of impact. In any case, the patch provided by the PHP team fixes the issue at its core and eliminates all variants in the patched release.

# Impact

We combined these vulnerabilities into a single exploit script, php2shell, and demonstrated that it could execute code remotely without authentication on deployments of WordPress (`wordpress:latest`), Drupal (`drupal:latest`), and Joomla (`joomla:latest`), using their latest container images at the time of testing.

These platforms illustrate the impact, but the vulnerabilities are in PHP itself. Exploitation does not depend on a flaw in the application’s code: even a simple “Hello World” application running on an affected PHP version can be vulnerable.

Separately, we demonstrated that attackers could read sensitive data from the PHP process’s memory, including passwords, tokens, and API keys, without needing to achieve remote code execution.

Demonstrations of PHP2Shell with Wordpress, Joomla, and Drupal:

# The AI inflection point

The vulnerable code had been present for more than a decade. Turning these flaws into working exploits required chaining multiple bugs and accounting for how PHP allocates and reuses memory across requests. Memory bugs are notoriously complex; differences in PHP versions, configurations and application behavior can break assumptions the exploit depends on. An attack that works against one deployment may need substantial adjustments to work against another, each requiring further analysis, testing and debugging. Pre-AI, this manual work would be difficult to implement and even harder to scale.

With AI this is no longer a barrier. LLMs can help adapt an exploit to different PHP versions, configurations and memory layouts. With testing and debugging tools, models can analyze failures and iterate on adjustments, reducing the specialist effort required for each target. This significantly lowers the barrier to scaling attacks across different deployments.

This changes the economics of both discovery and exploitation. As AI reduces the effort needed to develop and adapt complex exploits, vulnerabilities that once seemed impractical to exploit become viable targets.

We used [Wiz Atlas](https://www.wiz.io/blog/atlas-ai-vulnerability-researcher), Gemini 4 Argon and GPT-5.6 Sol throughout this research. Notably, Gemini 4 Argon made an invaluable contribution to finding the vulnerability, exploit development, attack detection, and validation of the patch.

> Using Gemini 4 Argon, the team at Wiz has shown why frontier AI is a game-changer for cyber defense. For over a decade, these critical vulnerabilities remained unaddressed because vulnerability discovery and exploitation were incredibly complex. We're pleased to see Gemini 4 Argon help defenders bridge that gap, finding vulnerabilities and helping patch them.
>
> Raluca Ada Popa, Head of Gemini Security, Google DeepMind

# Industry-level collaborations

Prior to public disclosure, Wiz Research worked with the PHP team, Calif and OpenAI on discovery, coordination and patch verification. We also partnered with Google Cloud, Cloudflare, AWS, Microsoft, Automattic, Fastly, Akamai, Imperva, Vercel and many others to prepare customer guidance, detections and out-of-the-box mitigations for organizations that cannot update immediately.

A vulnerability in core PHP reaches far beyond a single application. PHP runs across clouds, hosting providers, content-delivery networks and millions of independently managed servers. Reducing exposure before the technical details became public required coordinated work across that entire ecosystem.

# Technical deep dive

## Bug: Upload-progress unserializer use-after-free

PHP's Session module can decode session data during upload-progress handling in the same pre-initialization window. The decoder stores request-owned bookkeeping in `BG(unserialize)`. A fatal allocation failure can interrupt this path, destroy the request heap and leave the unserializer's global state published.

On a later request handled by the same worker, PHP can consume attacker-reclaimed memory as live unserializer bookkeeping. The stale state becomes a powerful memory-corruption primitive. We combined it with the memory disclosure to remove address uncertainty and achieved unauthenticated remote code execution on WordPress, Drupal and Joomla.

The WordPress, Drupal and Joomla chains are representative demonstrations. The underlying primitives exist at the PHP engine level and can affect any PHP application running on a vulnerable version.

These issues execute below the application layer, so application logs may contain little context. Until systems are patched, defenders should pay particular attention to unusual multipart requests followed by memory-limit errors or repeated HTTP 500 responses, unexpectedly large or malformed `PHPSESSID` response cookies, and unexplained PHP worker churn. These signals can guide an investigation. Applying the PHP security update remains the only complete remediation.

## Bug: Remote process-memory disclosure

PHP parses RFC1867 multipart requests during request startup, before normal module initialization has completed. Session upload-progress handling can initialize Session state at this early stage and publish a session ID in `PS(id)`. An out-of-memory error can abor
danlark1455184
🟧 echo.blog ⭐Wiz says frontier models, especially Gemini 4 Argon, helped discover and develop exploits for PHP core memory-safety vulnerabilities affectiWiz Research——
🟠 redditSo it was them…
OpenAI
Powermadlux02
🟠 redditHow many "unexploitable" bugs are about to become exploitable?
artificial
Haunting_Ganache_85012435
🟠 redditAI-assisted php2shell exploit chain hits PHP runtime, forces coordinated defense across 70% of web
artificial
VectorWireAI82
🟠 redditWebsites taken down worldwide as critical PHP cyber-security update issued
singularity
MurkyRaspberry961018522
🟧 hnToday's PHP Security Release, and How We're Strengthening PHP Securityejohnso49816395
🟧 hnCloudflare deploys protections against php2shell vulnerabilityMaxious13424
🟧 hnRough Timeline of PHP2ShellCER10TY10
🟧 hnPhp2shell: Critical flaws allow code injection in PHPmarvinborner10
🟧 hnPHP2Shellnr378302
🟧 hnThe PHP fix for CVE-2026-109618 and CVE-2026-109619: +11556 lines of codeTekMol33
🟧 hnPhp2shell-Checkermatthieu_bl21
🟠 redditOpus 5.5 created a music video explaining the recent PHP exploit
ClaudeAI
LostMyConcentration22
🟧 hnAWS rates PHP RCE as Important so Amazon Linux 2023 patch may take 20 dayshayd10726
🟧 hnThe AI-Hacking Apocalypse Began Last Nightzzzeek102
🟧 hnThere isn't an easy exploit for this PHP vulnerabilityzkldi529321
🟠 redditPHP vulnerabilities CVE-2026-109618 and CVE-2026-109619 (yes, those ones) were independently discovered by a frontier model using the prompt "find bad vulnerabilities in PHP".
singularity
Recoil4260699
🟧 hnA sourced timeline of the PHP2Shell leak and embargo breakmakmanalp61
🟠 redditThe AI cyber arms race is escalating fast. PHP2Shell triggers millions of exploit attempts. China-linked hackers use AI agents to target 2,250+ cloud tenants, gaining privileged access in under 3 hours in some cases. CrowdStrike exposes four more AI-powered hacking campaigns.
singularity
141_133738388
🟧 hnTell HN: I unknowingly broke the PHP RCE embargo. I am sorry.petecooper677242
🟧 hnAmazon identifies Oct 17 PHP2Shell exploitation prior to public disclosurecubefox22480
🟠 redditOpenAI's GPT-5.6 Sol and Google's Gemini 4 Argon found critical PHP flaw affecting millions of websites
singularity
Keeltoodeep81
🟧 hnPHP2Shell: Critical PHP Vulnerabilities, What to Do About Themrobertpeters60b10
🟧 hnPhp2shell global patch uptake trackerlloyddd10
🟧 hnShow HN: Php2ShellCheck – Python script that checks for vuln indicatorsShredOnArrival20
🟧 hnRe: Hours later – No, there is an easy way to exploit this vulnerabilitycookiengineer33
🟠 redditFirst time in history?! AI-discovered bug forced my government to take its websites offline yesterday. And there are 26 more hacks this month that they're trying to hide from the public!
ChatGPT
we9318
🟧 hnAlternative way to block php2shell attacks for those who can't patch their PHPEGreg20
🟧 hnAsk HN: Have the PHP vulnerabilities been exploited?crisnoble30
🟧 hnClaudeCode skill to easily protect your website from the PHP2Shell bugdavenu10
🟧 hnCVE-2026-109619 PHP SentinelRyantjbirdusnav12
🟧 hnPHP2SHELL Patch for Older Versionswasdthedebugger30
🟧 hnShow HN: A small audit script and config notes for the new PHP CVEsmc49310
🟧 hnPHP advisory: disable session upload progress to prevent another unlikely RCEesnard50
🟧 hnOpenAI found a critical flaw in Brotli (used by Node.js, Bun and Envoy)shenli351410
🟧 hnThere's a third PHP2Shell bug, but it won't get an emergency fixBender10
🟧 hnPHP2Shell exploitation observed: packet-to-process RCE evidencechoult20
🟧 hnI've created a full-chain exploit for PHP2Shellmartinpham21
🟧 hnPHP2Shell: Exploitation Attempts and Remediation Trendsacossta17355
🟧 hnChained PHP2Shell Exploit Roots 25 Servers, Including US Government Servers882542F3884314B298149
🟧 hnPHP2Shell Deep Divemoebrowne4511
🟧 hnAI is shortening the time from PHP flaw disclosure to working exploit, Microsoftcodeswithrocky30
🟧 hnUpcoming Critical PHP Security Releasehypnot5714
🟧 hnShow HN: Exploitwatch – Alerts for vulnerable Docker containers (e.g. PHP2Shell)ympb12111

Interpretation history

Decision trace