Updated PHP version released to GitHub

(github.com)

271 points | by tuyuri 51 minutes ago

28 comments

  • nr378 36 minutes ago
    • chinathrow 30 minutes ago
      > Over the past two months, we led a coalition of maintainers, researchers, and security providers to address critical vulnerabilities in PHP, an open-source programming language used to run websites and web applications.

      And they botched this as someone talked. To me this looks like they used this for a PR stunt and aimed for an RCE.

      • janmo 19 minutes ago
        They haven't even been able to release the patch on time. Ubuntu still hasn't it
        • rob 2 minutes ago
          [delayed]
        • dspillett 11 minutes ago
          Debian has, though only for current stable (updates for oldstable and oldoldstable apparently about to drop) which might imply they had no advanced access to the update so could not pre-test and release immediately upon the coordinated announcement.
        • hdgvhicv 17 minutes ago
          I had an email from usn recently
      • anon1642 5 minutes ago
        I heard this was leaked several days early and that’s why folks seem to be on the back foot.

        I’d press go too - if something this big was known to some but not all…

        We’ll all get through together

      • nicce 22 minutes ago
        Wiz is owned by Google and Argon gets the main credits. So difficult to tell these days. But AI is obviously useful here.
        • chinathrow 20 minutes ago
          Of course it's useful, but you can't absolutely not leak something as big as this.
    • tetraodonpuffer 25 minutes ago
      surprising it took nearly a month to acknowledge the bug

      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.

      • bramhaag 21 minutes ago
        Took them almost 7 years even. According to the Calif write-up it was already reported in 2019 (https://bugs.php.net/bug.php?id=78876) and 2024 (https://ostif.org/php-audit-complete/).
        • polishdude20 16 minutes ago
          Lol wait so OpenAI's LLM to discover this vulnerability most likely just looked it up in an old forum post?
          • pixl97 3 minutes ago
            This isn't a terribly uncommon method of 'discovery'. In maths and sciences there have been tons of papers that have highlighted something new but were never really connected to anything else and then largely forgotten. Later they are picked up by someone else and connected to a much bigger whole.
          • charcircuit 7 minutes ago
            That's what my agent did to find a UAF. It just took a public one from calif off the internet and found it still flagged asan.
          • Maxious 4 minutes ago
            [flagged]
        • akersten 1 minute ago
          No way to prevent this, says only language where this regularly happens
    • esquire_900 20 minutes ago
      I feel like all "non-inner-circle people" here are taken for a laugh. OpenAI and these security companies sat on this for 2 months, decided for themselves who gets access to an early fix, and then leave the rest out to dry while they failed to properly contain it.

      The official interim fix for php8.5 [1] could have been published 24h ago, or even 2 weeks ago, without revealing any security details. Specifically once the POC came online. Would have been significantly more useful than these polished blogs.

      Perhaps I'm missing something here, but the costs (dev/sre time, missed sales, potential data leaks and hacks) of the way that this was handled is significant.

      [1] https://github.com/php/php-src/security/advisories/GHSA-6wmf...

      • john_strinlai 15 minutes ago
        >OpenAI and these security companies sat on this for 2 months

        these security companies reported it 2 months ago. it took a month for the php security team to acknowledge it and another month for the php team to develop & release the patch.

        if you're going to be upset at anyone it should not be the reporters.

        >The official interim fix for php8.5 [1] could have been published 24h ago, or even 2 weeks ago, without revealing any security details.

        publishing the fix = publishing the security details.

        • bombcar 4 minutes ago
          This really sounds to me like "they filled out some webform" or "sent an email to security@php that read like any of the ten billion we found vulnerability in your code please send money emails they get.

          If I had details on a RCE like this I'd report it but if I got no response for a WEEK I'd be trying other venues.

        • charcircuit 8 minutes ago
          Why does the PHP security team need to acknowledge it and develop the fix? It's open source software.
          • lokar 1 minute ago
            If you want an orderly fast global rollout you need to have the maintenance team and distributors working together.
          • weird-eye-issue 4 minutes ago
            So anybody can just push out a new release of PHP?
      • dannyw 5 minutes ago
        Maybe the NSA ‘requested’ some time to use the exploit on some high value targets.

        Sure, it’s PHP, but plenty of companies or organisations might have some PHP running somewhere; and once you’re in, lateral movement becomes a lot easier.

    • darkwater 32 minutes ago
      Why is WordPress out of that list? Isn't it the single major PHP installation in the whole Internet across hosted and self-hosted instances?
      • 12837615 2 minutes ago
        WordPress is down right now. A bit late for patching though ...
      • trollbridge 27 minutes ago
        Well, WP is just a program written in PHP.
        • dspillett 18 minutes ago
          One of the most common PHP based applications out there, therefore a good comms channel (via their forums and any mailing lists, both public and for people who have managed instances with them or are otherwise paying for support contracts) to make sure people are aware of the need to update. That would make the company one worth keeping in the loop, if only in one direction, I would have thought?
          • trollbridge 4 minutes ago
            Well, it would help if WP were actually controlled by one entity, but currently it's dominated by factions and infighting.
        • ImJamal 23 minutes ago
          They have hosted instances as well though. Not sure their market share though.
      • LoganDark 2 minutes ago
        I agree, WordPress should be like the first thing they point out. I'd imagine most WordPress users don't even know it runs on PHP
      • bombcar 28 minutes ago
        Because the CEO of Wordpress has gone insane, basically.
        • nicce 15 minutes ago
          Automattic is on the list, tho.
    • freebsd_lovefes 23 minutes ago
      [dead]
  • tux3 46 minutes ago
    • simias 43 minutes ago
      >PHP uses longjmp()

      Well off to a good start here.

    • fock 31 minutes ago
      did I skim this correctly that with the mitigation shared this does not (yet) impact fpm-usage and classic CGI (vs. mod_php) is not impacted either?
  • ytxm 44 minutes ago
    Click the associated tag:

    > This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

    Glorious. Today of all days it would genuinely give me pause for caution.

    edit: yeah, really not feeling that: https://github.com/php/php-src/compare/php-8.2.34..php-8.2.3...

    Hopefully just a mistake? But looks like a botched release at the least

    • OJFord 39 minutes ago
      Same on the older few. I'm not sure I understand it though, seems strange you can have a tag for a commit that's only present in a fork?

      Is it perhaps a bit misleading, and only means that there's no branch containing that commit?

      • cyberclimb 30 minutes ago
        It can mean either, it's a consequence of how github optimized their backend storage so a 100 forks of a repo initially take up the same space as 0 forks
      • drdec 21 minutes ago
        main (or master) is just another branch to git.
    • fixkitai 27 minutes ago
      [flagged]
  • cholmon 23 minutes ago
    Ondrej might appreciate some monetary love on a day like today.

    https://www.patreon.com/cw/oerdnj

    • aftergibson 7 minutes ago
      Not even $700 a month? Seriously, there must be thousands of highly profitable companies depending on this guy’s maintenance. Once this is all sorted, please hassle your employers to give something back to him!
  • Xyrren 20 minutes ago
    https://ubuntu.com/security/CVE-2026-109618#status fixes have been back ported in Ubuntu LTS versions just now.
  • k1kingy 47 minutes ago
    Does anyone know how long it takes for the ondrej/php repo to be patched usually?
  • Amsozzer 32 minutes ago
    Since I have to go through a bunch of php repos today at work I ended up releasing a CLI tool that automates that process by listing out the steps you need to take to stay away from the vulnerability. Here's the link incase it helps anyone https://github.com/Amsozzer1/php2shell-repo-audit
    • trollbridge 2 minutes ago
      Dude, today of all days is not when I'm going to trust some random CLI tool that was vibed out. I'm not saying your work isn't helpful, but it would probably be a lot better to just release your prompts you used to build this and let others build it on their own.
  • ckbkr10 2 minutes ago
    Sury released backports for older versions, as always hes incredibly reliable.
  • bstsb 41 minutes ago
    i just took down all my PHP sites for the last few hours. they’re proxied behind Cloudflare so i know there were mitigations, but infrastructure can’t be breached if it isn’t running!
    • bombcar 26 minutes ago
      Now I need to get the cute name for a vm vulnerability that attacks offline servers ...

      awake2death or something

  • dstu 32 minutes ago
    So far Ubuntu LTS isn’t picking up the new packages for me via apt update, and Laravel Forge appears completely unresponsive as a result of being flooded by people trying to update their servers.
    • trollbridge 2 minutes ago
      And I'm maintaining a box on 18.04 over here, and lo and behold its Pro subscription isn't showing up as active, so I couldn't get the update even if they do release it.

      Going to migrate the box to Debian in-place. (Or Gentoo, the way things are currently going.)

    • Neil44 11 minutes ago
      Same, I'm spamming the apt update and so far nothing on 22.04 or 24.04 lts
    • janmo 19 minutes ago
      They had plenty of time to prepare for the release, what a shit show
  • petecooper 35 minutes ago
    >Given the severity of these vulnerabilities, the PHP security team provided minimal source-backports for PHP 7.4, PHP 8.0, and PHP 8.1 to help people building from source or without access to an LTS vendor.
  • jdw64 2 minutes ago
    What I've been feeling lately is that security vulnerabilities will inevitably keep being discovered, and I worry whether humans can ever patch all of them.
  • tuyuri 51 minutes ago
    Versions: 8.2.35 8.3.36 8.4.27 8.5.12

    Now are available in the php-src github

  • dmtroyer 36 minutes ago
    Have we ever seen the "get ready for a security release tomorrow" email before?

    https://www.php.net/archive/2026.php#2026-10-20-1

    • bombcar 26 minutes ago
      Many vendors do it, but on a set schedule "patch Tuesday" and some will release vague "mitigation steps" but honestly those usually come with the patch.
  • iamcreasy 30 minutes ago
    Does anybody know when Amazon Linux 2023 will get this release?
  • f311a 19 minutes ago
    This reminds me of the old days when PHP was such a vulnerable language.

    By simply searching for websites that used local includes to load other pages, you could get RCE.

    At this point, running webapps in JS workers/sandboxes sounds like a good idea. Vendors take care of patching.

    • dannyw 2 minutes ago
      Have a search for V8 RCE/CVEs over the past year.
  • abbbi 42 minutes ago
    debian trixie just rolled updates.
  • cowlevel 39 minutes ago
    So they've added malloc fail checks and tests for malloc fail throughout.

    Is this even reachable on Linux due to overcommit? Maybe by attempting a single extremely large allocation?

    • antiloper 26 minutes ago
      PHP is tracking its own memory usage internally with limits configurable via php.ini.
  • charcircuit 45 minutes ago
    • CodeCompost 37 minutes ago
      It says "3 days ago". The tag is 2 days old.

      I assume it just got pushed?

      • invokestatic 36 minutes ago
        Yeah… it was patched in the source 3 days ago. Check the linked GHSA.
  • DonHopkins 27 minutes ago
    Time to restart Apache again!

    "I'm not a real programmer. I throw together things until it works then I move on. The real programmers will say 'Yeah it works but you're leaking memory everywhere. Perhaps we should fix that.' I’ll just restart Apache every 10 requests." -Rasmus Lerdorf

    • bombcar 25 minutes ago
      Amusingly enough restarting php after each request seems to block the issue
  • bombcar 47 minutes ago
    What I did on our WordPress boxes while waiting for distro packages (CVE-2026-109618 / CVE-2026-109619)

    1. session.upload_progress.enabled = Off, in php.ini and as php_admin_flag in every FPM pool, so per-directory config can't turn it back on. It's one of the two confirmed consumers in GHSA-6wmf, and the validated FPM path depends on it. Almost nobody uses it, and the advisory suggests leaving it off even after patching.

    2. Refuse multipart request bodies at the web server, before PHP parses them. All of the GHSA-w8hw out-of-memory strategies go through multipart parsing. On Apache it's a rewrite rule matching a Content-Type of multipart/form-data that returns 403. On Caddy it's a header matcher that responds 403. The cost: every browser upload breaks (media library, plugin zips, importers). Check your public forms first.

    3. Check your SAPI. Both bugs have confirmed RCE against mod_php. FPM is narrower: the validated path needs upload_progress, and the early INI consumer only applies if your front end sends PHP_VALUE/PHP_ADMIN_VALUE. To check, grep your Apache, nginx and Caddy configs for it, and run apache2ctl -M | grep php.

    4. pm.max_requests = 1 in the pools. A worker serves one request and exits, which breaks the stale-state chain: the "producer" and "consumer" requests must land on the same worker. It costs a fork per request.

    5. Lower max_input_nesting_level and post_max_size, per the advisory.

    6. Housekeeping that should already be done: no .php served from uploads directories, and remove any stray phpinfo.php. Scanners request it constantly, and it tells an attacker your exact build.

    • dwedge 35 minutes ago
      This is just Claude output. Did you verify anything or just rehash the links?
      • bombcar 22 minutes ago
        It's just Claude output of what I've done; the other URL has the basics.
      • mistertrotsky 27 minutes ago
        HN should ban comments that are just Claude output
        • throawayonthe 11 minutes ago
        • whycome 17 minutes ago
          I’d rather just some sort of tag. Because sometimes it can be useful. This is a case where the community here can scrutinize the output and actually pull out useful data or steps or even starting points when information is coming in so fast for a developing story/issue
          • bombcar 10 minutes ago
            The (pretty obviously Claude'd) responses with actual steps you could take to mitigate were 1000% more useful to me than the "SHUT EVERYTHING DOWN WE'RE GONNA DIE" and the "stop posting AI slop" posts were, that's for sure.
      • DonHopkins 22 minutes ago
        Why don't you do something useful and rewrite it so it's not claude output any more, but says the same thing in a way that you're satisfied with?

        Then your own comment would not be such low effort and useless human slop.

        Do you agree or disagree with the comment's claims? Did YOU verify anything? Let's all hear you fact check and proofread and reword what it said so it matches your standards, instead of just listening to you bitch and complain without offering any useful information.

        Or do you not actually know anything about PHP administration, programming, and security, so you're only capable of information-free drive-by anti-ai posts, without any other useful content or corrections?

        Ball's in your court.

    • bombcar 41 minutes ago
      [flagged]
  • Maxious 48 minutes ago
    [dead]
  • hizlikovboy27 40 minutes ago
    [dead]
  • magar_fos 39 minutes ago
    C'mon Ondřej..
  • rvz 20 minutes ago
    PHP is done.
    • rkozik1989 6 minutes ago
      People have been saying this for the past 16 years, but the reality is once a system is in production over time it becomes increasingly risky to replace it. Because over the life of a piece of software you make tons of small fixes, resolve bugs, adding customer-specific functionality, etc. that you'd completely overlook when planning our requirements for a rewrite. Which is a big problem when other systems are dependent on the software operating a specific way i.e. APIs, web services, and so forth. Not to mention the economics of a rewrite also has to make sense. Nobody is going to spend 2-3 years recreating what they already had and get no additional functionality out of it. Certain software basically has to get so bad that literally anything replacing it is better than what came before for replacing it to be the right approach.
    • antiloper 12 minutes ago
      Just how debian was done after weak keys, OpenSSL was done after heartbleed, or Windows was done after (rolls dice) the print spooler RCE
  • EGreg 35 minutes ago
    For anyone who can't patch their PHP for some reason, here is a proxy that eliminates the threat for you:

    https://news.ycombinator.com/item?id=50180987

    https://github.com/Qbix/proxy

    I wrote it so I could deploy it myself on our old nginx + php-fpm setups, thought I would share. It should work with all top servers (nginx, apache, caddy etc)

    • import 22 minutes ago
      Hi, your build is failing my friend.
      • EGreg 19 minutes ago
        You're right – need to fix the Cosmopolitan build in GitHub actions. On it!

        UPDATE: Just going to ship a Linux binary for now, that's where most hosting is. Almost no one hosts from a MacOS or Windows machine. The Cosmo binary was overkill here.

    • julkali 30 minutes ago
      Please stop pushing your slop to profit off the situation.
      • antiloper 16 minutes ago
        Surely the "structual fix" for a use-after-free is a pile of unreviewed C code! I don't see any problem here.
        • EGreg 13 minutes ago
          It's free, MIT open source. It was the best I could do. Run it under a Linux user with no permissions to access anything. All it's supposed to do is proxy requests. Don't give it access to any files.
      • EGreg 28 minutes ago
        You know, normally I'd be okay with these comments, but in this case you're actively hurting a lot of people by this bullshit. Many people need something other than patching PHP.

        It's free and MIT licensed, open source and it is currently the only alternative to patching your PHP. The "profit" is for people who don't get PWNED today!!!

        Many people can't patch your PHP. If you can't be bothered to even look at the repo, you may want to sit this one out.

        https://github.com/Qbix/proxy

        • klausa 24 minutes ago
          In what circumstances would you be unable to patch your PHP, but able to stand this proxy in front of it?
          • bombcar 21 minutes ago
            The one we're in right now, where we're waiting for vendors to rebuild the packages (I'm ass-blasted that the delay to 14:00 UTC wasn't for the vendors to build packages but seems to be a PR stunt?).
            • kalleboo 15 minutes ago
              Apparently they didn't even use the time to prepare official docker images
          • EGreg 20 minutes ago
            [flagged]