Skip to content

Move FrankenPHP to 1.13.2 and drop the temporary PHP rebuild - #10

Merged
michaelaguiar merged 1 commit into
mainfrom
frankenphp-1.13.2
Oct 21, 2026
Merged

michaelaguiar merged 1 commit into
mainfrom
frankenphp-1.13.2

Conversation

@michaelaguiar

Copy link
Copy Markdown
Member

Summary

FrankenPHP 1.13.2 is a security release. Its Docker images are built on PHP 8.2.35, 8.3.36, 8.4.27 and 8.5.12, the versions that fix CVE-2026-109618/109619. Our temporary PHP rebuild from #7 is no longer needed, so this PR removes it.

In php/8.{2,3,4,5}/frankenphp/Dockerfile:

  • FRANKENPHP_VERSION goes from 1.13.1 to 1.13.2.
  • The php-patched stage, the PHP_PATCH_* ARGs and the COPY/ENV block that put the rebuilt PHP over the upstream one are removed. The stage would now fail the build anyway, because its guard refuses to build when the base already has the patched version.
  • The build still fails if frankenphp php-cli or php reports a version other than $PHP_VERSION. Only that check's comment changed.

Each file is now the same as before #7, apart from the version and that check. Builds also get much faster, since PHP is no longer compiled in CI.

1.13.2 also fixes four FrankenPHP advisories:

  • A client could queue requests, disconnect and keep the PHP thread pool busy (GHSA-fq24-r53r-xcx3).
  • In worker mode, error_get_last() and libxml_get_errors() leaked between requests (GHSA-4gfw-9v29-gp9h).
  • Self-referencing arrays crashed the process when converted to Go (GHSA-ccgp-ch9h-533f).
  • Embedded apps were extracted to a predictable temp directory (GHSA-6q3j-62j9-f9hh). We don't use embedded apps.

Test plan

  • I ran the upstream dunglas/frankenphp:1.13.2-php8.{2,3,4,5}-alpine images. php, frankenphp php-cli and frankenphp version all report the patched PHP. The image metadata shows the patched version on every architecture.
  • All four base images build locally (amd64). In each container:
    • the healthcheck reports healthy and it runs as uid 1000;
    • all 6 bundled extensions load;
    • a request returns the patched version with SAPI frankenphp.
  • After merge: CI rebuilds all 16 tags, and I'll check each has the patched PHP, FrankenPHP 1.13.2 and exactly amd64 + arm64.

FrankenPHP 1.13.2's images ship PHP 8.2.35, 8.3.36, 8.4.27 and 8.5.12,
which fix CVE-2026-109618/109619, so the php-patched stage added in #7 is
no longer needed (it would now fail the build by design). 1.13.2 also
fixes four FrankenPHP advisories, including a request-queue exhaustion
by disconnecting clients and worker-mode error state leaking between
requests.

The check that frankenphp php-cli and php report $PHP_VERSION stays.
@michaelaguiar

Copy link
Copy Markdown
Member Author

Review round 1 (single round)

I had a reviewer with fresh context check this PR with code-review at high effort. It found no P1 or P2 issues.

Confirmed holds

  • Nothing in the repo still mentions PHP_PATCH, php-patched, php-install, the PHP_URL/PHP_ASC_URL/PHP_SHA256 overrides or 1.13.1. That covers the Dockerfiles, the dev and wordpress Dockerfiles, docker-configure, the README and the workflow.
  • Each Dockerfile matches its pre-Patch PHP for CVE-2026-109618/109619 and bump FrankenPHP to 1.13.1 #7 version except for FRANKENPHP_VERSION and the version-check block, so the extensions, Caddyfile rewrites, user, setcap and healthcheck are unchanged.
  • The upstream 1.13.2-php8.x-alpine images ship 8.2.35/8.3.36/8.4.27/8.5.12 on every platform.
  • CI needs no change, and all 16 tags rebuild.
  • Nothing here uses hot_reload. docker-configure writes opcache.revalidate_freq to an ini file, which still overrides 1.13.2's new hot-reload default.
  • The reviewer built 8.2 locally and confirmed it works.

Findings

  • P3, no minimum-version check for the CVE (declined). The remaining check only confirms that the binaries match the base image's PHP_VERSION; it doesn't require a fixed version. I'm declining it:
    • FRANKENPHP_VERSION is set only in these Dockerfiles, and CI never overrides it, so a downgrade would have to be a visible edit in a reviewed PR.
    • A hard-coded floor per Dockerfile would need updating on every PHP release, and a stale floor gives a false sense of safety.
    • After merge, I check the published PHP version on every tag.

@michaelaguiar
michaelaguiar marked this pull request as ready for review October 21, 2026 20:47
@michaelaguiar
michaelaguiar merged commit 540e66b into main Oct 21, 2026
2 checks passed
@michaelaguiar
michaelaguiar deleted the frankenphp-1.13.2 branch October 21, 2026 20:53
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