Repository navigation
v5.1.5
🚨 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 --pullThen 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, andfpm-nginxno 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