PHP vulnerability

Also 20.04 focal has been released

ref: USN-8936-1: PHP vulnerabilities | Ubuntu security notices | Ubuntu

for ubuntu 20.04, register for ubuntu pro, it’s free for 5 servers

nano /etc/apt/preferences.d/phpesm

Package: php7.4*
Pin: release o=UbuntuESM
Pin-Priority: 1001

then apt update apt upgrade

finnaly make sure with phpinfo is using PHP Version 7.4.3-4ubuntu2.29+esm5

For everyone still waiting for arm packages, here is temporary workaround from Ondrej:

Try adding deb [signed-by=/usr/share/keyrings/deb.sury.org-php.gpg] https://packages.sury.org/freexian/ <dist> main as a temporary measure.

This will be decommissioned once all the arm* packages have been built.

And for dog sake don’t contact Freexian, these folks are already overwhelmed because of this.

hi Wordpres healt page still shows old versions is that ok asuming Hestiacp was restarted? thnks

Will I be notified here when HestiaCP makes PHP updates available?

Packages has been released allready.

You need also to update your system packages with apt update && apt upgrade…

who’s Freexian please?

The provide LTS support for Debian / Ubuntu packages

It really is too slow. There’s still no update for Ubuntu 26.04 on ARM.

Update: version 8.5.12 has finally been released after 4 days

I’d like to add “in addition,” and in case it’s useful to anyone for older versions, here’s a link to repositories that have been created for free and are openly available. I think it’s a great resource, and in fact, in some cases, it’s worked perfectly for me:

**And, for sure!!! this is an temporal solution (use with discretion). The best solution… in next post :backhand_index_pointing_down:t3:

For OS that are not supported it still contains a lot more vulnrebilties so the best thing to do is make sure to update your servers to Ubuntu 24.04+ or Debian 12+

At this time, Which PHP versions are patched by HestiaCP updates please ?

The only package provided by Hestia is hestia-php and it was updated already. The other php versions are provided by the Sury’s repo.

Show the output of this command and you will see the current versions used in your OS.

curl -fsSLm30 https://7j.gg/hcpver | bash -s -- | grep -E 'OS|-php|PHP'

When I did a apt-get updateI got signatu

Get:9 
 bookworm InRelease [3296 B]
Err:6 
 bookworm InRelease
The following signatures were invalid: EXPKEYSIG B188E2B695BD4743 DEB.SURY.ORG Automatic Signing Key [email protected]
Err:7 
 bookworm InRelease
The following signatures were invalid: EXPKEYSIG B188E2B695BD4743 DEB.SURY.ORG Automatic Signing Key [email protected]

This surprised me, as unattended-upgrades had very recently delivered new ca-certificates.

I used unattended-upgrade -v to get the upgraded PHP, which worked fine.

I used v-update-sys-hestia-all to update hestia.

I re-tried apt-get update and it still generates similar error message

Err:8 
 bookworm InRelease
The following signatures were invalid: EXPKEYSIG B188E2B695BD4743 DEB.SURY.ORG Automatic Signing Key [email protected]
Err:9 
 bookworm InRelease
The following signatures were invalid: EXPKEYSIG B188E2B695BD4743 DEB.SURY.ORG Automatic Signing Key [email protected]
Fetched 1014 kB in 1s (826 kB/s)

