r/Ubuntu • u/gerardwx • Oct 21 '26
news Update your PHP
There's an urgent update for PHP. Patch your systems if you're using it: https://ubuntu.com/security/notices/USN-8948-1
29
u/YourTechSupport Oct 21 '26
Trying to but the repo is getting hammered.
2
u/CarlosEduardoAraujo Oct 21 '26
Yes, same situation here and you know what's the worst? It's not the first time this has happened, it's becoming a recurring situation. I need to update PHP and I'm getting this error. Bizarre situation!!
1
16
u/nicholasserra Oct 21 '26
Need an ubuntu pro token for a security release, but the registration appears to be down :( Probably getting hammered. Kind of silly they're gating security patches behind a subscription, even if its free for personal.
16
u/nhaines Oct 21 '26
Need an ubuntu pro token for a security release
No you don't. PHP is in the
mainrepository and is fully supported. The fix for this--as very clearly outlined in the USN article in the post--is now available for Ubuntu 22.04 LTS, 24.04 LTS, 26.04 LTS, and 26.10 for all systems.Ubuntu Pro is needed for fixes for Ubuntu 14.04 LTS, 16.04 LTS, 18.04 LTS, and 20.04 LTS, since they are all long past their original support windows.
4
u/nicholasserra Oct 21 '26
I’m on 20.04. So ended up getting pro key and installed 7.4 security update from extended support registry
4
u/nhaines Oct 21 '26
I'm glad you were able to get the key and all patched up!
4
u/nicholasserra Oct 21 '26
I was surprised and impressed they did the 7.4 patch tbh. Was a simple update once I got my pro token. Good stuff!
4
u/OdionBuckley Oct 21 '26
How do I do this? I am on Ubuntu 24.04. According to the link, the PHP 8.3 repo packages are updated. However, after running sudo apt update && sudo apt --only-upgrade install "*php*" and rebooting, phpinfo() continues to tell me I'm using 8.3.6 instead of 8.3.36. I'm not a computer genius and I need more details on what I'm supposed to do here.
7
u/ssddanbrown Oct 21 '26
Ubuntu backported the patches to older PHP version, so you will still see 8.3.6 as a PHP version. I've shared some guidance here if it would help.
4
u/Sr_P3ngu1n Oct 21 '26
I’m trying to update, but everything is overloaded—pretty much everyone is trying to update. :(
7
u/latkahgravis Oct 21 '26
Will sudo apt update do it?
11
u/PaulNM81 Oct 21 '26
That'll update the available package lists on your system, but you'll need apt upgrade or apt full-upgrade to actually install any updates.
3
u/PajamaPants4Life Oct 21 '26
Just to clarify, did Ubuntu have backported patches? I see that they claim this is fixed in 8.5.4-0ubuntu1.5, but the fix is supposed to be in 8.5.12
6
u/nhaines Oct 21 '26
Yes. This is how Debian operates, and how Ubuntu has operated for all 24 years it has existed.
3
u/Silly_Guidance_8871 Oct 21 '26
Anyone else having issues fetching the updates from the ondrej ppa?
2
u/Technological_Pirate Oct 21 '26
Yeah its not just you I am having that issue as well. 503 http error
1
u/CarlosEduardoAraujo Oct 21 '26
Yes. Bizarre
1
u/PixelatedGiant 29d ago
Not really. They are getting hammered. This vulnerability was bad enough to be in the news for regular people, just saw a segment on it a few hours ago. There's legitimate panic and a scramble to get updated.
3
u/choogbaloom Oct 21 '26
Any options for ubuntu 20.04?
2
2
u/smjsmok Oct 22 '26
20.04 is EOL. As the other commenter said, you can still get updates with Ubuntu Pro if an upgrade isn't possible.
2
u/dvershinin 25d ago
Yes. I maintain GetPageSpeed's Everpatch packages. On Ubuntu 20.04, we ship PHP2Shell-fixed PHP 7.4 and 8.0-8.4 on amd64, with the existing package names and config layout. Update your current branch, then restart PHP-FPM or Apache.
Versions and commands: https://www.getpagespeed.com/server-setup/php/php2shell-on-ubuntu-debian
Free for personal, development and evaluation use; commercial production needs Ultra for up to 10 own servers, or Fleet for client servers you administer.
1
u/PixelatedGiant 29d ago
If possible I would try just running your stack in a docker container. Then you aren't beholden to your distro's package repo or PPAs.
1
u/drbobb 29d ago
And how does that solve anything?
1
u/PixelatedGiant 29d ago
He can use the official php image as the base, which doesn't care what OS he's using and will be supported far longer. Plus running in a container restricts what the attacker initially has access to. He's stuck inside the container unless he also has a docker exploit.
2
u/StatusAd5902 2d ago
again
1
u/ry60003333 2d ago
Round 2 here we go 😅
Patches aren't yet available from Ubuntu correct? Hopefully they get these out quicker than the fixes for that kernel TCP CVE.
1
4
u/Paulitow_ Oct 21 '26
Why PHP sury repo have the fix for nearly all php version in ubuntu but not the official repo yet ?
https://ubuntu.com/security/CVE-2026-109619#status
9
u/SpookyKipper Oct 21 '26
Ubuntu official builds are mostly based on sury builds.
Also, ubuntu official builds are actually out now for all supported LTS releases even backported to PHP 5.
Their CVE page just isn't updated.
https://ubuntu.com/blog/php2shell-vulnerability-fixes-available
5
18
u/vincent_sch Oct 21 '26
After the update you should check that the fix is in, because Ubuntu keeps the old upstream version number.
zcat /usr/share/doc/php8.3-fpm/changelog.Debian.gz | head -20lists the CVEs. Then restart php-fpm and long-running PHP workers like queue workers.