Upcoming critical PHP security release

(news-web.php.net)

207 points | by xd 7 hours ago

19 comments

  • bwoebi 53 minutes ago
    For everyone wondering why the patch is not out yet:

    There are a handful people responsible for doing a release. They are still asleep.

    To be honest, I am also shocked, that the exploit was published that quickly, after the leaked video (which was the reason, why the announcement happened in the first place, at that specific time). We expected a bit more time, even with LLMs...

    • jwitthuhn 8 minutes ago
      Hopefully the industry will learn something about how withholding fixes to known vulnerabilities is, in fact, bad policy.
    • baggy_trough 46 minutes ago
      The police should wake them up.
      • 27183 44 minutes ago
        lmfao what... If the police woke me up to fix anything the only thing they'd get out of me is "lawyer". And I wouldn't put a single iota of effort into fixing that thing until the entire matter with the police was resolved. If you want someone's attention on something, especially something nuanced and intricate like a software bug, that's absolutely not how you get it.
  • dawnerd 22 minutes ago
    I tried it on a personal site, was able to dump the entire database. Immediately shut all my sites down. This is bad.
  • redox99 1 hour ago
    The exploit is already out. Yeah this looks like it's going to go on history as the worst vulnerability ever. And now with LLMs you'll likely see tens of thousands of agents hacking any php website out there within hours.
    • spenvo 1 hour ago
      Yup, I'm seeing several legit people on X claiming to have seen or found the exploit. Some say that: turning session.upload_progress.enabled off and setting file_uploads = Off will mitigate. But others are claiming that those steps are not enough and "Upload progress can serialize before basic RINT clears BG(serialize)". So, I'm taking no chances and taking my services offline.

      https://x.com/MagicalTux/status/2112725774025572431 https://x.com/rina4_tot/status/2112723421641531772

      I think this exploit + agentic AI (which allows for rapid secret exfiltration/utilization) may be a potent enough combo to trigger a sort of Kessler Syndrome for network security.

      • int32_64 28 minutes ago
        Mark Karpelès? Wow that's a name I haven't thought about since 2014.
  • joshuat 1 hour ago
    If the rumors for these exploits being shared on Twitter are correct this is going to be a nightmare. I wouldn't be surprised if VPS hosts step in to mitigate it somehow since so many cheap/unmaintained LAMP installs are running on those servers.
  • Gigachad 4 hours ago
    The demo video has been going around Twitter today and apparently the proof of concept is privately being shared around too. The video shows pasting something in the URL and then gaining a shell on the server. It looks completely catastrophic.

    I think the best course of action is to just shut your server down before the patch goes live and then bring it back after you have patched.

    • archon810 3 hours ago
    • ndiddy 29 minutes ago
      The URL is to show the effects of the exploit. The person's running a python script that runs the exploit and then makes the PHP installation execute an arbitrary shell command. The proof of concept involves writing "pwned" to a publicly accessible location on the web server, then they refresh the browser pointing at the URL to show it's been written.
    • philipwhiuk 3 hours ago
      This is gonna rinse so many LAMP WordPress installs where the PHP version is either not getting a patch or the hosting is managed by the user via a contractor or the hosting is managed by a company with a fleet of custom servers etc etc.
      • qingcharles 16 minutes ago
        I can think of some really ancient phpBB boards that probably won't ever come back if they get hit.
      • Gigachad 1 hour ago
        We almost need some bot that logs in to every vulnerable PHP server and turns it off to prevent it being properly exploited before the server admin updates it..
  • enews01 1 hour ago
    Just shut down our MediaWiki site temporarily out of an abundance of caution. The twitter videos look scary...
  • redox99 17 minutes ago
    Only 53 comments for what's most likely going to be the biggest vulnerability in history? I don't understand how this isn't getting more attention. The exploit is already out and it's basically shell access on any php website out there.
    • Titan2189 0 minutes ago
      We're all busy turning off uploads on our servers
  • dangoodmanUT 1 hour ago
    That is definitely very not good.

    I got into software dev because of cyber sec, and almost everything I learned revolved around poorly implemented php, so I always stayed away from it when building

    but this time it's php directly? that's scary

    • mircerlancerous 1 hour ago
      There are regular security patches for basically everything these days, including OSs. Why does this notice stand out to you? The post suggests that they're being proactive, and discovered and patched these before they were exploited. Rather they take this transparent approach, as opposed to being silent and/or doing nothing.
      • Gigachad 56 minutes ago
        This one stands out because it's trivially exploited over the internet on the default configuration for all PHP versions. Most vulnerabilities require being able to run malicious code on the machine or using some rare configuration.

        If the rumors going around are true this will be the worst computer security incident in history.

  • barelysapient 47 minutes ago
    This might be the nail in the coffin for php.
    • skoskie 33 minutes ago
      This is a joke, right? I can't tell if this is a joke.
    • tonymet 35 minutes ago
      Don’t you mean WWZ ? Php is hardly dead – billions of installs.
  • LoganDark 2 hours ago
    There is allegedly a temporary mitigation: https://twitter.com/k_firsov/status/2112718728232329240

    php.ini:

        session.upload_progress.enabled = Off
    • robwayne 25 minutes ago
      According to a PHP core dev, this is insufficient, but no details were provided. Probably can't hurt anyway.

      https://phpc.social/@Girgias/117476477429221001

    • lynndotpy 2 hours ago
      Just a heads up, as of my comment, this is not endorsed by PHP as a migration for the patch.
      • lol768 1 hour ago
        > as of my comment, this is not endorsed by PHP

        Are you speaking officially here?

        There are various mitigations suggested online, including completely blocking multipart requests at LB level. Is the combination of both effective?

        • lynndotpy 1 hour ago
          I am not affiliated with PHP in any way or sense, I am saying this as someone who is able to see PHP's announcements, and there was no patch or mitigation announced by PHP.

          I don't think pulling mitigations from random users online during a developing situation is a good idea. I think shutting down ones PHP services for the time being is a very good idea if that's an option.

        • 1over137 10 minutes ago
          "LB"?
      • LoganDark 1 hour ago
        I wouldn't skip updating, but is there anything else we can do, other than simply shutting down the web server until the fix is available?
        • lynndotpy 1 hour ago
          I do not have details about any mitigation. There are rumors that people have independently come across php2shell exploits.

          I shut down my servers five hours ago. This might have seemed premature at the time.

          I think the best course of advice for most people is to shut down their servers as soon as they possibly can.

          • qingcharles 9 minutes ago
            I applied the mitigation to all my servers when it was released, but now I've stopped all the httpds. A few hours of overnight downtime, vs potentially trying to restore everything from backups tomorrow. Everyone should weigh it up.
        • xena 1 hour ago
          You could disconnect the web server from the internet!
  • atymic 1 hour ago
    Uh oh, POC is already out there https://jackalsyn.com/posts/php-up-2026.html
  • hparadiz 1 hour ago
    They need to release it now.
  • jacquesm 2 hours ago
    A lot of people are going to be up late on account of this.
    • stingraycharles 2 hours ago
      Must be a pretty serious one that can be exploited easily, I haven’t seen this type of pre-announcement of when something will be released before.
      • geerlingguy 1 minute ago
        There are some vulns that warrant a pre-release announcement (in the Drupal community, this happened for a few of the more serious fixes). And prior to the public pre-announcement, there is often informal coordination between some of the larger hosting providers or giant companies who can help roll out the patch more quickly.
      • SyneRyder 2 hours ago
        Check the Twitter linked video above. It's bad. Just having PHP running on the server is enough.
  • bakugo 1 hour ago
    Strange to see this so far down the front page. If the rumors are true, it may be worse than Log4Shell.
  • jamesfinlayson 2 hours ago
    No hints as to what versions are affected?
  • charcircuit 57 minutes ago
    How is the patch still not out yet? This is another case of big tech players all colluding together leaving all the small guys out to dry.

    At least this time we can have LLMs rediscover it and make patches ourselves.

  • jeffbee 1 hour ago
    I am seeing a lot of words like "unconditional" thrown around but I remind that defense in depth is a thing and you can practice it, or should have been practicing it. You can, for example, disable the `system` function of PHP altogether. You can also arrange for your PHP to be running in a situation where there's no shell, or any other program, to exec. Or for that matter a filesystem.
    • Operyl 57 minutes ago
      It's a RCE bug, it does not matter if you disable php functions. It's not arbitrary PHP execution, it's an exploit chain resulting in a shell.
      • afdbcreid 54 minutes ago
        Indeed, an attacker theoretically can access anything the PHP process has permission to access. However even without limiting permissions (also a good idea) that means the simple/published exploits won't work on your server, and there's a high chance criminals will look for other targets, assuming you're not targeted.
      • jeffbee 55 minutes ago
        You know how "resulting in a shell" works?
        • Operyl 18 minutes ago
          I can guarantee you that it's not because someone left system() enabled, it's much lower than that.
    • calvinmorrison 33 minutes ago
      no idea why this is downvoted. PHP runs typically on linux machines. If you depend on a language feature to prevent 'exploit' and don't utilize the operating systems features to limit access to data.

      Shell access is not good, but in many places that wouldn't be the end of the world either.

      Rethink your strategy

      • Operyl 16 minutes ago
        If your PHP application accesses a database, you've got exfiltration, it doesn't matter in this case. Unless your PHP application is just echoing non sensitive data (i.e. rendering md files)...
  • nullbio 1 hour ago
    https://x.com/J4ck3LSyN/status/2112703096443097263 Already being exploited. They need to release the patch now, not later. This is already being deployed by attackers as we speak.
  • ChrisArchitect 2 hours ago