Did you know?
Ubuntu's PHP security updates don't change php -v: a patched 24.04 still says PHP 8.3.6.
To check whether Ubuntu's PHP is patched, compare the package revision (dpkg -l), not the php -v version.
- Packages
- Applies to Ubuntu, Debian
- Last checked
Explained
Ubuntu patches PHP in place instead of moving to new upstream releases. After the November 2026 PHP security update, Ubuntu 24.04’s PHP still reports 8.3.6 even though the package fixes all 13 CVEs that PHP 8.3.37 fixed upstream. Check the package revision, not php -v:
dpkg -l 'php8*' | awk '/^ii/ {print $2, $3}'
apt changelog php8.3-cli | head -20
The same goes for Ondřej Surý’s backports for end-of-life PHP 8.1 and older: the version number stays the same and only the package revision changes.
Learn more
- PHP Security Advisory (November 2026): 7 Critical Flaws, Update Now Full guide · Updated Nov 2026
