Skip to content

Releases

v5.2.2

Choose a tag to compare

@jaydrogers jaydrogers released this 24 Nov 13:07
Immutable release. Only release title and notes can be modified.

🔐 NGINX 1.30.8 and FrankenPHP 1.14.0

Note

NGINX 1.30.8 fixes a CPU usage vulnerability (CVE-2026-132779). It only affects servers with ssl_early_data turned on. The default fpm-nginx config leaves it off, so you're only affected if you added it yourself. Update either way.


NGINX 1.30.8 on fpm-nginx

Every fpm-nginx image moves from NGINX 1.30.7 to 1.30.8, on Debian and Alpine. With ssl_early_data on, a client could make NGINX use too much CPU. Nothing else changes.

FrankenPHP 1.14.0 on frankenphp

frankenphp images move from 1.13.5 to 1.14.0. This also brings in the fixes from 1.13.6:

  • PHP calls like stream_select() no longer fail now and then with EINTR.
  • Restarting workers with POST /frankenphp/workers/restart during a config reload no longer crashes FrankenPHP.
  • If a PHP thread segfaults, the container now exits with status 2 instead of hanging, so your orchestrator can restart it.

Weekly rebuilds work again

We install Apache from Sury's repository, which only keeps the newest build of each package. Sury rebuilt Apache 2.4.71 under a new version number and removed the build v5.2.1 pinned. Every fpm-apache build failed after that. We only publish when every image passes, which meant the weekly rebuild on November 24 published nothing for any variation. Your images kept running. They just missed that week's Debian and Alpine package updates, which this release includes.

We now pin Apache 2.4.71 itself instead of one Sury build of it. A rebuild on Sury's side no longer breaks ours. Your fpm-apache image still runs Apache 2.4.71, now from Sury's latest build.

⬆️ How to update

If you use Example Do this
A floating tag 8.5-fpm-nginx Pull and redeploy
A release tag 8.5-fpm-nginx-v5.2.1 Change it to 8.5-fpm-nginx-v5.2.2
A patch version tag 8.5.13-fpm-nginx Pull and redeploy

If you build your own image FROM serversideup/php, rebuild with --pull so Docker doesn't reuse the old base image:

docker compose build --pull

v5.2.1

Choose a tag to compare

@jaydrogers jaydrogers released this 20 Nov 17:49
Immutable release. Only release title and notes can be modified.
ec58b57

🔐 Security update: open redirect in fpm-nginx and frankenphp

Important

Pull and redeploy if you use fpm-nginx or frankenphp. A link like https://your-site.com/index.php/%5Cevil.example sent visitors to another site (GHSA-3634-2fr7-xpw4). Thanks to @anatoly-pashin-axon21 for reporting it.

Images take about an hour to publish after this release. When your image's -v5.2.1 tag pulls (like 8.5-fpm-nginx-v5.2.1), the fix is live.

Note

cli, fpm, and fpm-apache are not affected. This release also brings back mbstring on PHP 8.6 and adds static asset caching to fpm-apache.


The /index.php/... redirect stays on your site