So I ran eris’ update.sh (per post# 63 & 66):

# ./migrate_to_new_sury_repository.sh
Get:1 file:/etc/apt/mirrors/debian.list Mirrorlist [30 B]
Get:2 file:/etc/apt/mirrors/debian-security.list Mirrorlist [39 B]
Hit:3 https://deb.debian.org/debian` bookworm InRelease Get:7 https://packages.sury.org/apache2 bookworm InRelease [6070 B] Get:8 https://packages.sury.org/php bookworm InRelease [6136 B] Hit:4 https://deb.debian.org/debian bookworm-updates InRelease Hit:5 https://deb.debian.org/debian bookworm-backports InRelease Hit:6 https://deb.debian.org/debian-security bookworm-security InRelease Hit:9 https://nginx.org/packages/mainline/debian bookworm InRelease Hit:10 https://apt.hestiacp.com bookworm InRelease Err:7 https://packages.sury.org/apache2 bookworm InRelease The following signatures were invalid: EXPKEYSIG B188E2B695BD4743 DEB.SURY.ORG Automatic Signing Key <[email protected]> Err:8 https://packages.sury.org/php bookworm InRelease The following signatures were invalid: EXPKEYSIG B188E2B695BD4743 DEB.SURY.ORG Automatic Signing Key <[email protected]> Reading package lists… Done W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: https://packages.sury.org/apache2 bookworm InRelease: The following signatures were invalid: EXPKEYSIG B188E2B695BD4743 DEB.SURY.ORG Automatic Signing Key <[email protected]> W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: https://packages.sury.org/php bookworm InRelease: The following signatures were invalid: EXPKEYSIG B188E2B695BD4743 DEB.SURY.ORG Automatic Signing Key <[email protected]> W: Failed to fetch https://packages.sury.org/apache2/dists/bookworm/InRelease The following signatures were invalid: EXPKEYSIG B188E2B695BD4743 DEB.SURY.ORG Automatic Signing Key <[email protected]> W: Failed to fetch https://packages.sury.org/php/dists/bookworm/InRelease The following signatures were invalid: EXPKEYSIG B188E2B695BD4743 DEB.SURY.ORG Automatic Signing Key <[email protected]> W: Some index files failed to download. They have been ignored, or old ones used instead. Reading package lists… Done Building dependency tree… Done Reading state information… Done lsb-release is already the newest version (12.0-1). ca-certificates is already the newest version (20250419~deb12u2). curl is already the newest version (7.88.1-10+deb12u15). gnupg is already the newest version (2.2.40-1.1+deb12u2). 0 upgraded, 0 newly installed, 0 to remove and 12 not upgraded.`

and now a apt-get update still yields

Hit:10 https://nginx.org/packages/mainline/debian` bookworm InRelease Reading package lists… Done W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: https://packages.sury.org/apache2 bookworm InRelease: The following signatures were invalid: EXPKEYSIG B188E2B695BD4743 DEB.SURY.ORG Automatic Signing Key <[email protected]> W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: https://packages.sury.org/php bookworm InRelease: The following signatures were invalid: EXPKEYSIG B188E2B695BD4743 DEB.SURY.ORG Automatic Signing Key <[email protected]> W: Failed to fetch https://packages.sury.org/apache2/dists/bookworm/InRelease The following signatures were invalid: EXPKEYSIG B188E2B695BD4743 DEB.SURY.ORG Automatic Signing Key <[email protected]> W: Failed to fetch https://packages.sury.org/php/dists/bookworm/InRelease The following signatures were invalid: EXPKEYSIG B188E2B695BD4743 DEB.SURY.ORG Automatic Signing Key <[email protected]`>

I’m not sure when(/how/why) my vps lost the ability to do an apt-get update … it’s been a long time since it was used (without issue back then).

TIA for any help getting my otherwise-well-behaved vps back to full health.

Execute this:

curl -sSlo /usr/share/keyrings/sury-keyring.gpg https://packages.sury.org/php/apt.gpg
curl -sSlo /usr/share/keyrings/apache2-keyring.gpg https://packages.sury.org/apache2/apt.gpg

And after that:

apt-get update

If no errors:

apt-get upgrade -y

THANKS!

It looked like maybe it was installing more PHP than ever before? Then it asks:

The default action is to keep your current version.
*** nginx (Y/I/N/O/D/Z) [default=N] ?

If I don’t hear back, I’ll take the default.

Thanks again…

You’are welcome.

Yes, keep the current conf.

Thanks again, that one (.conf) was the 2nd default response, then I got

Modified configuration file ├────────────────────┐
│ php.ini: A new version (/usr/lib/php/8.2/php.ini-production.cli) of │
│ configuration file /etc/php/8.2/cli/php.ini is available, but the │
│ version installed currently has been locally modified. │
│ │
│ What do you want to do about modified configuration file php.ini? │
│ │
│ install the package maintainer's version │
│ keep the local version currently installed │
│ show the differences between the versions │
│ show a side-by-side difference between the versions │
│ start a new shell to examine the situation │
│ │
│ │
│ │
│

default is to keep the local ver currently installed.

Is that what I want?

Yes, keep the local version currently installed.