<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/php2shell-ai-uncovers-critical-rce-in-php-plrjkhkrv" -->

---
title: PHP2Shell: AI uncovers critical RCE in PHP | daily.dev
description: Wiz Research found critical memory-safety vulnerabilities in core PHP that allow unauthenticated remote code execution, affecting around 70% of websites...
canonical: https://daily.dev/posts/php2shell-ai-uncovers-critical-rce-in-php-plrjkhkrv
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: PHP2Shell: AI uncovers critical RCE in PHP | daily.dev
og:description: Wiz Research found critical memory-safety vulnerabilities in core PHP that allow unauthenticated remote code execution, affecting around 70% of websites...
og:url: https://daily.dev/posts/php2shell-ai-uncovers-critical-rce-in-php-plrjkhkrv
og:image: https://api.daily.dev/og/posts/pLrjKhkRV.png
og:image:alt: PHP2Shell: AI uncovers critical RCE in PHP
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# PHP2Shell: AI uncovers critical RCE in PHP

**[Hacker News](https://daily.dev/sources/hn)** · 15 min read · 0 upvotes · 0 comments

## Summary

Wiz Research found critical memory-safety vulnerabilities in core PHP that allow unauthenticated remote code execution, affecting around 70% of websites worldwide. The flaws, tracked as two CVEs with CVSS up to 9.2, stem from bugs in how PHP handles fatal errors like out-of-memory conditions, affecting nearly every PHP version, including releases dating back to PHP 5.4. Researchers chained the bugs into an exploit called php2shell and demonstrated pre-auth RCE on WordPress, Drupal and Joomla. Frontier AI models, including Gemini 4 Argon and GPT-5.6 Sol, were used to develop and adapt the exploit across multiple applications in hours. PHP released a patch on October 21, 2026.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://www.wiz.io/blog/php2shell-php-rce>

## Community take

How the wider developer community reacted, aggregated from 1 discussion and 114 comments across hackernews (as of 2026-10-21).

**TL;DR:** Discussion is dominated by confusion and suspicion over the disclosure timeline and a leaked proof-of-concept video, alongside a broader argument about whether C's memory-unsafety or sloppy triage of old bug reports is really to blame, with AI's role seen as useful for discovery but overhyped/self-promotional in the writeups.

**Sentiment:** 10% positive · 35% mixed · 55% skeptical

**The case for**

- Some see value in AI agents surfacing long-dormant, complex memory-safety bugs that human review missed for decades.
- A few note AI-assisted review/validation of patches can genuinely help defenders, even if it doesn't make code inherently safer.

**The pushback**

- Many are suspicious that a proof-of-concept video leaked before the official disclosure, possibly breaking responsible disclosure.
- Commenters question why the gap between report (Aug 24) and acknowledgment (Sep 21) was so long, and whether the process was handled competently.
- Several argue this is marketing/self-promotion for Wiz's AI product rather than a purely altruistic security disclosure.
- Some note the underlying bug may have been reported and only partially patched years earlier, raising concerns about triage quality.
- Skepticism that the writeups are AI-generated, bloated, and light on real technical detail explaining how the memory corruption becomes RCE.
- Debate over whether C itself or just undisciplined C programming practices are to blame for recurring memory-safety RCEs.

**By community**

- hackernews (heated): Heavy focus on the suspicious pre-disclosure leak of a PoC video, skepticism toward the vendors' marketing angle, and a side debate over whether C or programmer discipline is at fault for memory-safety bugs.

**Hottest debate:** Whether the leaked proof-of-concept video indicates a broken/irresponsible disclosure process or was simply an independent rediscovery that happened to coincide with the embargo period.

**Open questions**

- How exactly did the proof-of-concept video leak before official disclosure, and who was responsible?
- Were the underlying bugs genuinely novel AI discoveries, or variants of previously reported but incompletely fixed issues from years earlier?
- Why did it take a full month between the initial report and PHP's acknowledgment of the vulnerability?
- Is there concrete evidence of exploitation in the wild before the patch was released?

**Highlights**

> that's the million-dollar question currently. The guy posting the movie on X is referring back to Calif.io and other person as the creators of the video. Also, it's not a working exploit, but a video of a PoC, including a dancing manga character, so I'm wondering why a company like Calif.io creates such a thing. Another "interesting" development: chainguard unilaterally decided to break embargo 6 hours before the official publishing, by releasing patched container images. Why???
> — [olafmol on hackernews · 1 comments](https://news.ycombinator.com/item?id=50182894)

> So from what I gather, it was found by OpenAI (via unspecified model?) and independently by Wiz (via Gemini Argon)… but before that it was found by Calif (via unspecified but consumer-available model)… but Calif credit LCFR_HAX before them with first discovery, disclosure, and remediation efforts. I guess either LCFR or Calif put it in the training data (by using a consumer-available frontier model in the process of discovery or remediation), and then OpenAI reproduced it from the training data, Navier-Stokes-scoop-style? Except I guess more plausibly unaware, and also late? They thought they had something novel, because they weren’t privy to the existing remediation effort?  It’s all rather confusing, and then on top there’s a leak and a PR campaign and it just becomes impossible to untangle.
> — [fwlr on hackernews · 1 comments](https://news.ycombinator.com/item?id=50183250)

> > I want to understand how it leaked. I guess a whole lot of people were looped in between September 21 and October 21? Yes. I was at AWS when Spectre and Meltdown were discovered, and we received approximately a month of advance notice and put together teams to apply mitigations. The work of the team was on a need-to-know basis--even team members' managers only knew they were pulled onto a critical project, not what the specific project was. But there were still 30+ people in the company who knew, and that was just one company (I'm guessing Google/Azure/other cloud providers got similar advance notice). Now, this is a much wider scale vulnerability, in the sense that Spectre/Meltdown primarily impacted cloud providers, but this attack impacts literally anyone who runs PHP. Dozens, if not hundreds, of companies likely got advance notice that a patch needed to be installed. In those companies there are teams of people applying those patches. All it takes is one of them who wants 15 minutes of internet fame to leak the details.
> — [mjr00 on hackernews · 1 comments](https://news.ycombinator.com/item?id=50181705)

> I'm very confused about what's going on. In fact as far as I can tell those specific bugs were fixed. https://bugs.php.net/bug.php?id=78876 marks the OOM bug as closed and fixed in 2020. It seems the AI exploration was able to find variants of those bugs that were not fixed rather than exactly those bugs themselves?
> — [dwohnitmok on hackernews · 2 comments](https://news.ycombinator.com/item?id=50182970)

> First the product they sell, then the product they got early access too... I know they waited two months with this but wouldn't it be wiser to wait just a little bit more than a few minutes after the fix released?
> — [krelian on hackernews · 2 comments](https://news.ycombinator.com/item?id=50181417)

**Source threads**

- [hackernews](https://news.ycombinator.com/item?id=50180836) · 305 points · 114 comments

## Similar posts on daily.dev

- [PHP2Shell Shows Why Security Cannot Stop at the Last Test](https://daily.dev/posts/php2shell-shows-why-security-cannot-stop-at-the-last-test-kibbq2lgf) · Medium · 0 upvotes · 0 comments
- [PHP rushes out emergency patches for two critical bugs AI found first](https://daily.dev/posts/php-rushes-out-emergency-patches-for-two-critical-bugs-ai-found-first-smuf7gcab) · The Next Web · 0 upvotes · 0 comments

---

Tags: [#php](https://daily.dev/tags/php), [#wordpress](https://daily.dev/tags/wordpress)

[View this post on daily.dev](https://daily.dev/posts/php2shell-ai-uncovers-critical-rce-in-php-plrjkhkrv)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"PHP2Shell: AI uncovers critical RCE in PHP","url":"https://daily.dev/posts/php2shell-ai-uncovers-critical-rce-in-php-plrjkhkrv","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/php2shell-ai-uncovers-critical-rce-in-php-plrjkhkrv"},"datePublished":"2026-10-21T14:30:30.109Z","dateModified":"2026-10-21T17:21:34.408Z","description":"Wiz Research found critical memory-safety vulnerabilities in core PHP that allow unauthenticated remote code execution, affecting around 70% of websites...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/44686705f1d66cd3777283a4b0fa9227?_a=AQAEuop","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/44686705f1d66cd3777283a4b0fa9227?_a=AQAEuop","isAccessibleForFree":true,"articleSection":"Hacker News","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"Hacker News","logo":"https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/hn","url":"https://daily.dev/sources/hn"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/php2shell-ai-uncovers-critical-rce-in-php-plrjkhkrv","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":0},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"php,wordpress","timeRequired":"PT15M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Hacker News","item":"https://daily.dev/sources/hn"},{"@type":"ListItem","position":3,"name":"PHP2Shell: AI uncovers critical RCE in PHP"}]}
```

