PHP2Shell: AI uncovers critical RCE in PHP

(wiz.io)

184 points | by danlark1 1 hour ago

13 comments

  • Topfi 44 minutes ago
    Can anyone explain the two month window between reporting and disclosure? I do understand Responsible Disclosure as a concept, but looking at the timeline and severity, I struggle to understand the timing, especially the month that passed before an acknowledgment.

    Edit: Apparently this had been reported more than half a decade ago [0]. I am getting more confused the more I look into this, hopeful for a well written, factual post-mortem from someone who hasn't actively avoided PHP for the last decade.

    [0] https://news.ycombinator.com/item?id=50181395

    • phoronixrly 43 minutes ago
      Can anyone explain the lack of the irresponsible disclosure in the 'Responsible' disclosure timeline? The one that happened just before the coordinated release?
  • edh649 38 minutes ago
    Seems to have been prompted from research by calif.io who started disclosure on August 11 vs Wiz on August 24th? A bit unclear on the participants and how they all interacted... https://calif.io/php2shell/
    • geerlingguy 30 minutes ago
      One pattern of AI-assisted writing I hate is that technical articles now read as Atlantic journalistic tech-noir stories, which require scrolling through 20+ pages of content to get to the meat of a post.
      • himinlomax 6 minutes ago
        You're supposed to ask your agent to summarize it for you, I guess.
      • pizzafeelsright 15 minutes ago
        I generally click away when I see comic book style writing.
  • airtnp 13 minutes ago
    Ok, based on my reads on Wiz and Calif writeups, there are 5-6 issues mapped to 2 CVEs.

    Wiz (with GPT 5.6 Sol + Gemini 4 Argon) : Remote process-memory disclosure; OPcache type confusion; Fatal-error backtrace UAF. POC on Wordpress, Drupal and Joomla

    Calif (with LLM, no specific model, but model is accessible to all): Zend HashTable OOM. Targets PHP-FPM and mod_php.

    Both discovers the UAF on upload progress unserializer.

    Surprised to see the anime girl dancing with POC is really uploaded by Calif researchers.

  • wildmXranat 17 minutes ago
    Did anyone find a reputable source for code which can be used to validate fixes ?
  • tchalla 56 minutes ago
    > We used Wiz Atlas, 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.
    • krelian 50 minutes ago
      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?

      • NoahZuniga 46 minutes ago
        Wiz is a google company...
    • evandena 54 minutes ago
      a little self promotion there :P
  • pettijohn 1 hour ago
    Silly question, is PHP part of Project Glasswing? Crazy this has been dormant for a decade. And scary to wonder what else is lurking out there.
    • Maxious 58 minutes ago
      The OpenAI post linked says Sol assisted https://openai.com/index/coordinated-disclosure-of-critical-... and they invite more open source projects to apply to their program https://patchtheplanet.org/
    • rs999gti 56 minutes ago
      Lots of stuff is PHP e.g. most message boards. It was very popular pre-dynamic web.
      • whycome 39 minutes ago
        It’s still popular af. Almost half of any cms site online is powered by Wordpress. Many sales sites use woocommerce (Wordpress plugin). Message boards for sure (phpbb!). Moodle and other similar learning management tools run on PHP. Other cms systems like drupal and joomla make up another big portion of cms installs. I think the custom Wikipedia (mediawiki?) is php.
      • apocalyptic0n3 23 minutes ago
        It's still the most widely used server side language on the web thanks to WordPress, unless that has changed recently (it was dropping)
      • dd8601fn 53 minutes ago
        I just got a nostalgia hit remembering all the phpBB type boards.

        But also I haven’t seen much of that style of bulletin boards in ages. Maybe the occasional EEVBlog or Ars kinda count?

        • bombcar 38 minutes ago
          phpBB, vbulletin, and XenForo still power more than you might realize - often websites that still have comments are using one of those as a back-end, even if you can't access it directly.
          • rkozik1989 33 minutes ago
            How dare your forget PHPnuke.
  • asbv-1qq 50 minutes ago
    The flaw was in at least 20 year old code, which seems to be a common theme for AI discoveries.

    No compute costs for finding the issue or for writing the exploit are disclosed.

    But it is marketed as if it were the first RCE found in human history.

    • pizzafeelsright 9 minutes ago
      I discovered a large security concern that has existed for a decade, since the code was originally written. I was working on an unrelated task when my AI agent discovered an oversight because the agent happen to examine that file.

      Everything was sound and every test passed for years along with every security scan because intent was not validated.

      I would expect an unending source of exploits in the future until AI rewrites everything.

    • nope1000 17 minutes ago
      I like to be AI sceptical as well but I think it's even more noticeable if the flaw is in 20 year old code which thousands of people have read and reviewed and not noticed, isn't it?
      • ashfg1 11 minutes ago
        Hardly anyone reads and reviews in open source. It is a myth from ESR. Probably one person wrote it and another one said LGTM.
      • pizzafeelsright 8 minutes ago
        The recent signed keys being '4' is an example.

        Looks good, validates, works, and then trust is assumed.

    • pixl97 24 minutes ago
      Eh, it's an RCE that's been around forever and runs on a pretty large number of websites. Worse a lot of businesses have things like wordpress sites so one of those getting compromised is a foot in the door allowing movement into the more protected areas of the network.

      So yea, it's a big deal.

      • SoftTalker 9 minutes ago
        Web servers should not be a foot in the door. They should be assumed hostile and stringently limited. PHP especially has been notorious for remotely exploitable bugs but that's probably more due to its popularity and wide use by beginners than it being strictly worse than any other stack in this regard.
    • chrisvenum 42 minutes ago
      [dead]
  • sehw 1 hour ago
    Ye, no humans but "AI".
    • dewey 54 minutes ago
      Grinding through abandoned source code in hopes of finding a vulnerability isn't exactly the most fulfilling work for many, perfect use case for AI which doesn't sleep.
    • dspillett 37 minutes ago
      Apparently both bugs had been reported previously, pre-AI, if so some important questions need to be asked about how those reports slipped through without a fix.
    • 743947630229 59 minutes ago
      [dead]
  • mg794613 19 minutes ago
    I'm so tired of some of these "research setups", do you really need a logo, a brand and everything setup so you can cash in? Was this truely a problem or artificially created?

    Especially after fumbling it like this.

    "Buy our product, because we found a bug", yeah and you leaked it too.

  • NooneAtAll3 14 minutes ago
    Ai fumbles responsible disclosure*
  • jongjong 17 minutes ago
    Damn. I've been saying that writing correct software is almost impossible.

    I suspect it's a matter of time before all mainstream blockchain projects are cracked. Many of those projects are hundreds of thousands of lines of code. There's no way they don't have vulnerabilities given that AI is now uncovering so many vulnerabilities in such high exposure projects.

    I was a code minimalist before, now I'm a radical minimalist. We need to get the lines of code down to the absolute minimum.

    Attack surfaces need to be clearly defined, enumerable and testable under all possible conditions.

    • wat10000 11 minutes ago
      That's why so much emphasis is now placed on trying to make incorrect software either fail to build or fail at runtime in a way that doesn't let people take over the computer. C makes it extremely likely that a random correctness issue will be a security issue. Newer languages much less so. They're far from perfect but it's a lot better.
  • simonw 50 minutes ago
    Timeline from that article:

    August 19, 2026: Wiz Research discovers the first PHP vulnerability using Wiz Atlas, Gemini 4 Argon, and GPT-5.6 Sol.

    August 20, 2026: Unauthenticated RCE is confirmed against Drupal.

    August 21, 2026: Unauthenticated RCE is confirmed against WordPress.

    August 24, 2026: Wiz Research reports the vulnerabilities to the PHP security team.

    September 21, 2026: PHP acknowledges the reports and begins developing a coordinated fix.

    October 21, 2026: Patched PHP releases become available.

    October 21, 2026: Public disclosure.

    I want to understand how it leaked. I guess a whole lot of people were looped in between September 21 and October 21?

    • mjr00 33 minutes ago
      > 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.

      • geerlingguy 28 minutes ago
        Even some smaller vulnerabilities are spread through hosting companies pretty quickly within a day or two prior to public release, to give teams time to make sure staff will be ready to patch immediately.

        The wider the pre-release news spreads, the more chance you get someone who will spill the beans (intentionally or not).

    • bombcar 36 minutes ago
      Two months is way too long for this, and the people involved seem to not know the "way" to do this - it shouldn't have taken a month from "reports" to "PHP acknowledges" which smells like "we sent an email or filled out a web form" when the ACTUAL reporting mechanism is "we talked to our friends at <MAJOR DISTRO> or <WORDPRESS> who called the right people and a patch is being slipped in."
    • Good4boothee 30 minutes ago
      > I want to understand how it leaked

      If I understand correctly someone showed off a video of exploit in action - just like the ones included in article - and the visible messages were enough for other LLM users to discover the exploited bug.

      • simonw 21 minutes ago
        How did the person who shared the video hear about the exploit?

        Were they already looped in or was it circulating outside of the trusted group already?

    • its606 30 minutes ago
      It would have been nice if there had been time for downstream distributors to patch as well.
    • projektfu 46 minutes ago
      Simon, it seems you spend too much time close to the AIs and your writing is getting flagged.
  • chinathrow 47 minutes ago
    [dead]