← Back to Blog

PHP 8.5.13 and 8.4.28: Changelog, Package Versions and How to Upgrade

Published · by Leo Gashi, RS Computers

PHP Debian Security updates

PHP 8.5.13 and PHP 8.4.28 were released on 19 November 2026, together with PHP 8.3.37 and 8.2.36. All four are security releases, and the 8.5 and 8.4 builds also carry about 150 ordinary bug fixes each, many of them in OPcache and the JIT. On Debian 13 you get 8.4.28 with a normal apt upgrade; 8.5.13 comes from packages.sury.org or the official Docker image.

This page is the release sheet: what changed, which package version string to look for on Debian, Ubuntu, sury.org and Docker, how to upgrade and prove it, and one regression in the SOAP extension that we reproduced ourselves. We ran every Debian command on a Debian 13 test container on 22 November 2026. If you host PHP on one of our VPS or VDS servers in Amsterdam, Dublin or Prishtina, you have full root, so the steps work as written.

Quick answer

  • Debian 13: apt update && apt install --only-upgrade 'php8.4-*', then php-fpm8.4 -v must print PHP 8.4.28. Package: 8.4.28-1~deb13u1.
  • PHP 8.5 from sury.org: apt update && apt install --only-upgrade 'php8.5-*'. Package on Debian 13: 8.5.13-3+debsuryorg13.1+1.
  • Docker: change the tag to php:8.5.13-fpm or php:8.4.28-fpm, pull, and recreate the container.
  • Using SoapClient with WSDL files that import XML Signature schemas? Read the SOAP regression first.

Key facts, checked 22 November 2026:

PHP 8.5.13 and 8.4.28 release dates and support status

PHP releases its supported branches on a four-week cycle. The previous round, 8.5.12 and 8.4.27, is dated 22 October 2026 in the ChangeLog. Support dates below are from php.net supported versions.

BranchNew versionPreviousReleasedSupport status
PHP 8.58.5.138.5.1219 Nov 2026Active until 31 Dec 2027, security fixes until 31 Dec 2029
PHP 8.48.4.288.4.2719 Nov 2026Active until 31 Dec 2026, security fixes until 31 Dec 2028
PHP 8.38.3.378.3.3619 Nov 2026Security-only until 31 Dec 2027
PHP 8.28.2.368.2.3519 Nov 2026Security-only until 31 Dec 2026

PHP 8.4 leaves active support on 31 December 2026, so 8.4.28 is one of its last releases with ordinary bug fixes. PHP 8.2 reaches end of life on the same day.

PHP 8.5.13 changelog: the bug fixes that matter on a server

These are the entries a site owner could actually meet, described in our words with the bug number from the official ChangeLog. All of them are in 8.4.28 as well unless marked.

PHP 8.4.28 changelog: what is different from 8.5.13

The two lists overlap heavily. Entries that appear under 8.4.28 and not under 8.5.13 include:

The security side in four sentences

The releases fix CVE-2026-129289, a PHP-FPM request smuggling flaw rated critical that needs a front end which reuses FastCGI connections, and CVE-2026-129538 in php-cgi. PHP's advance notice said the critical issues need a non-default configuration or an uncommon setup. 8.5.13 has four security entries that 8.4.28 lacks, among them CVE-2026-129474, which affects 8.5 only. Who is exposed, how to check and the mitigations are in our PHP security update guide for November 2026.

Where PHP 8.5.13 and 8.4.28 are available: exact package versions

Checked on 22 November 2026 against each project's own index. "Backport" means the distribution keeps its old PHP version number and patches it.

