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-*', thenphp-fpm8.4 -vmust printPHP 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-fpmorphp: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.net announced PHP 8.5.13 and 8.4.28 on 19 November 2026, each with the line "This is a security release." (8.5.13 announcement, 8.4.28 announcement).
- The php.net ChangeLog lists 164 entries for 8.5.13 (18 security fixes, 45 entries under Opcache) and 166 entries for 8.4.28 (14 security fixes, 38 under Opcache). That is our count of the published lists.
- PHP 8.3.37 and 8.2.36 contain security fixes only: 13 and 12 entries. Both branches are in security-only support (php.net supported versions).
- PHP 8.6.0 came out the same day (php.net). It is a new branch, not an update to 8.5.
- Debian 13 ships
php8.4 8.4.28-1~deb13u1in trixie-security. Debian has no PHP 8.5 package in any stable release (Debian security tracker). - Ubuntu does not move to the new upstream version. 24.04 LTS stays on 8.3.6 and 26.04 LTS on 8.5.4, with the fixes backported (Ubuntu CVE tracker).
- A SOAP regression is open as php-src issue GH-25628. The fix was committed on 21 November 2026 and is not in a PHP release yet.
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.
| Branch | New version | Previous | Released | Support status |
|---|---|---|---|---|
| PHP 8.5 | 8.5.13 | 8.5.12 | 19 Nov 2026 | Active until 31 Dec 2027, security fixes until 31 Dec 2029 |
| PHP 8.4 | 8.4.28 | 8.4.27 | 19 Nov 2026 | Active until 31 Dec 2026, security fixes until 31 Dec 2028 |
| PHP 8.3 | 8.3.37 | 8.3.36 | 19 Nov 2026 | Security-only until 31 Dec 2027 |
| PHP 8.2 | 8.2.36 | 8.2.35 | 19 Nov 2026 | Security-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.
- GH-24184: after an Apache graceful restart, PHP did not rebuild its system ID, so an OPcache file cache written by a different build could be reused. Relevant if you use mod_php with
opcache.file_cache. - GH-17626: the JIT could corrupt a handler once it hit the
opcache.jit_max_root_traceslimit, which showed up as random "Too few arguments" errors and crashes. - GH-24293: mysqlnd crashed when connecting with an empty password to a MariaDB account that uses PAM.
- GH-24990: a PDO SQLite statement stayed unusable after one failed
execute(). - GH-24552: case-insensitive
substr_compare(),ksort()andkrsort()still depended on the locale. - Fibers: a
catchblock could be skipped when code switched fibers while an exception was unwinding. This one touches async frameworks. - 8.5.13 only, GH-24270: the JIT lost the called scope of
self::andparent::calls inside closures. - 8.5.13 only, GH-25019: the new
Uri\Rfc3986\Uriclass rejected a port written with leading zeros.
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:
- GH-24260:
querySelectorAll()returned duplicate elements for selector lists. - GH-25021: SQLite
createFunctioncorrupted large integers. - GH-24480: a
finallyblock could run a second time when an interrupt threw at the wrong moment.
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.
| System | PHP 8.4 | PHP 8.5 | Source |
|---|---|---|---|
| Debian 13 (trixie) | 8.4.28-1~deb13u1 in trixie-security | Not packaged | Debian tracker |
| Debian 12 (bookworm) | Not packaged; ships php8.2 8.2.36-1~deb12u1 | Not packaged | Debian tracker |
| Ubuntu 24.04 LTS | Not packaged; ships php8.3 8.3.6-0ubuntu0.24.04.14 (backport) | Not packaged | Launchpad php8.3 |
| Ubuntu 26.04 LTS | Not packaged | 8.5.4-0ubuntu1.6 (backport, not 8.5.13) | Launchpad php8.5 |
| sury.org, Debian 13 | 8.4.28-3+debsuryorg13.1+1 | 8.5.13-3+debsuryorg13.1+1 | sury.org package index |
| sury.org, Ubuntu 24.04 and 26.04 | 8.4.28-3+debsuryorg24.04.1+1 and 8.4.28-3+debsuryorg26.04.1+1 | 8.5.13-3+debsuryorg24.04.1+1 and 8.5.13-3+debsuryorg26.04.1+1 | same index, noble and resolute |
| Docker official image | php:8.4.28, plus -fpm, -apache, -cli, -zts and Alpine variants | php:8.5.13 with the same variants | Docker 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:
| Build | Result of loading the WSDL with SoapClient |
|---|---|
| Debian 13, 8.4.27-1~deb13u1 | WSDL loaded, exit 0 |
| Debian 13, 8.4.28-1~deb13u1 | Fatal error, exit 255 |
| sury.org, 8.5.13-3+debsuryorg13.1+1 | WSDL 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:
- Do not roll back to 8.4.27 on a public server; that reopens the security holes.
- On sury.org packages, upgrade to the
-3revision. - On Debian's own 8.4.28-1~deb13u1, the workaround named in the report is a local copy of the schema with the whole
<!DOCTYPE ...>block removed, and a WSDL that points to it. Then watch for the next package update. - Test before production: load each WSDL once with
php -d soap.wsdl_cache_enabled=0on the new version. A cached WSDL in/tmpcan hide the problem until the cache expires.
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.
- php.net ChangeLog, PHP 8.5.13 and PHP 8.4.28
- php.net release announcements, 19 November 2026 and the advance notice of 18 November
- php.net supported versions
- Debian security tracker, php8.4 and php8.2; Debian changelog for php8.4 8.4.28-3
- Ubuntu CVE tracker, CVE-2026-129289; Launchpad php8.3 and php8.5
- packages.sury.org package index for trixie
- Docker Hub, official php image tags
- php-src issue GH-25628 and the fix commit
Need a hand?
Some ways we can help:
- Starting clean is often faster than untangling an old box: move the sites to a Debian 13 VPS or VDS with NVMe in Amsterdam, Dublin or Prishtina, with full root and free weekly backups you restore yourself.
- For busy PHP sites that need steady CPU under load, a VDS with dedicated vCPUs is the better fit.
- Custom offers, custom setups and systems built for you, such as a move off PHP 8.2 before its end of life, are quoted per job: write on Telegram or to info@rscomputers-ks.com.