GrepBoard/Manuals
605 manuals ·

PHP 8.5.13 and 8.4.28 security release: 17 fixes, am I affected?

·Tested on Docker php:8.5.12-cli · php:8.5.13-cli · php:8.4.28-cli · php:8.5.13-fpm (official images, version and setting checks only) · 2026-11·Test scope ↓·5 steps

PHP 8.5.13, 8.4.28, 8.3.37 and 8.2.36 shipped November 19. 8.5.13 fixes 17 advisories, 7 critical, apart from October's PHP2Shell. Check your version.

PHP 8.5.13, 8.4.28, 8.3.37 and 8.2.36 came out on 2026-11-19. The ChangeLog lists 17 GHSA entries for 8.5.13, 14 for 8.4.28, 13 for 8.3.37 and 12 for 8.2.36. The October 21 PHP2Shell pair (CVE-2026-109618 and 109619) is another post with different numbers, but the advisories for CVE-2026-129182 and 129481 describe themselves as follow-ups to that fix. The 11/18 pre-announcement said CRITICAL issues require non-default configuration or uncommon setups.

[1] Check the PHP you run with php -v and php-fpm -v. The command-line php and the web-facing php-fpm are separate binaries. Fixed versions by branch: 8.5.13, 8.4.28, 8.3.37, 8.2.36.

[2] Skim the 17 entries. Severity (CVSS v4.0) and affected versions are the values in php-src's security advisories; "affects" means below the branch's fixed version (for 8.2 the advisories say < 8.2.36). Conditions are shortened advisory sentences, not the full text. Matching a condition does not mean you were compromised, and not matching is no reason to skip the upgrade.

CVESeverityAffectsWhat · what to look at (ChangeLog title shortened)
CVE-2026-129474critical 9.28.5magic method backtraces UAF: fatal_error_backtraces=1 and zend.exception_ignore_args=0
CVE-2026-129182critical 9.28.5last_fatal_error_backtrace UAF: global and per-path settings that overlap
CVE-2026-129496critical 9.28.2-8.5Timezone cache UAF: file error_log, NTS build
CVE-2026-129289critical 9.28.2-8.5PHP-FPM request smuggling: app does not read php://input to the end
CVE-2026-126714critical 9.28.2-8.5Partially overwritten session files: session.save_handler=files (default)
CVE-2026-115560critical 9.28.2-8.5Session serializer mismatch: upload progress plus mixed session formats
CVE-2026-129481critical 9.28.3-8.5Interrupted session shutdown UAF: app callback during session teardown
CVE-2026-129291high 8.88.2-8.5PHP-FPM epoll UAF (local privilege escalation): catch_workers_output
CVE-2026-128064high 8.28.2-8.5Mixed-case HTTPS and FTPS URLs
CVE-2026-127960high 8.78.2-8.5Folded HTTP response headers DoS
CVE-2026-128090high 7.78.2-8.5PHAR OpenSSL signature bypass
CVE-2026-129538medium 6.98.2-8.5PHP-CGI PATH_INFO out-of-bounds
CVE-2026-129292medium 5.38.2-8.5FPM status endpoint XSS: full HTML status page
CVE-2026-129506medium 6.38.2-8.5SOAP UAF (DTD entity references)
CVE-2026-15353medium 6.38.2-8.5SOAP information disclosure
CVE-2026-129501medium 6.38.4-8.5DOM XML serialization double free
CVE-2026-129438medium 6.38.5RFC 3986 URI serialization

The three entries that affect 8.5 only do not apply to 8.4 or older, so moving to 8.4.28 fixes 14 entries, not 17. For older branches, the advisories for CVE-2026-129291 and CVE-2026-127960 list up to 8.1.34 as affected and name no fixed version; this post makes no claim about other older branches (support schedule · upload_progress setting).

[3] Read the settings. This image has no php.ini.

console
$ php -i | grep -E '^(fatal_error_backtraces|zend.exception_ignore_args|session.upload_progress.enabled|session.serialize_handler|session.save_handler) =>'
output
fatal_error_backtraces => On => Onzend.exception_ignore_args => Off => Offsession.save_handler => files => filessession.serialize_handler => php => phpsession.upload_progress.enabled => Off => Off

Using the official image as is, without a php.ini, already meets both conditions of CVE-2026-129474 (the advisory says php.ini-production sets the second to 1, which blocks that path). Read the web-facing values with php-fpm -i, and check pool files directly for php_admin_value overrides.

[4] Upgrade. With official images, pull the tag again. Distribution packages cannot be judged by number (how) and only move after the distribution ships a fix. On 11/20 only CVE-2026-129289 was checked: the Debian tracker lists php8.4 8.4.28-1~deb13u1 on trixie and php8.2 8.2.36-1~deb12u1 on bookworm as fixed, while Ubuntu shows "Needs evaluation" for php8.3 on 24.04, php8.1 on 22.04 and php8.5 on 26.04. Other CVEs and RHEL-family systems were not checked.

[5] Restart and verify. A restart can cut requests in flight. On a single server do it in a quiet period; with several, take one out of the load balancer at a time.

1. Before upgrading, write down the current version (package version, image tag) and copy any config you will change with cp -a <file> <file>.bak. 2. Test the configuration first with php-fpm -t. 3. Restart the service. If it fails, go back to the version you wrote down, but that version still has the vulnerabilities, so decide how to reduce exposure separately.

php -v reports a freshly started CLI process, so it does not show whether the running FPM workers were replaced. After the restart, check php-fpm -v (the binary on disk), the master process start time with ps lstart (is it after the upgrade?), and, if you enabled the status page, its start time. These three are general usage and were not run here (needrestart post).

Compare the CLI version against the fixed version for its own branch. This is the result on the pre-fix 8.5.12 image; the 8.5.13 and 8.4.28 images printed true (run/08-*).

console
$ php -r '$f = ["8.5" => "8.5.13", "8.4" => "8.4.28", "8.3" => "8.3.37", "8.2" => "8.2.36"]; $b = PHP_MAJOR_VERSION . "." . PHP_MINOR_VERSION; echo PHP_VERSION, " ", $f[$b] ?? "none", "\n"; var_dump(isset($f[$b]) && version_compare(PHP_VERSION, $f[$b], ">="));'
output
8.5.12 8.5.13bool(false)

Temporary mitigations for servers you cannot upgrade are not covered, because the workaround sections of the advisories were not read. Check the GHSA for the entry in question.

#php#php-fpm#cve#security-release