PHP 8.5.12, 8.4.27, 8.3.36 and 8.2.35 out

(php.net)

221 points | by timvdalen 47 minutes ago

21 comments

  • majewsky 20 minutes ago
    > out-of-memory handling can interrupt PHP while internal request data is only partially initialized. Request cleanup may then treat the invalid data as valid.

    If only we could come up with a way to manage memory automatically. Alas, one can only dream.

  • spenvo 9 minutes ago
    how does Docker not yet have a new, official PHP image ready, given such a big heads up? https://hub.docker.com/_/php Nuts this wasn't ready to flip on at :00 (or even earlier given the PoC exploit and even the official PHP fixes were out well before). Now we are 27 minutes past due.
    • reddalo 1 minute ago
      Yes, it's embarrassing for Docker. Makes me wish I still had the classic LAMP stack.
  • imzadi 29 minutes ago
    FML. Can't get in to update our servers because of MFA and our director, who gets the codes, isn't in
    • bartread 24 minutes ago
      Great example of performative enterprise security practice that contributes to degraded security posture, I suppose. Best of luck.
      • andix 15 minutes ago
        What would happen if the director suddenly gets sick or decide not to come to work anymore? A lot of people assume that humans are reliable, they are not.
        • nolok 3 minutes ago
          One of my first boss called it the bus factor, not sure where the term comes from. What's the minimum number that need to get hit by a bus before it's impossible to keep things running. He used to say "you always have some bus factor, but it should never be one unless you're alone, otherwise you deserve whatever crap is going to rain on you someday".

          I've found that to be incredibly true in my career.

        • bartread 11 minutes ago
          Exactly: limiting access is fine, lack of contingencies is not.

          Some systems and services still only allow for one owner though (I'm not going to name names), which can be a big problem when MFA is mandated. From what the poster I responded to said, I'd be very surprised if that were the case for them though - just slightly daft policy.

        • botas 9 minutes ago
          Have lived this when a seeming healthy mid-30s man dropped dead. Nightmare.

          Implemented a lot of “just in case” policies after that, which seemed obvious but oh well.

    • jacquesm 5 minutes ago
      Let's hope he didn't go skydiving. Seriously, you need to improve your processes.
    • volkk 12 minutes ago
      where do you work? >:)
  • janmo 27 minutes ago
    Still no release for Ubuntu... They are already half an hour late. Debian got the patch almost immediately...
    • nairboon 3 minutes ago
    • tomkarho 18 minutes ago
      Ubuntu probably started working on a rust based replacement instead: rphp.
    • reddalo 10 minutes ago
      curl -fsSL https://packages.sury.org/php/README.txt | bash

      This adds Ondřej Surý's PPA to your system so you can upgrade the packages.

    • dmtroyer 24 minutes ago
      if it makes you feel any better, the official dockerhub images aren't ready yet either.
      • janmo 23 minutes ago
        They had almost a full day to prepare for this...
      • b112 19 minutes ago
        If you mean docker official images, it's just the "community" maintaining it, eg "some dudes". By no means should you consider it a mechanism to get timely security updates, I've seen horrible lag on that before.

        Most of docker is like this. Images provided by volunteers, and not related to the project. Using docker images you don't maintain yourself, and at least don't upgrade yourself, is not the best recipe for security.

        (It's pretty trivial to build your own)

        • andix 13 minutes ago
          I wasn't aware of that. So I guess it's generally better to just use plain debian images and just install the required packages with apt.
          • vbezhenar 1 minute ago
            There are different approaches and it all comes down to who you trust. I don't think there's universal answer. If you have money, find image provider who's serious about security and hopefully they'll provide patches images quickly. Otherwise using Debian packages is a good default I think.

            Honestly I don't even understand why so many docker images prefer to build software from sources, rather than just installing them from debian repositories.

        • dmtroyer 5 minutes ago
          welp, I guess I should have done my research into what "docker official images" actually means.
    • b112 23 minutes ago
      Debian has had the patch for days, as have other main distros, and tested and prepared the release. That's why it was instant.

      Unclear why Ubuntu is lagging.

  • Timshel 5 minutes ago
  • andix 40 minutes ago
    Does anyone know the ETA on the official php:* docker images? I think they only released patched 8.6 RC containers for now.
    • jhogervorst 38 minutes ago
      The PR with the update is here: https://github.com/docker-library/php/pull/1694

      Looks like we need to be patient:

      > Why is this not merged yet?

      > I'm not a maintainer and can not merge this. Please wait until a maintainer has come around to look into this.

      > This is merged, but I cannot find the image?

      > After this PR has been merged, more steps are to be taken, including an upstream merge on docker-library/official-images and subsequent image builds. For a full description of the timeline, please refer to docker-library/faq#an-images-source-changed-in-git-now-what.

      • dmtroyer 29 minutes ago
        one of the more entertaining PRs I've seen
    • rocky_raccoon 38 minutes ago
      How about the Ondrej PPA repos for Ubuntu?
      • nolok 1 minute ago
        They're updated for all versions
  • jorisw 10 minutes ago
    PPA packages on LaunchPad being built here: https://launchpad.net/~ondrej/+archive/ubuntu/php/+builds?bu...
  • TekMol 33 minutes ago
    Why is the description of "RCE via OOM corruption" mentioning all these settings like memory_limit, post_max_size, max_input_nesting_level etc under "Mitigation" but not blocking multipart requests? Isn't that a solution?

    The description of the vurnurability "Several multipart parsing problems" makes it sound like it is?

  • janmo 37 minutes ago
    apt-get update + apt-get upgrade fixes it on Debian, but not on Ubuntu for now
  • joecool1029 34 minutes ago
    Gentoo has it updated.
  • nairboon 36 minutes ago
    A bit too early for the announced coordinated release, no?
    • cholmon 34 minutes ago
      Their earlier comment said

      > We reserve the right to release earlier should details of either vulnerability become public, or should evidence of active exploitation appear in the wild.

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

      • nairboon 29 minutes ago
        Good point, at least now Debian has shipped the patched packages.
    • kps 27 minutes ago
      Two minutes before the announced 1400UTC? Or have I forgotten how to math?
  • gslepak 23 minutes ago
    If you're tired of having to upgrade Wordpress, point your agent at this tutorial:

    https://blog.okturtles.org/2024/10/convert-wordpress-to-stat...

    • donohoe 13 minutes ago
      …or just enable automatic updates.
  • pier25 24 minutes ago
    Apparently about 40% of PHP apps are still on PHP 7 and 5...
    • abanana 12 minutes ago
      There are rare occasions when circumstances are more important than preserving an "EOL" designation. This appears to be one of those times where "official" centralized patches really should be made available for at least PHP5.6 and PHP7.4, and perhaps even 5.5 and all of 7.x. They're not covering themselves in glory by refusing.
      • jacquesm 3 minutes ago
        That's going to give a lot of people a moment of reflection about whether or not they want to continue using PHP.
    • kps 21 minutes ago
      I see Debian has packages.

      5.6.40-104+0~20261021.134+debian12~1.gbp7401dd

      7.4.33-31+0~20261021.121+debian12~1.gbpe9c428

  • teekert 9 minutes ago
    Doing a...

        docker pull wordpress:fpm && docker image inspect wordpress:fpm --format '{{.Created}}' && docker run --rm wordpress:fpm php --version
    
    ... every now and then until that 8.3.35 turns into 8.3.36.

    So far, no dice.

  • dataflow 34 minutes ago
    Is PHP 7 essentially going to be dead and unusable for everyone then? Or will it get fixes?
    • e12e 9 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.
    • guffins 25 minutes ago
      PHP 7 hasn’t received an update since 2022 when it went EOL.

      EDIT: looks like there are backports though

    • Operyl 27 minutes ago
      There are backports already.
    • kps 27 minutes ago
      Debian has a new build of 7.4 at least.
  • ramesh31 32 minutes ago
    PHP runs literally half the web. Half the web will not apply this patch in any reasonable amount of time (a huge portion will never). This is going to be absolutely catastrophic.
    • xydone 11 minutes ago
      The union of hosters which will not update to this patch, and users who have not updated to the past 283762 CVE is literally the same circle. I think that maybe a couple new not infected machines will get infected with a cryptominer - the rest will just get one new miner fighting for resources
      • jacquesm 1 minute ago
        > the rest will just get one new miner fighting for resources

        Hehe. That's funny.

        I can imagine a truce, either on machines ('ok, you take that one') or on cores ('16/8, deal?')

    • groceryheist 13 minutes ago
      What should be done? Can beneficent governments race to hack and patch servers?
    • xyst 27 minutes ago
      So if I wanted to build a botnet, then it would be very easy ;).

      Infiltrate vulnerable PHP sites. Install backdoor(s). Secure root access. Patch PHP to lock out script kiddies. Let it sit dormant until you need to launch attack

      • ramesh31 20 minutes ago
        Indeed this is undoubtedly happening as we speak to untold millions of forgotten sites.
        • Maxion 16 minutes ago
          So many scanners scan for various wordpress sites, if they save their results then they can more-or-less immediately build huge botnets.
  • baggy_trough 38 minutes ago
    They bundled the fixes with a regular bugfix release, looks like.
  • fsflover 39 minutes ago
    Earlier submission with more comments: https://news.ycombinator.com/item?id=50180873
  • calvinmorrison 28 minutes ago
    debian package WHEN
  • EGreg 27 minutes ago
    [flagged]
    • Shank 20 minutes ago
      I really do not think anyone should trust a vibe coded repo that launched 1 minute ago as a viable defense for any service.
      • bombcar 13 minutes ago
        Yes, you should vibe-code your own instead.

        (Not even joking, if you're going to go hog go whole-hog.)

      • EGreg 15 minutes ago
        You're right, you should just leave your PHP totally unprotected.

        I would recommend running this binary as a user that has no access to any files, it can just proxy traffic through a port. I will put that in the README.

        • Shank 14 minutes ago
          You should follow the NSA's advice or the Prime Minister of Japan's advice and take the service offline: https://x.com/NSACyber/status/2112903220209098897
          • EGreg 4 minutes ago
            Yes. Take your PHP service offline for the next year, until you can find a way to migrate it off your host and rebuild the PHP yourself on your environment. That'll help.
  • small_model 15 minutes ago
    Does anyone use PHP anymore? I assumed it was abandonware
    • CookieCrisp 10 minutes ago
      No, the entire world abandoned it when you realized it wasn't the perfect language. The rest of us are just role playing today basically. It's a bit of a lark, kind of like civil war reenactment.
    • jorisw 7 minutes ago
      Are you fucking serious?

      Ever heard of WordPress?