php icon indicating copy to clipboard operation
php copied to clipboard

CVE-2026-109618 and CVE-2026-109619

Open Kenneth-Sills opened this issue 1 month ago • 43 comments

Critical exploits (RCE) have been announced for all current PHP versions:

I know these images are rebuilt nightly, but it may be worth rebuilding as soon as possible after the ~14:00 UTC patch time, if possible.

Kenneth-Sills avatar Oct 21 '26 09:10 Kenneth-Sills

@shinsenter Can you make this possible?

Thijmen avatar Oct 21 '26 11:10 Thijmen

This might work....

# TEMP: patched PHP until shinsenter rebuilds (issue #434). Remove afterwards.
FROM php:8.2.35-fpm-trixie AS php_patched   # use the real patch version once released

FROM --platform=$BUILDPLATFORM shinsenter/php:${PHP_VERSION}-${PHP_VARIATION} AS base
COPY --from=php_patched /usr/local/bin/php /usr/local/bin/php-config /usr/local/bin/phpize /usr/local/bin/
COPY --from=php_patched /usr/local/sbin/php-fpm /usr/local/sbin/
COPY --from=php_patched /usr/local/include/php /usr/local/include/php
COPY --from=php_patched /usr/local/lib/php/extensions /usr/local/lib/php/extensions
COPY --from=php_patched /usr/src/php.tar.xz /usr/src/
# Fail the build if PHP isn't patched
RUN php -r 'exit(version_compare(PHP_VERSION, "8.2.35", "<") ? 1 : 0);'

Something in the likes.

Thijmen avatar Oct 21 '26 12:10 Thijmen

Sharing a stopgap in case it helps anyone waiting for the rebuild.

Until a patched image is out, we disabled session.upload_progress on our deployments. The image already maps PHP_* environment variables to ini settings, so no rebuild is needed:

docker service update --env-add PHP_SESSION_UPLOAD_PROGRESS_ENABLED=0 <service>

Verified inside the running container afterwards:

$ php -r 'var_dump(ini_get("session.upload_progress.enabled"));'
string(1) "0"

For Compose / stack files, the same thing so a redeploy does not silently drop it:

environment:
  PHP_SESSION_UPLOAD_PROGRESS_ENABLED: "0"

Check first that your app does not rely on upload progress tracking. Ours does not, so there was no functional impact. We will still move to the patched image as soon as it is published.

jozefrebjak avatar Oct 21 '26 13:10 jozefrebjak

PHP 8.5.12 Released! How can we generate new images?

wsitl avatar Oct 21 '26 13:10 wsitl

I will rebuild all images

shinsenter avatar Oct 21 '26 13:10 shinsenter

If you want to monitor; https://github.com/shinsenter/php/actions/runs/39612084149

Thijmen avatar Oct 21 '26 14:10 Thijmen

Is this job stuck? https://github.com/shinsenter/php/actions/runs/39612084149/job/119263640295, or is it expected that it takes such a long time, @shinsenter ?

Thijmen avatar Oct 21 '26 14:10 Thijmen

Can we stop/restart it?

Thijmen avatar Oct 21 '26 14:10 Thijmen

https://www.githubstatus.com/ well....

Thijmen avatar Oct 21 '26 15:10 Thijmen

any update on this

jaybhatt-csc avatar Oct 21 '26 15:10 jaybhatt-csc

@jaybhatt-csc it's in the hands of Github performance at the moment...

Thijmen avatar Oct 21 '26 15:10 Thijmen

Things seem to be improving

Edit; looks like this will take some time regardless...

Thijmen avatar Oct 21 '26 15:10 Thijmen

Image On Docker Hub PHP inside Fixed?
8.5-fpm 17:12 UTC 8.5.12 Yes
8.3-fpm 16:51 UTC 8.3.35 No
8.4-fpm Still building – –
8.2-fpm Still building – –

The official php images with the fixed versions went up on Docker Hub between 16:35 and 16:48 UTC. shinsenter's 8.3 job was built from the base image before 8.3.36 reached it, so it needs shinsenter's next build.

The 8.4 and 8.2 jobs are building after the official images were published, so they will probably come out fixed.

stefanpejcic avatar Oct 21 '26 17:10 stefanpejcic

can we repeat ASAP the build for 8.3 ?

stefanpejcic avatar Oct 21 '26 17:10 stefanpejcic

please rebuild and upgrade php 8.3-fpm to 8.3.36 ASAP

Amin-Jafari-Manesh avatar Oct 21 '26 17:10 Amin-Jafari-Manesh

Seems like new build has been kicked off; https://github.com/shinsenter/php/actions/runs/39643681632

Thijmen avatar Oct 21 '26 17:10 Thijmen

Don't want to sound rude - I do appreciate the efforts here but for the love of PHP, can we keep the actions running as they are at the moment? 🙏

Thijmen avatar Oct 21 '26 17:10 Thijmen

@Thijmen I have merged a PR and re-triggered the new builds here. https://github.com/shinsenter/php/actions/runs/39645947429

shinsenter avatar Oct 21 '26 17:10 shinsenter

Hi, when will the php:8.5-fpm-apache image be updated to PHP 8.5.12? The current image is still using PHP 8.5.11, which is affected by the recently disclosed critical vulnerabilities. Thanks!

Alejooc avatar Oct 21 '26 19:10 Alejooc

@Alejooc wait until https://github.com/shinsenter/php/actions/runs/39645947429 is done.

Thijmen avatar Oct 21 '26 19:10 Thijmen