71 comments

[ 1.4 ms ] story [ 27.6 ms ] thread
Does anyone know the ETA on the official php:* docker images? I think they only released patched 8.6 RC containers for now.
apt-get update + apt-get upgrade fixes it on Debian, but not on Ubuntu for now
You can on ubuntu change to use ondrej/php and update now
I've been trying to update my (noble 24.04) server and an apt update is not showing the 8.5.12. It looks like the binary has been built but not updated in the index http://ppa.launchpad.net/ondrej/php/ubuntu/dists/noble/Relea... (last update 14 yet. https://launchpad.net/~ondrej/+archive/ubuntu/php/+build/338... suggests it finished at ~ 17:00 UTC

Though quite possibly I'm missing something ;)

---------------

edit: as I was typing the index was updated. So, as far as I can tell only just now (18:20 UTC) was it available for updating!

A bit too early for the announced coordinated release, no?
Is PHP 7 essentially going to be dead and unusable for everyone then? Or will it get fixes?
PHP 7 hasn’t received an update since 2022 when it went EOL.

EDIT: looks like there are backports though

> 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.
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?

No, it’s not a solution, it’s only one example proof of concept on how to exploit the vulnerability, there are more.
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.
What should be done? Can beneficent governments race to hack and patch servers?
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
FML. Can't get in to update our servers because of MFA and our director, who gets the codes, isn't in
Great example of performative enterprise security practice that contributes to degraded security posture, I suppose. Best of luck.
where do you work? >:)
Let's hope he didn't go skydiving. Seriously, you need to improve your processes.
With AI agents, I've been using sites/services that are bot friendly and don't require MFA.

Not everything needs hyper security. Heck, I've given AI access to spend money on websites and my only restriction is that the websites limit the daily spend(website side... Although I guess a rogue AI could have changed it... )

Use the exploit to gain access, then upgrade
For anyone who can't patch their PHP for some reason, here is a proxy that eliminates the threat for you -- it's open source, you can add it to your servers:

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

https://github.com/Qbix/proxy -- open source MIT licensed, I made github actions compile it as a Cosmopolitan binary so it can work across many operating systems (thanks Justine)

It should work with all top servers (nginx, apache, caddy etc)

I really do not think anyone should trust a vibe coded repo that launched 1 minute ago as a viable defense for any service.
Still no release for Ubuntu... They are already half an hour late. Debian got the patch almost immediately...
if it makes you feel any better, the official dockerhub images aren't ready yet either.
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.

Ubuntu probably started working on a rust based replacement instead: rphp.
Why do people still use Ubuntu?

They gave away CDs 20 years ago for free. Cooool.

Fedora is best for desktop.

Debian for servers that never need updates (but I even use Fedora for server now adays)

Desktops don't need updates either ;)

Debian on the desktop is the best computer decision I ever made

Why are they so slow. My Archlinux is already updated, but I still have to wait because of this.
Ubuntu is CLONE of Debian. So of course debian is first and better.

Ubuntu literally stole debian, added own wallpaper and started selling it as its own distro.

Apparently about 40% of PHP apps are still on PHP 7 and 5...
> 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.

I'm pretty sure this class of problem would exist in GC'd environments too unless they're configured to abort on OOM, in which case you'd still be dealing with denial-of-service.

In some environments OOM is a trappable exception, so it's possible that incorrectly authored code would trap the OOM and 'recover' with partially initialized data sitting on the heap. Hopefully it's a memory-safe language so that partially initialized data isn't RCE...

(comment deleted)
Does anyone use PHP anymore? I assumed it was abandonware
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.
"Four diffs and seven lines ago..."
Are you fucking serious?

Ever heard of WordPress?

Wordpress is a toxic property.
I see the downvotes and I don't really disagree with you.

This hurts because my resume has laravel and WordPress on it. I built sooo many sites/apps on it.

With AI agents, I just can't imagine using PHP anymore unless I'm patching legacy stuff.

I loved laravel too... WordPress, love hate.

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.
Docker have been carrying a broken python build for months.

they are wanting people to pay for the hardened version.

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.

Just pulled the new matomo that was published on dockerhub 26 minutes ago, thinking it has the patched PHP version:

  # docker pull matomo:latest
  latest: Pulling from library/matomo
  Digest: sha256:6e63589d31ec653f78e029084d21488640fdbbd9a42c96c872098f42c8678a02
  Status: Image is up to date for matomo:latest
  docker.io/library/matomo:latest
  
  # docker run --rm matomo:latest php --version
  PHP 8.4.26 (cli) (built: Oct 21 2026 00:31:19) (NTS)
  Copyright (c) The PHP Group
  Built by https://github.com/docker-library/php
  Zend Engine v4.4.26, Copyright (c) Zend Technologies
      with Zend OPcache v8.4.26, Copyright (c), by Zend Technologies
The PHP build is from today, which is doubly misleading. 8.4.27 is the patched release, not 8.4.26. I wonder how many people will pull this image thinking they're good to go online again.
The "official" PHP Docker images turned out to be a shit show tody. Seems like many maintainers fell for it and published updates that aren't really updates.

I'm currently waiting for a new docker image for another project, and their maintainer noticed the old PHP versions in the freshly built images and is still waiting or working on releasing a new container build.

Fully agree. Moved to FrankenPHP's static build (which was ready very quickly) to get away from it. Don't intend to ever use the "official" images again.
There is nothing official about these images.

"Let's use this packaging some rando on the Internet built" is a strategy that is exactly as good as it seems, but that's the Docker ecosystem for you.

Packers who actually understand the software put in good work to package that software in small and well maintained packages. Use them!

Yeah, took me long enough to learn that. I just trusted the "official" badge.
I had to build and deploy my own Nextcloud images earlier today. :( Not a big deal because docker, just obnoxious that this got released into the wild and was being actively exploited before patches were available everywhere.
Anyone know if Microsoft updates azure web-app built-in php runtimes fairly quickly in this sort of scenario?
where is patch for alpine?