PHP 8.2 stops getting security fixes on 31 December. Here's how to tell if your server cares
PHP 8.2 gets its last upstream security fix by 31 December 2026, according to the PHP project's supported versions page. For a lot of self-hosted boxes that date means less than it sounds, and for a few it means more. What decides it is where your PHP came from: a distro package is patched on the distro's schedule, while a PHP built from upstream source (which is what the official Docker image does) stops when php.net stops.
So the job this month isn't "upgrade everything to the newest PHP". It's ten minutes working out which of your machines and containers are on the upstream clock.
What actually ends, and when
The PHP project runs two support phases per branch. Per php.net, "active support" gets bug and security fixes with regular point releases, and "security fixes only" gets releases "on an as-needed basis" for critical issues. After that, end of life, and the page says plainly that users "should upgrade as soon as possible".
The dates as listed on that page today:
| Branch | Active support until | Security support until |
|---|---|---|
| 8.2 | 31 Dec 2024 | 31 Dec 2026 |
| 8.3 | 31 Dec 2025 | 31 Dec 2027 |
| 8.4 | 31 Dec 2026 | 31 Dec 2028 |
| 8.5 | 31 Dec 2027 | 31 Dec 2029 |
| 8.6 | 31 Dec 2028 | 31 Dec 2030 |
Two things fall out of that. 8.2 has been on security-only fixes for nearly two years already, so nothing about how it behaves changes on 1 January; the fixes just stop. And 8.4 drops to security-only on the same day, which is a non-event for most people but worth knowing if you like being on a branch that still gets ordinary bug fixes. PHP 8.6 came out on 19 November, per the same page.
The distro case: probably fine, check anyway
Debian 12 "bookworm" ships PHP 8.2 (the Debian 13 release notes list the jump as 8.2 to 8.4). Bookworm is now oldstable, and its security work has passed to Debian LTS, which the Debian LTS wiki lists as covering bookworm from 2026-06-11 to 2028-06-30 on amd64, arm64, armhf, i386 and ppc64el.
The Debian package tracker for php8.2 shows that's real work: 8.2.36-1~deb12u1 was accepted into oldstable-security on 21 October, after a string of earlier uploads through the year. What I don't know, and won't guess at, is how the LTS team will handle fixes once there's no upstream 8.2 release to pull from. That's a question for Debian's own announcements nearer the date, not something to infer.
Ubuntu follows the same pattern on its own schedule. Its package index shows 22.04 defaulting to PHP 8.1 (upstream end of life a year ago, still a supported Ubuntu package), 24.04 to 8.3 and 26.04 to 8.5. If you're on an Ubuntu LTS and installed php from the archive, your clock is Ubuntu's.
The honest summary: a distro-packaged PHP 8.2 on a supported release isn't the urgent case. Keep applying updates and plan to move to Debian 13's 8.4 on your normal upgrade cycle.
The container case: this is the one to look at
The official php image doesn't use Debian's packages. Its 8.2 Dockerfile starts from debian:bookworm-slim, carries a comment to "prevent Debian's PHP packages from being installed", then downloads the php.net source tarball and compiles it. So every LTS patch Debian lands for its own php8.2 package does nothing for a container built on php:8.2-fpm. That image is on the upstream clock.
The Docker official images FAQ explains what happens to tags after support ends: an unsupported tag "is typically left available for pulling", but "it will simply never get rebuilt after that point". Nothing breaks. Your container keeps starting, your Compose file keeps working, and the PHP inside it quietly stops getting fixes. That's exactly the sort of thing nobody notices until a CVE write-up mentions it.
Today the image's versions.json still lists 8.2 at 8.2.36, alongside 8.3, 8.4, 8.5 and 8.6.
The same applies to any app image built FROM php:8.2-.... Plenty of self-hosted projects publish images that way, so the PHP version is buried a layer down where you'd never think to look.
Finding it: the ten-minute audit
On a host with PHP installed, the PHP CLI docs give -v for the version:
php -v
That tells you the version. To tell distro from hand-built, ask the package manager on Debian or Ubuntu:
dpkg -l 'php*' | grep ^ii
If that lists php8.2-* packages, you're on the distro's clock. If php -v reports 8.2 but dpkg shows nothing, something else installed it (a third-party repo, a control panel, a source build) and you'll want to find out who's patching it.
For containers, list what's running with its image, using the --format placeholders from the docker ps reference:
docker ps --format "table {{.Names}}\t{{.Image}}"
Anything with php:8.2 in the image name is an obvious hit. For app images where PHP is buried, ask the container directly with docker exec:
docker exec <container> php -v
If that errors because there's no php binary, the container doesn't run PHP and you can cross it off. I'd put the results in whatever text file you keep about your setup, because you'll want them again when 8.3 hits the same wall at the end of 2027.
What to do with a hit
For a container you build yourself, change the base tag and rebuild. The jump from 8.2 to 8.4 skips 8.3, so read the migration guides linked from php.net for both steps before you do it; deprecations from 8.3 still apply to you. I'd go to 8.4 or 8.5 rather than 8.3, because 8.3 is already security-only and you'd just be doing this again in a year.
For an app image you pull from someone else, the version is the app maintainer's decision, not yours. Check whether a newer release moves to a supported PHP; if it hasn't, that's worth a polite issue on their tracker rather than a fork.
Some apps have already moved. Nextcloud 35's upgrade notes say "PHP 8.2 is no longer supported", and its system requirements list 8.3 and 8.4 with 8.5 recommended. If you run Nextcloud on a Debian 12 host with distro PHP, that's the more pressing deadline: you can't take the next major upgrade until PHP moves.
The boring conclusion
Most of you will run these commands, find distro packages and nothing else, and go back to your weekend. That's the right result. The point of checking is the one php:8.2-apache container from 2023 that's been running happily in a corner ever since, and is about to keep running happily with nobody patching it.