SystemPHP 8.4PHP 8.5Source
Debian 13 (trixie)8.4.28-1~deb13u1 in trixie-securityNot packagedDebian tracker
Debian 12 (bookworm)Not packaged; ships php8.2 8.2.36-1~deb12u1Not packagedDebian tracker
Ubuntu 24.04 LTSNot packaged; ships php8.3 8.3.6-0ubuntu0.24.04.14 (backport)Not packagedLaunchpad php8.3
Ubuntu 26.04 LTSNot packaged8.5.4-0ubuntu1.6 (backport, not 8.5.13)Launchpad php8.5
sury.org, Debian 138.4.28-3+debsuryorg13.1+18.5.13-3+debsuryorg13.1+1sury.org package index
sury.org, Ubuntu 24.04 and 26.048.4.28-3+debsuryorg24.04.1+1 and 8.4.28-3+debsuryorg26.04.1+18.5.13-3+debsuryorg24.04.1+1 and 8.5.13-3+debsuryorg26.04.1+1same index, noble and resolute
Docker official imagephp:8.4.28, plus -fpm, -apache, -cli, -zts and Alpine variantsphp:8.5.13 with the same variantsDocker Hub php tags

The plain Debian 13 archive still holds 8.4.27-1~deb13u1; only the trixie-security line delivers 8.4.28. Debian unstable and testing are on 8.4.28-3.

How we tested

We used a fresh Debian 13.7 container (kernel 6.12.111, limited to 2 GiB of RAM) on our Amsterdam lab server on 22 November 2026. We installed php8.4-fpm, php8.4-cli, php8.4-soap and php8.4-opcache at 8.4.27 with the security archive switched off, switched it back on, and upgraded. Then we added packages.sury.org and installed PHP 8.5.13 next to it.

Upgrade to PHP 8.4.28 on Debian 13

As root:

apt update
apt list --upgradable
apt install --only-upgrade 'php8.4-*'
php8.4-cli/stable-security 8.4.28-1~deb13u1 amd64 [upgradable from: 8.4.27-1~deb13u1]
php8.4-common/stable-security 8.4.28-1~deb13u1 amd64 [upgradable from: 8.4.27-1~deb13u1]
php8.4-fpm/stable-security 8.4.28-1~deb13u1 amd64 [upgradable from: 8.4.27-1~deb13u1]
php8.4-opcache/stable-security 8.4.28-1~deb13u1 amd64 [upgradable from: 8.4.27-1~deb13u1]
php8.4-readline/stable-security 8.4.28-1~deb13u1 amd64 [upgradable from: 8.4.27-1~deb13u1]
php8.4-soap/stable-security 8.4.28-1~deb13u1 amd64 [upgradable from: 8.4.27-1~deb13u1]
...
Fetched 5177 kB in 0s (142 MB/s)
...
Setting up php8.4-fpm (8.4.28-1~deb13u1) ...

The six packages took 8.8 seconds from command to prompt. Then verify both binaries, because the command line and the web server can run different builds:

php -v
php-fpm8.4 -v
PHP 8.4.28 (cli) (built: Nov 18 2026 10:55:31) (NTS)
Copyright (c) The PHP Group
Built by Debian
Zend Engine v4.4.28, Copyright (c) Zend Technologies
    with Zend OPcache v8.4.28, Copyright (c), by Zend Technologies
PHP 8.4.28 (fpm-fcgi) (built: Nov 18 2026 10:55:31) (NTS)
...

If apt offers nothing, run apt-cache policy php8.4-fpm and look for a debian-security trixie-security line. No such line means the security archive is missing from your sources. A first install is covered in how to install PHP on Debian 13.

Does the upgrade restart PHP-FPM?

On our container it did. Before the upgrade, systemctl show php8.4-fpm -p MainPID -p ActiveEnterTimestamp printed MainPID=6717, started at 23:40:31 UTC. After it, the same command printed MainPID=13293, started at 23:40:41 UTC. So the package restarted the service by itself. A manual restart is still a safe habit:

systemctl restart php8.4-fpm
systemctl show php8.4-fpm -p ActiveEnterTimestamp

Ours returned in 0.10 seconds on an idle pool. With Apache and mod_php, restart apache2 instead. If nginx answers 502 right after, the socket path or the service name is usually the cause; see our nginx 502 Bad Gateway fixes.

