Repository navigation
Pin the base image to PHP 8.5.12 - #644
Merged
Merged
Conversation
PHP 8.5.12 fixes two critical unauthenticated remote code execution bugs (CVE-2026-109618, CVE-2026-109619) that affect PHP-FPM, which this image runs. PHP_VERSION was the minor only, so the image ran whatever patch the floating php:8.5-fpm tag pointed at the day CI last ran, and a PHP security release only reached it when an unrelated change triggered a rebuild. It is now the exact release: a PHP update is a deliberate bump that rebuilds the image by itself, and downstream images that compile their own extensions have a patch version to match.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
On 2026-10-21 PHP released 8.5.12 as an emergency security release. It fixes two critical bugs, CVSS v4.0 9.2 each, that allow unauthenticated remote code execution, and exploitation in the wild has been reported:
PHP-FPM, which this image runs, is an affected SAPI. The last published image (
sha-02919b7d…, built 2026-10-13) runs PHP 8.5.11.PHP_VERSIONwas the minor only (8.5), so the image ran whatever patch the floatingphp:8.5-fpmtag pointed at the day CI last ran. A PHP security release only reached the image when an unrelated change happened to trigger a rebuild, and any rebuild could change the PHP patch without the diff showing it.Change
ARG PHP_VERSION=8.5.12: the exact release. Every stage that builds fromphp:${PHP_VERSION}-fpm(qdb-builder, php-builder) now uses 8.5.12, and the runtime takes its/usr/localfrom there.undefined symbolon first use.The qdb target cache id is keyed by
PHP_VERSION, so it now changes per patch release and this build starts with a cold Rust target dir.php:8.5.12-fpmis still Debian trixie, soDEBIAN_SUITEis unchanged; the build asserts it.Testing
php -vandphp-fpm -vin the image report 8.5.12, the Debian suite assertion and the shared-library check pass, and every extension loads withLD_BIND_NOW=1.qdb/tests/run-tests.sh(fallback + daemon) andqdb/tests/run-quanta-tests.sh(noext + fallback + daemon) both pass against the local image.php:8.5.12-fpmbuilds on this base, loads all three withLD_BIND_NOW=1, and its php-fpm serves requests with excimer enabled.