v5.0.0 added a redirect from /index.php/<path> to /<path>, so search engines index one copy of each page (#646). The path went into the Location header without a check. Browsers read /\evil.example, or a slash and a tab followed by /evil.example, as //evil.example, which is another host. Attackers could use your domain in phishing links, or to get past OAuth checks that allow any path on your site.

The redirect now skips paths that start with /, \, or whitespace, or that contain a control character. Those requests reach PHP the same way they did before v5.0.0. Normal redirects like /index.php/shop to /shop work as before.

Check your site with:

curl -sI 'https://your-site.com/index.php/%5Cexample.com' | grep -i '^location'

Location: /\example.com means you're affected until you update.

Two other fixes to the same redirect

  • Only GET and HEAD requests redirect now, on every web server variation. A POST to /index.php/webhook used to get a 301, and most clients retried it as a GET without the body. Webhooks registered with the /index.php/ prefix work again.
  • On frankenphp, the redirect kept the path but dropped the query string. /index.php/shop?page=2 now goes to /shop?page=2, like it does on fpm-nginx and fpm-apache.

🐘 mbstring is back on PHP 8.6 (#754)

docker-library/php stopped compiling mbstring in 8.6 (docker-library/php#1654), so the 8.6 images in v5.2.0 shipped without it. Laravel, PHPUnit, and Pint need it. It's now a default extension in every variation. On 8.5 and earlier nothing changes, because PHP already has it built in.

⚡ fpm-apache caches static assets (#754)

fpm-apache was the only variation that sent no cache headers for static files. It now matches fpm-nginx:

  • Cache-Control: public, max-age=31536000, immutable for CSS, JS, images, media, and fonts
  • Access-Control-Allow-Origin: * for fonts

The headers are only added when the response doesn't already have one, so your .htaccess rules still win. mod_expires is now enabled, so <IfModule mod_expires.c> blocks in .htaccess, like the ones WordPress caching plugins add, take effect.

Gzipped files also revalidate properly now (#735). Apache's -gzip ETag never matched, so browsers downloaded those files in full every time. They now get a 304.

If you edit CSS on a volume mount without changing its file name or ?ver=, you'll need a hard refresh to see it. fpm-nginx already works this way.

Thanks to @twiesing for contributing this (#734).

⬆️ How to update

If you use Example Do this
A floating tag 8.5-fpm-nginx Pull and redeploy
A release tag 8.5-fpm-nginx-v5.2.0 Change it to 8.5-fpm-nginx-v5.2.1
A patch version tag 8.5.13-fpm-nginx Pull and redeploy

If you build your own image FROM serversideup/php, rebuild with --pull so Docker doesn't reuse the old base image:

docker compose build --pull

v4 does not have this redirect, so it isn't affected.

If you're using these images professionally

If these images help your business, sponsoring us on GitHub is the best way to say thanks. 🙏

Full Changelog: v5.2.0...v5.2.1

v5.2.0

Choose a tag to compare

@jaydrogers jaydrogers released this 19 Nov 17:07
Immutable release. Only release title and notes can be modified.
8691ead

Important

Two releases today, and both have the critical PHP security fixes. v5.1.5 shipped this morning with only the security patches, so nobody had to wait on PHP 8.6. v5.2.0 has the same patches and adds PHP 8.6.0. If you're already on v5.1.5, you're patched.

Release What's in it
v5.1.5 PHP 8.5.13, 8.4.28, 8.3.37, and 8.2.36 (security fixes)
v5.2.0 Everything in v5.1.5, plus PHP 8.6.0

🐘 PHP 8.6 is here (#748)

Generated Image November 19, 2026 - 10_20AM

PHP 8.6.0 (and GTA 6) came out today. Every variation ships it on all four OSes (Alpine 3.23, Alpine 3.24, Bookworm, and Trixie):

serversideup/php:8.6-fpm-nginx

latest, 8, and the bare variation tags like fpm-nginx now point to 8.6.0, the same as the official php:latest image. If you use those tags and aren't ready for 8.6, pin to 8.5 (like 8.5-fpm-nginx) before you pull.

A few things to know:

  • The 8.6-rc tags stop updating. Move to 8.6.
  • phpredis 6.3.0 doesn't compile on PHP 8.6 yet, so 8.6 images build phpredis from its development branch, and it reports 6.3.0RC1. We'll switch to a stable release once phpredis ships one with 8.6 support.

🚨 Today's PHP security fixes

php.net fixed 17 vulnerabilities today. Seven of them are rated critical. These are in php/php-src upstream, not in this repo. Both v5.1.5 and v5.2.0 compile every image from php.net's patched source.

Severity CVE Area Issue PHP
Critical (9.2) CVE-2026-129182 Core Use-after-free via repopulation of last_fatal_error_backtrace global after shutdown 8.5
Critical (9.2) CVE-2026-129474 Core Use-after-free in magic method backtraces can lead to remote code execution 8.5
Critical (9.2) CVE-2026-129496 Date Timezone cache use-after-free can lead to remote code execution 8.2+
Critical (9.2) CVE-2026-129289 FPM PHP-FPM request smuggling through an unread HTTP request body 8.2+
Critical (9.2) CVE-2026-115560 Session Session serializer mismatch can lead to remote code execution 8.2+
Critical (9.2) CVE-2026-126714 Session Partially overwritten session files can lead to remote code execution 8.2+
Critical (9.2) CVE-2026-129481 Session Use-after-free after interrupted session shutdown 8.3+
High (8.8) CVE-2026-129291 FPM PHP-FPM epoll use-after-free can lead to local privilege escalation 8.2+
High (8.7) CVE-2026-127960 Standard Denial of service through folded HTTP response headers 8.2+
High (8.2) CVE-2026-128064 Standard Mixed-case HTTPS and FTPS URLs can expose data in plaintext 8.2+
High (7.7) CVE-2026-128090 Phar PHAR OpenSSL signature bypass via algorithm downgrade 8.2+
Medium (6.9) CVE-2026-129538 CGI PHP-CGI out-of-bounds read and write during PATH_INFO correction 8.2+
Medium (6.3) CVE-2026-129501 DOM Double free during DOM XML serialization 8.4+
Medium (6.3) CVE-2026-129506 SOAP SOAP use-after-free when processing DTD entity references 8.2+
Medium (6.3) CVE-2026-15353 SOAP SOAP information disclosure through malformed array dimensions 8.2+
Medium (6.3) CVE-2026-129438 URI Incorrect RFC 3986 URI serialization for oversized input 8.5
Medium (5.3) CVE-2026-129292 FPM PHP-FPM status endpoint XSS via unescaped user and script fields 8.2+
Not rated CVE-2026-48841 URI Bundled uriparser upgraded to 1.0.3 8.5

The full list is in php.net's changelog. To see which of these our defaults already block, check the v5.1.5 release notes or #749.

PHP Version in this release
8.6 8.6.0 (new)
8.5 8.5.13
8.4 8.4.28
8.3 8.3.37
8.2 8.2.36
8.1 8.1.34 (not patched, end of life)

PHP 8.1 is end of life. php.net didn't release a fix for it. If you're on 8.1, move to 8.2 or newer.

⬆️ How to update

If you use Example Do this
A floating tag 8.5-fpm-nginx Pull and redeploy
A release tag 8.5-fpm-nginx-v5.1.4 Change it to 8.5-fpm-nginx-v5.2.0 (or v5.1.5)
A patch version tag 8.5.12-fpm-nginx Change it to 8.5.13-fpm-nginx
latest, 8, or fpm-nginx fpm-nginx You'll get PHP 8.6. Pin to 8.5-fpm-nginx if you're not ready.

If you build your own image FROM serversideup/php, rebuild with --pull so Docker doesn't reuse the old base image:

docker compose build --pull

🐛 Bug fixes

  • Builds could miss a PHP release that php.net had just published, because php.net's CDN kept serving release data it cached before the release. Our builds now always read the current data, so patches ship as soon as php.net lists them.

If you're using these images professionally

If these images help your business, sponsoring us on GitHub is the best way to say thanks. 🙏

Full Changelog: v5.1.5...v5.2.0

v5.1.5

Choose a tag to compare

@jaydrogers jaydrogers released this 19 Nov 14:10
Immutable release. Only release title and notes can be modified.

🚨 Critical PHP security update

Important

Patched images are live. Update now. This release brings PHP 8.5.13, 8.4.28, 8.3.37, and 8.2.36, which fix 17 vulnerabilities, 7 of them critical. Every image was built and tested before anything was published. See #749 for how today went.

Note

These vulnerabilities are in php/php-src upstream, not in this repo. This release compiles every image from php.net's patched source.


Every fix in this release

Severity CVE Area Issue PHP
Critical (9.2) CVE-2026-129182 Core Use-after-free via repopulation of last_fatal_error_backtrace global after shutdown 8.5
Critical (9.2) CVE-2026-129474 Core Use-after-free in magic method backtraces can lead to remote code execution 8.5
Critical (9.2) CVE-2026-129496 Date Timezone cache use-after-free can lead to remote code execution 8.2+
Critical (9.2) CVE-2026-129289 FPM PHP-FPM request smuggling through an unread HTTP request body 8.2+
Critical (9.2) CVE-2026-115560 Session Session serializer mismatch can lead to remote code execution 8.2+
Critical (9.2) CVE-2026-126714 Session Partially overwritten session files can lead to remote code execution 8.2+
Critical (9.2) CVE-2026-129481 Session Use-after-free after interrupted session shutdown 8.3+
High (8.8) CVE-2026-129291 FPM PHP-FPM epoll use-after-free can lead to local privilege escalation 8.2+
High (8.7) CVE-2026-127960 Standard Denial of service through folded HTTP response headers 8.2+
High (8.2) CVE-2026-128064 Standard Mixed-case HTTPS and FTPS URLs can expose data in plaintext 8.2+
High (7.7) CVE-2026-128090 Phar PHAR OpenSSL signature bypass via algorithm downgrade 8.2+
Medium (6.9) CVE-2026-129538 CGI PHP-CGI out-of-bounds read and write during PATH_INFO correction 8.2+
Medium (6.3) CVE-2026-129501 DOM Double free during DOM XML serialization 8.4+
Medium (6.3) CVE-2026-129506 SOAP SOAP use-after-free when processing DTD entity references 8.2+
Medium (6.3) CVE-2026-15353 SOAP SOAP information disclosure through malformed array dimensions 8.2+
Medium (6.3) CVE-2026-129438 URI Incorrect RFC 3986 URI serialization for oversized input 8.5
Medium (5.3) CVE-2026-129292 FPM PHP-FPM status endpoint XSS via unescaped user and script fields 8.2+
Not rated CVE-2026-48841 URI Bundled uriparser upgraded to 1.0.3 8.5

The full list is in php.net's changelog.

How our defaults affect the critical ones

php.net says each critical issue needs a non-default configuration or an uncommon setup. Our defaults already block several of them. Update anyway.

Issue PHP Our images by default
PHP-FPM request smuggling through an unread request body (CVE-2026-129289) 8.2+ Needs FastCGI connection reuse, which our NGINX and Apache configs don't turn on. Check yours if you run fpm behind your own proxy.
Timezone cache use-after-free (CVE-2026-129496) 8.2+ Needs a warning at startup, like an invalid PHP_DATE_TIMEZONE
Partially overwritten session files (CVE-2026-126714) 8.2+ Affects the default files session handler. Easier to trigger on threaded builds like frankenphp.
Session serializer mismatch (CVE-2026-115560) 8.2+ Blocked: PHP_SESSION_UPLOAD_PROGRESS_ENABLED has been 0 since October
Use-after-free after interrupted session shutdown (CVE-2026-129481) 8.3+ Depends on your app
Use-after-free in magic method backtraces (CVE-2026-129474) 8.5 Blocked: we set zend.exception_ignore_args = On
Stale fatal error backtrace after shutdown (CVE-2026-129182) 8.5 Needs per-directory INI overrides

Also worth knowing

  • PHP-FPM epoll use-after-free (CVE-2026-129291, high): code running in a worker can take over the FPM master. Our images run the master as www-data, not root, so this only reaches root if you run the container as root.
PHP Version in this release Fixes
8.5 8.5.13 17
8.4 8.4.28 14
8.3 8.3.37 13
8.2 8.2.36 12
8.1 8.1.34 (not patched, end of life) 0

PHP 8.1 is end of life, so php.net didn't release a fix for it. If you're on 8.1, move to 8.2 or newer.

How to update

If you use Example Do this
A floating tag 8.5-fpm-nginx Pull and redeploy
A release tag 8.5-fpm-nginx-v5.1.4 Change it to 8.5-fpm-nginx-v5.1.5
A patch version tag 8.5.12-fpm-nginx Change it to 8.5.13-fpm-nginx

If you build your own image FROM serversideup/php, rebuild with --pull so Docker doesn't reuse the old base image:

docker compose build --pull

Then confirm you're on the patched version:

docker compose exec php php -v

🐘 PHP 8.6

PHP 8.6.0 is scheduled for today too. It's coming in a separate release (v5.2.0), so it doesn't hold up these security fixes.

🐛 Bug fixes

  • Floating tags like latest, 8, and fpm-nginx no longer stay on the previous patch when php.net lists a PHP minor we don't build yet (like 8.6.0 today)

If you're using these images professionally

If these images help your business, sponsoring us on GitHub is the best way to say thanks. 🙏

Full Changelog: v5.1.4...v5.1.5

v5.1.4

Choose a tag to compare

@jaydrogers jaydrogers released this 18 Nov 16:09
Immutable release. Only release title and notes can be modified.

🔐 Security update: NGINX 1.30.7

Important

Pull and redeploy if you use fpm-nginx with SSL_MODE=mixed or full. NGINX 1.30.7 fixes 9 vulnerabilities. Two are rated major and affect our HTTPS setup: memory corruption in HTTP/2 (CVE-2026-123007) and a request body bug over TLS 1.3 that can tie up a worker (CVE-2026-118899). Our HTTPS server block turns on HTTP/2 and allows TLS 1.3, so you're exposed when SSL is on.

Note

These issues are in NGINX upstream, not in this repo. cli, fpm, fpm-apache, and frankenphp are not affected.


NGINX 1.30.7

CVE Issue
CVE-2026-123007 Major. Memory corruption in HTTP/2 flow control. Affects 1.9.5 through 1.30.6.
CVE-2026-118899 Major. An infinite loop while reading a client request body over TLS 1.3. Affects 1.13.0 through 1.30.6.
CVE-2026-113425 Major. Use-after-free in the mail proxy module
CVE-2026-123633 Use-after-free in HTTP/2
CVE-2026-123634 Use-after-free while processing a response in the resolver
CVE-2026-121810 Use-after-free in HTTP/3
CVE-2026-120967 SNI bypass when using client certificate validation in the stream module
CVE-2026-125283 Minor. Buffer overflow when using alias with try_files
CVE-2026-123640 Minor. Insufficient validation in the stream ssl_preread module

The first two and the HTTP/2 use-after-free (CVE-2026-123633) apply to our default config when SSL_MODE is mixed or full. With the default SSL_MODE=off, NGINX serves plain HTTP/1.1 and none of these apply.

Our config doesn't use the mail proxy, stream module, resolver, HTTP/3, or alias. If you added any of those in your own NGINX config, update now.

Base OS Before Now
Alpine 3.22, 3.23, 3.24 1.30.6-r1 1.30.7-r1
Debian Bookworm 1.30.6-1~bookworm 1.30.7-1~bookworm
Debian Trixie 1.30.6-1~trixie 1.30.7-1~trixie

How to update

If you use Example Do this
A floating tag 8.5-fpm-nginx Pull and redeploy
A release tag 8.5-fpm-nginx-v5.1.3 Change it to 8.5-fpm-nginx-v5.1.4
A patch version tag 8.5.12-fpm-nginx Pull and redeploy

If you build your own image FROM one of these, rebuild it too.

Then confirm the version:

docker compose exec php nginx -v

What's Changed

Full Changelog: v5.1.3...v5.1.4

v5.1.3

Choose a tag to compare

@jaydrogers jaydrogers released this 17 Nov 14:22
Immutable release. Only release title and notes can be modified.
b7d0162

🔐 Security update: fpm-nginx could run uploaded .phar files

Important

Pull and redeploy if you use fpm-nginx and your app accepts uploads into its public folder. A request like /uploads/file.phar/x.php made PHP-FPM run the uploaded file.phar (GHSA-8wf6-vq49-m6w2). Thanks to @jeremiesourabie92-svg for reporting it.

Note

cli and frankenphp are not affected. fpm and fpm-apache weren't exposed through our configs, but they get the new PHP-FPM default below too.


NGINX checks that a PHP script exists

Our NGINX config sent any request ending in .php to PHP-FPM, even if that file didn't exist. PHP-FPM then walked back up the path until it found a real file. For /uploads/file.phar/x.php, that's file.phar, so it ran it.

You were only exposed if your app accepts .phar uploads into a public folder outside /storage. Our images already return 403 for any .php path under /storage, which covers Laravel's public uploads. Images and other files were safe, because PHP-FPM only runs .php and .phar files this way.

NGINX now returns a 404 for a PHP script that doesn't exist, before the request reaches PHP-FPM. Our v1 and v2 images had this check through Ubuntu's fastcgi-php.conf. It got left behind when we moved to NGINX from nginx.org in v3.

PHP-FPM only runs .php files

Every FPM variation now sets security.limit_extensions = .php. PHP-FPM's default also allows .phar.

If you run fpm behind your own NGINX, this protects you from the .phar case. Add try_files $uri =404; to your PHP location too, so a missing script never reaches PHP-FPM:

location ~ \.php$ {
    try_files $uri =404;
    fastcgi_pass php:9000;
    # ...
}

Two things that stop working

  • Running a .phar as a web script through PHP-FPM
  • URLs like /script.php/extra for any script except index.php now return 404. /index.php/extra still redirects to /extra, like before

How to update

If you use Example Do this
A floating tag 8.5-fpm-nginx Pull and redeploy
A release tag 8.5-fpm-nginx-v5.1.2 Change it to 8.5-fpm-nginx-v5.1.3
A patch version tag 8.5.12-fpm-nginx Pull and redeploy

If you build your own image FROM one of these, rebuild it too.

v4 will not get a fix. Upgrade to v5, or see the workaround in the advisory.

What's Changed

  • Security: Return 404 for missing PHP scripts in NGINX and limit PHP-FPM to .php by @jaydrogers

Full Changelog: v5.1.2...v5.1.3

v5.1.2

Choose a tag to compare

@jaydrogers jaydrogers released this 12 Nov 00:19
Immutable release. Only release title and notes can be modified.
8e0adba

🔐 Security update: Apache 2.4.71

Important

Pull and redeploy if you use fpm-apache. Apache 2.4.71 fixes a critical bug in mod_http2 that can lead to remote code execution (CVE-2026-119618). Our HTTPS virtual host turns on HTTP/2, so you're exposed if you run with SSL_MODE=mixed or full.

Note

This issue is in Apache httpd upstream, not in this repo. cli, fpm, fpm-nginx, and frankenphp are not affected.


🪶 Apache 2.4.71

CVE Issue
CVE-2026-119618 Critical. A race in mod_http2 can corrupt the heap and lead to remote code execution. Affects 2.4.55 through 2.4.70.

2.4.71 also fixes bugs in mod_md and mod_vhost_alias. Our images don't load either module.

Debian doesn't have a fix yet. Bookworm was even further behind. It was still on 2.4.68 and missing the 2.4.69 fixes from October. The ones that apply to our default setup are a mod_http2 use-after-free (CVE-2026-57941) and two low-severity issues in mod_rewrite and mod_ssl.

Base OS Before Now
Debian Bookworm 2.4.68-1~deb12u1 2.4.71-1+0~deb.sury.org.1+debian12
Debian Trixie 2.4.69-1~deb13u1 2.4.71-1+0~deb.sury.org.1+debian13

Apache now comes from Sury

NGINX already installs from nginx.org. Apache doesn't publish its own packages. We now install it from Ondřej Surý's repository at packages.sury.org, which rebuilds Debian's own apache2 package on every upstream release.

It's the same Debian package. Nothing changes for you. a2enmod, envvars, /etc/apache2, and Debian modules like libapache2-mod-security2 all work like before.

  • The build checks Sury's signing key fingerprint before it adds the repository
  • Only apache2, libapr1, and libaprutil1 come from Sury. OpenSSL, curl, and everything else still come from Debian
  • The Apache version is pinned per OS, and Renovate opens a PR when Sury ships a new build

How to update

If you use Example Do this
A floating tag 8.5-fpm-apache Pull and redeploy
A release tag 8.5-fpm-apache-v5.1.1 Change it to 8.5-fpm-apache-v5.1.2
A patch version tag 8.5.12-fpm-apache Pull and redeploy

If you build your own image FROM one of these, rebuild it too.

Then confirm the version:

docker compose exec php apache2 -v

🏗️ For contributors

  • PHP base builds now read the release managers' GPG keys from php.net's keyring instead of keyserver.ubuntu.com, which kept timing out in CI. The build still only trusts the fingerprints docker-library lists. See How images are built

What's Changed

  • Security: Install Apache 2.4.71 from Sury's repository, pinned per OS like NGINX by @jaydrogers in #747
  • Read PHP's GPG keys from php.net's keyring instead of a public keyserver by @jaydrogers in #747

Full Changelog: v5.1.1...v5.1.2

v5.1.1

Choose a tag to compare

@jaydrogers jaydrogers released this 05 Nov 16:05
Immutable release. Only release title and notes can be modified.

🔐 Security update: FrankenPHP 1.13.5

Important

Pull and redeploy if you use frankenphp. FrankenPHP 1.13.5 fixes 17 vulnerabilities. Several affect the default php_server setup our images use, including one that runs an uploaded non-PHP file as PHP. It also moves to Caddy 2.11.9, which has security fixes of its own.

Note

These issues are in php/frankenphp and caddyserver/caddy upstream, not in this repo. cli, fpm, fpm-nginx, and fpm-apache are not affected.


🐘 FrankenPHP v1.13.5

Advisory Issue
GHSA-j99q-3wr8-xj43 High. php_server could run a file as PHP even when its name didn't end in .php, such as /uploads/photos.php.php/avatar.jpg. Anyone who could upload a file under the document root could execute it.
GHSA-jvmv-5538-pqpg The trailing-slash redirect for directories could send visitors to another host
GHSA-2725-rh2w-9j9w Over HTTP/2, a host header sent next to :authority set $_SERVER['HTTP_HOST'] to a different host than the one Caddy routed
GHSA-j45x-h238-h4xx One slow request body per PHP thread could block every thread, even with request_body_timeout set
GHSA-5359-vg53-5464 A request with more parameters than max_input_vars, sent repeatedly, crashed the process
GHSA-q6vv-3p75-53wr exit() or die() with a negative status, such as die(-1), stopped FrankenPHP
GHSA-2x4j-r638-wxff Dot segments after a PHP script, such as /admin/tool.php/../../missing.php, could get past a Caddy path rule meant to deny it
GHSA-388m-835f-7723 A client's Authorization: Basic header, and four other variables, could replace values set with env
GHSA-g7pw-whv8-97j7 A php_server or php directive in a Caddy named route could run with another site's root, env values, and workers
GHSA-v7hf-4gqv-hf8p A php_server with a worker match rule could serve PHP source code
GHSA-8qcf-v46r-g2mc In worker mode, destructors from the previous request, including session objects, could send output and cookies to the next client
GHSA-j2f3-wxf2-8qgv Embedded apps: a config reload deleted the extracted app directory while it was still being served
GHSA-xh92-4p94-ch7x php_server served a Caddyfile stored in the document root
GHSA-hfxc-999w-mp67 FrankenPHP crashed when the OS refused to create a new PHP thread
GHSA-g9v4-rp77-rv76 Clients could probe whether files under the document root exist through PATH_INFO
GHSA-cp2q-fc46-38f5, GHSA-28vm-87fh-3px5 Custom builds with a Go extension that uses the experimental worker APIs only

Our images already returned 403 for any .php path under /storage, which covers Laravel's public uploads. Uploads anywhere else in your document root were exposed to the first one.

Our Caddyfile lives in /etc/frankenphp, not the document root. Embedded apps, named routes, and custom Go extensions need setups our images don't use by default.

It also upgrades Caddy to 2.11.9 and Mercure to 1.1.6. Request bodies over Caddy's request_body max_size now get a 413, missing scripts return 404 No input file specified. like PHP-FPM, and $_SERVER['SERVER_ADDR'] is now set.

Worker mode keeps a little more state between requests

If you run Laravel Octane or another worker, error_get_last(), strtok(), http_get_last_response_headers(), and libxml errors now carry over between requests, like the rest of your app's state. FrankenPHP still resets superglobals, the request body, headers, output, and the session. Call error_clear_last(), libxml_clear_errors(), or http_clear_last_response_headers() if your code expects a clean slate. See php/frankenphp#2790.

FrankenPHP images now match the official runtime image

  • Fonts, video, and other static files get the right Content-Type. The image had no /etc/mime.types, so Caddy fell back to Go's short built-in list and guessed the rest. CSS, JavaScript, and common images were fine, but a .woff2 font could go out as text/plain. We now install mailcap like the official FrankenPHP images.
  • GODEBUG defaults to cgocheck=0, like the official images, so Go skips its pointer checks on every call into PHP. If you set GODEBUG yourself, it replaces this default, so include cgocheck=0 in your value: GODEBUG=cgocheck=0,http2debug=1. See the environment variable reference.

How to update

If you use Example Do this
A floating tag 8.5-frankenphp Pull and redeploy
A release tag 8.5-frankenphp-v5.1.0 Change it to 8.5-frankenphp-v5.1.1
A patch version tag 8.5.12-frankenphp Pull and redeploy

If you build your own image FROM one of these, rebuild it too.

Then confirm the version:

docker compose exec php frankenphp version

What's Changed

  • Security: Update FrankenPHP to v1.13.5 by @jaydrogers
  • Install mailcap and set GODEBUG=cgocheck=0 in the frankenphp images to match the official FrankenPHP images by @jaydrogers

Full Changelog: v5.1.0...v5.1.1

v5.1.0

Choose a tag to compare

@jaydrogers jaydrogers released this 04 Nov 17:05
Immutable release. Only release title and notes can be modified.

🤩 What's new

PHP security releases land much faster (#739, #742)

During the last critical PHP release (#721), we waited hours for Docker Hub's php images, then PECL went down. We now compile PHP ourselves with the same Dockerfiles as the official images, so neither one can hold up a release. A new hourly check starts a build as soon as php.net lists a patch, on any day of the week.

From php.net to your image
Before php.net → wait ~4 hours for Docker Hub's php images → PECL → wait for our next release or Tuesday rebuild
After php.net → about an hour later, we compile PHP and publish

Every build also starts from current Debian and Alpine packages, so OS security fixes reach your image on the weekly rebuild (Tuesday 08:00 UTC). PHP 8.1 benefits most: its official images haven't been rebuilt since it reached end of life.

Verify that an image came from us (#742)

Every image is now signed with cosign and ships with an SBOM (every package inside it) and build provenance (how and where it was built). Check an image before you run it:

cosign verify serversideup/php:8.5-cli \
  --certificate-oidc-issuer https://token.actions.githubusercontent.com \
  --certificate-identity-regexp '^https://github\.com/serversideup/docker-php/\.github/workflows/service_publish-images\.yml@refs/(heads/main|tags/v.+)$'

Images published before 5.1 have provenance but no signature or SBOM. See Verifying images.

Every image is scanned for vulnerabilities (#742)

After every production build, Grype scans each published image. The results are on each run's summary page. You can see the known vulnerabilities in any image without running a scanner yourself. See Vulnerability scanning.

PHP 8.6 release candidates (#698, #739)

Test your app on PHP 8.6 before it ships. Every rebuild uses the newest release candidate on php.net, so a new RC arrives with the next weekly rebuild. These tags are for testing only.

serversideup/php:8.6-rc-fpm-nginx

New docs

The docs have been optimized from top to bottom. Every environment variable and helper command is now in a searchable reference, generated from the same data our CI checks against the code. Upgrading, Security, and Troubleshooting each have their own section. Every old URL redirects to its new page.

⬆️ Upgrading

Nothing to change. Every existing tag is still published and the images behave the same. Three things you may notice:

  • php -v now says Built by Server Side Up instead of Built by https://github.com/docker-library/php
  • install-php-extensions is upgraded from 2.12.0 to 2.12.6
  • If you run docker-php-serversideup-install-php-ext-installer without a version in your own Dockerfile, it now installs the latest release instead of 2.12.0. Pass a version to pin it.

🐛 Bug fixes

  • docker-php-serversideup-download printed every shell option to stdout before the file when you didn't give it an output file (#739)
  • FrankenPHP exited at start-up, logging no error, when CADDY_AUTO_HTTPS was disable_redirects, disable_certs, or ignore_loaded_certs and SSL_MODE was mixed or full
  • docker-php-serversideup-set-id failed the build with "UID already in use" when another user in the image already had the UID you passed, because it moved the wrong user. It now moves the other user or group to 99<id> and gives yours the ID you asked for

🏗️ For contributors

  • Every pinned version lives in scripts/conf/php-versions-base-config.yml, and Renovate replaces Dependabot to keep them current (#739)
  • scripts/dev.sh --build-php-base builds exactly what CI builds. See Build an image
  • Every GitHub Action is pinned to a commit SHA, so a moved tag can't change what runs in CI. A new zizmor lint checks the workflows on every PR, and an OpenSSF Scorecard badge tracks our supply chain practices (#742)
  • Image tests are split into one file per feature area in scripts/tests/image/, and every failure shows up in one run. New tests cover Laravel automations, startup scripts, SSL modes, trusted proxies, PHP-FPM pool variables, file permissions, and shutdown (#741)
  • Failed CI runs now actually retry once on their own (#739)
  • Building src/variations/*/Dockerfile directly now needs the dependency build args from scripts/conf/php-versions-base-config.yml, so use scripts/dev.sh

Full Changelog: v5.0.5...v5.1.0

v5.0.5

Choose a tag to compare

@jaydrogers jaydrogers released this 27 Oct 16:22
Immutable release. Only release title and notes can be modified.
af1462e

🔐 Security update: file permissions in the fpm and frankenphp images

Important

Pull and redeploy if you use fpm or frankenphp. Releases v4.3.1 through v5.0.4 shipped with bad default permissions. This release patches those permissions. See GHSA-xx74-jh2r-mgm3 for more details.

Note

cli, fpm-nginx, and fpm-apache are not affected. This applies to Docker Hub and GitHub Container Registry.


What we fixed

Two COPY instructions in the fpm and frankenphp Dockerfiles didn't set permissions, so the images picked up directory modes from the build environment. Both now set them explicitly.

We also added a check to CI. Every image is now tested for world-writable files and directories before it's published, so this can't ship again.

Thanks to @lance-compuco for reporting this responsibly.

How to update

If you use Example Do this
A floating tag 8.4-fpm Pull and redeploy
A release tag 8.4-fpm-v5.0.4 Change it to 8.4-fpm-v5.0.5
A patch version tag 8.4.27-fpm Pull and redeploy

If you build your own image FROM one of these, rebuild it too.

What's Changed

  • Security: Set explicit permissions on copied configs in the fpm and frankenphp images by @jaydrogers
  • Fail CI when an image contains world-writable files or directories by @jaydrogers

Full Changelog: v5.0.4...v5.0.5