OPcache after the upgrade

OPcache keeps compiled scripts in memory shared by the FPM processes, so a restart empties it and the first requests compile again. On Debian's defaults we saw opcache.enable => On, opcache.validate_timestamps => On and opcache.revalidate_freq => 2, which needs no action. If you set opcache.file_cache, that cache lives on disk and is tied to the PHP build. Bug GH-24184 above is about exactly that going wrong with Apache graceful restarts, so do a full restart, not a reload.

Install or upgrade to PHP 8.5.13 on Debian from packages.sury.org

Debian has no PHP 8.5, so 8.5.13 comes from Ondrej Sury's repository. If the repository is already set up, the upgrade is two lines as root:

apt update
apt install --only-upgrade 'php8.5-*'

On a server without it, we added the repository with the steps from its README.txt (they are spelled out in our Debian install guide), and apt at once offered to replace Debian's PHP 8.4 too:

php8.4-fpm/trixie 8.4.28-3+debsuryorg13.1+1 amd64 [upgradable from: 8.4.28-1~deb13u1]
php8.4-soap/trixie 8.4.28-3+debsuryorg13.1+1 amd64 [upgradable from: 8.4.28-1~deb13u1]
...

We kept 8.4 on Debian's build with the pin file from the install guide, then installed 8.5:

apt-get install -y php8.5-fpm php8.5-cli php8.5-soap
php8.5 -v
php-fpm8.5 -v | head -1
systemctl is-active php8.4-fpm php8.5-fpm
PHP 8.5.13 (cli) (built: Nov 20 2026 15:00:54) (NTS)
Copyright (c) The PHP Group
Built by Debian
Zend Engine v4.5.13, Copyright (c) Zend Technologies
    with Zend OPcache v8.5.13, Copyright (c), by Zend Technologies
PHP 8.5.13 (fpm-fcgi) (built: Nov 20 2026 15:00:54) (NTS)
active
active

The install took 8.1 seconds and dpkg-query -W php8.5-fpm printed 8.5.13-3+debsuryorg13.1+1. Plain php -v switched to 8.5.13 as well; the install guide shows how to set the command-line version back. Default unattended-upgrades settings do not cover sury.org, so add its origin as in our Debian 13 automatic security updates guide.

PHP 8.5.13 on Ubuntu 24.04 and 26.04

Ubuntu's own archive will not show 8.5.13 or 8.4.28. After apt update && apt install --only-upgrade 'php8.3-*' on 24.04, php -v still says 8.3.6. The proof of the fix is the package version 8.3.6-0ubuntu0.24.04.14 in apt-cache policy php8.3-fpm. On 26.04 the patched package is php8.5 8.5.4-0ubuntu1.6. Those backports carry the security fixes, not the ordinary bug fixes listed above.

For the real 8.5.13 or 8.4.28 on Ubuntu, use packages.sury.org, which publishes both for noble and resolute. Setup and pinning are in our guide to install PHP on Ubuntu 26.04 and 24.04.

PHP 8.5.13 Docker tags

The official php image has 8.5.13 and 8.4.28 tags for every variant: -cli, -fpm, -apache and -zts, on Debian trixie and bookworm and on Alpine 3.23 and 3.24. Docker Hub shows the 8.5.13-fpm and 8.4.28-fpm tags pushed on 20 November 2026, and the moving tag 8.5-fpm has the same digest as 8.5.13-fpm.

docker pull php:8.5.13-fpm
docker compose up -d --build
docker compose exec php php -v

Replace the first php in the last line with your service name. A running container never updates itself: pull, rebuild anything built FROM php:..., recreate. If your Dockerfile says php:8.5-fpm, a rebuild with --pull is enough. If it says php:latest or php:fpm, pin a branch now: those tags are not tied to a branch, and 8.6.0 is out.

Known regression: SOAP and WSDL files with a DOCTYPE

One confirmed break came with these releases. GH-25628, opened on 20 November 2026, reports that SoapClient on 8.3.37 crashes with a segmentation fault when a WSDL imports the standard W3C XML Signature schema, which starts with a <!DOCTYPE schema ...> block. Other users in the thread report the same on 8.2.36 and 8.4.28. According to the fix commit, the DOCTYPE node that the security fix for CVE-2026-129506 now keeps is named after the DOCTYPE, so the SOAP code could pick it up when it looked for the schema element.

We tested it with a small WSDL of our own that imports a schema with such a DOCTYPE. Same files, three builds:

BuildResult of loading the WSDL with SoapClient
Debian 13, 8.4.27-1~deb13u1WSDL loaded, exit 0
Debian 13, 8.4.28-1~deb13u1Fatal error, exit 255
sury.org, 8.5.13-3+debsuryorg13.1+1WSDL loaded, exit 0
PHP Fatal error:  Uncaught SoapFault exception: [WSDL] SOAP-ERROR: Parsing Schema: can't import schema from '/root/soaptest/dsig.xsd', missing 'targetNamespace', expected 'http://www.w3.org/2000/09/xmldsig#'

Our reduced file gave a SoapFault, not the segfault from the report, but it is the same mix-up: the schema does have a targetNamespace. The sury.org build works because its -3 revision adds the upstream patch; the package changelog names a patch for the SOAP DTD node being matched as an element. The fix is php-src commit cec014b from 21 November 2026.

What to do if this hits you:

What we did not test

We did not run the Ubuntu or Docker upgrades for this article; those sections rest on Launchpad, the Ubuntu CVE tracker and Docker Hub. We did not test 8.3.37 or 8.2.36, the Apache module, Alpine images, Windows builds or performance. We did not check whether the Docker images or Ubuntu's backports have the SOAP problem.

Frequently asked questions

When was PHP 8.5.13 released?

PHP 8.5.13 was released on 19 November 2026, the same day as PHP 8.4.28, 8.3.37, 8.2.36 and the first 8.6.0. php.net marks 8.5.13 as a security release. The previous 8.5 version was 8.5.12, dated 22 October 2026 in the ChangeLog.

What changed in PHP 8.4.28?

The php.net ChangeLog lists 166 entries for PHP 8.4.28: 14 security fixes, including the PHP-FPM flaw CVE-2026-129289, and about 150 bug fixes, 38 of the entries filed under Opcache. It adds no new language features.

Is PHP 8.5.13 available on Debian 13?

Not from Debian. Debian 13 ships PHP 8.4, updated to 8.4.28-1~deb13u1 through trixie-security. PHP 8.5.13 for Debian 13 comes from packages.sury.org as 8.5.13-3+debsuryorg13.1+1, or from the official Docker image.

Which Debian package is PHP 8.4.28?

On Debian 13 it is source package php8.4 version 8.4.28-1~deb13u1, in the trixie-security archive. Check with apt-cache policy php8.4-fpm. Debian 12 has no PHP 8.4; it ships PHP 8.2, patched as 8.2.36-1~deb12u1.

Does Ubuntu have PHP 8.5.13?

No. Ubuntu 26.04 LTS keeps PHP 8.5.4 and backports the security fixes as 8.5.4-0ubuntu1.6. Ubuntu 24.04 LTS keeps 8.3.6 as 8.3.6-0ubuntu0.24.04.14. The real 8.5.13 for both comes from packages.sury.org.

Should I move from PHP 8.4 to 8.5 or 8.6 now?

There is no rush for security: PHP 8.4 gets security fixes until 31 December 2028. Its active support ends on 31 December 2026, so ordinary bug fixes stop soon. PHP 8.5 has active support until 31 December 2027. PHP 8.6.0 is three days old, so try it on a staging copy first.

Sources

All checked on 22 November 2026.

Need a hand?

Some ways we can help:

← All articles

Chat on Telegram