Skip to content

Move FrankenPHP to 1.14.0 (PHP security releases) - #19

Merged
michaelaguiar merged 1 commit into
mainfrom
aliasbot/ali-2019-frankenphp-1.14.0
Nov 23, 2026
Merged

michaelaguiar merged 1 commit into
mainfrom
aliasbot/ali-2019-frankenphp-1.14.0

Conversation

@michaelaguiar

@michaelaguiar michaelaguiar commented Nov 22, 2026 •

Copy link
Copy Markdown
Member

What changes

FRANKENPHP_VERSION moves from 1.13.5 to 1.14.0 in php/8.{2,3,4,5}/frankenphp/Dockerfile. The dev, wordpress and wordpress-dev images inherit it. Nothing else changes: the cli images are built on the official php:*-cli-alpine images, not FrankenPHP.

PHP Before (1.13.5) After (1.14.0)
8.2 8.2.35 8.2.36
8.3 8.3.36 8.3.37
8.4 8.4.27 8.4.28
8.5 8.5.12 8.5.13

Alpine (3.24.4) and Caddy (v2.11.9) are unchanged.

What 1.14.0 fixes or changes for these images

PHP security releases (the main reason for this bump). Upstream last rebuilt the 1.13.5-php8.x-alpine tags on 2026-11-17, before the 11-19 PHP releases, so the weekly rebuild keeps them on the old PHP versions. 1.14.0, by way of 1.13.6, embeds the 2026-11-19 PHP security releases. The PHP project rates the worst of them critical:

  • Use-after-frees that can lead to remote code execution: magic method backtraces (CVE-2026-129474, 8.5 only), the timezone cache (CVE-2026-129496), last_fatal_error_backtrace after shutdown (CVE-2026-129182, 8.5 only), and session handling (CVE-2026-115560, CVE-2026-126714, and CVE-2026-129481 on 8.3 and up).
  • High severity: a PHAR OpenSSL signature bypass (CVE-2026-128090), HTTPS/FTPS URLs falling back to plaintext (CVE-2026-128064), and a DoS through folded HTTP response headers (CVE-2026-127960).
  • The PHP-FPM and PHP-CGI advisories in the same releases don't apply, because these images run PHP through the FrankenPHP SAPI.

FrankenPHP fixes from 1.13.6 that apply here:

  • PHP system calls such as stream_select() no longer fail intermittently with EINTR because of Go's SIGURG preemption signal.
  • If a PHP thread segfaults while FrankenPHP runs as PID 1, the process now exits with status 2 instead of hanging. These containers run FrankenPHP as PID 1 (checked), so after a crash the container now exits, where a restart policy can bring it back, instead of hanging.
  • A crash when the worker restart endpoint is called during a config reload is fixed. It only affects worker mode, which these images don't enable.

No FrankenPHP security advisories were published after 1.13.5.

Breaking change (doesn't apply): like the official PHP 8.6 images, FrankenPHP's 8.6 images no longer include mbstring or PECL. These images stay on 8.2–8.5, and mbstring is still loaded in the embedded PHP (checked on 8.2 and 8.5).

New feature: php_server's file_server subdirective now takes a block of file_server options, such as precompressed. file_server off still works, and docker-configure only uses file_server inside its own handle blocks. The upstream /etc/caddy/Caddyfile is byte-identical to 1.13.5's, so the Dockerfile's Caddyfile rewrites and their build checks didn't need any changes.

Checked

  • All four dunglas/frankenphp:1.14.0-php8.{2,3,4,5}-alpine tags exist on Docker Hub, for amd64 and arm64.
  • Built all 16 frankenphp images locally for amd64 (base, dev, wordpress and wordpress-dev for 8.2–8.5). Each dependent image was built from the new local parent through --build-context, the same way CI does it. Each image then passed .github/scripts/smoke-test.sh with its variant and PHP version: healthy, serving PHP through the frankenphp SAPI, expected extensions, non-root, /storage/ PHP refused, snippets rendered, composer runnable.
  • The Dockerfile's frankenphp php-cli version check passed on every build.
  • Not tested: the arm64 images, which only CI builds (it doesn't boot them). The cli images weren't rebuilt because this change doesn't touch them.

The pinned 1.13.5 images were last rebuilt upstream on 2026-11-05, so
they still embed PHP 8.2.35, 8.3.36, 8.4.27 and 8.5.12, and our weekly
rebuild can't move them. 1.14.0 (by way of 1.13.6) embeds the
2026-11-19 PHP security releases, 8.2.36, 8.3.37, 8.4.28 and 8.5.13,
which the PHP project rates up to critical: several use-after-frees
that can lead to remote code execution (session handling, the timezone
cache, magic method backtraces) and a PHAR signature bypass. The
PHP-FPM and PHP-CGI advisories in the same release don't apply to the
FrankenPHP SAPI.

The 1.13.6 fixes that apply to these images: PHP system calls such as
stream_select() no longer fail intermittently with EINTR from Go's
preemption signal, and a PHP thread that segfaults while FrankenPHP is
PID 1 (as in these containers) now exits with status 2 instead of
hanging. There are no new FrankenPHP security advisories since 1.13.5,
and Caddy stays at 2.11.9.

1.14.0's breaking change is that PHP 8.6 images drop mbstring and PECL.
It doesn't apply: these images stay on 8.2-8.5, whose upstream images
still ship mbstring (checked). php_server's file_server subdirective
now takes a block of options; "file_server off" still works, and
docker-configure doesn't use it. The upstream Caddyfile is
byte-identical to 1.13.5's, so the Caddyfile rewrites and their build
checks are unchanged, as are the Alpine base (3.24.4) and the
frankenphp binary path.

Bumps FRANKENPHP_VERSION in the four base Dockerfiles; the dev and
wordpress images inherit it. The cli images don't use FrankenPHP and
are unaffected. All 16 frankenphp images were built and passed
smoke-test.sh locally (amd64).
@michaelaguiar

Copy link
Copy Markdown
Member Author

Review round 1 (fresh-context review, with the code-review skill)

The diff (the version line in four Dockerfiles) has no defects. The reviewer checked the PR's claims against primary sources:

  • PHP versions: the 1.13.6 notes, php.net and the image's php -v agree.
  • CVEs and severities: the php-src advisories match the PR's list and severities.
  • Unchanged parts: both images report Caddy v2.11.9 and Alpine 3.24.4, and the Caddyfile is byte-identical between them.
  • Breaking change: the release's only one is for PHP 8.6.
  • Tags: the 1.14.0 tags exist for amd64 and arm64.

Findings:

  • Fixed in the description: the 1.13.5 tags were last rebuilt on 2026-11-17, not 2026-11-05. That is still before the 11-19 PHP releases, so the reason for the bump holds.
  • Fixed in the description: some of the listed CVEs don't apply to every PHP version. CVE-2026-129474 and CVE-2026-129182 affect 8.5 only, and CVE-2026-129481 affects 8.3 and up. The list now says so.
  • No change: the medium-severity CVEs aren't listed, because the description covers only the worst ones.
  • No change, not part of this PR: build-and-push.yml:218 builds the cache scope as 8.${{ matrix.version }}, which gives 8.8.2-…. It's cosmetic and breaks nothing.

No code changes this round.

@michaelaguiar
michaelaguiar marked this pull request as ready for review November 22, 2026 23:20
@michaelaguiar
michaelaguiar merged commit 553ed48 into main Nov 23, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant