🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: alt.os.linux.debian
2 messages
2 total messages Started by Computer Nerd Kev Thu, 22 Oct 2026 21:45
Buggy PHP2Shell Update
#9
Author: Computer Nerd Kev
Date: Thu, 22 Oct 2026 21:45
37 lines
2054 bytes
A warning that since applying Debian 12 (Bookworm) and 13 (Trixie)
package updates to fix the PHP2Shell vulnerability (updated to PHP
8.2.35 and 8.4.27 respectively), PHP can't load modules anymore:

Here from the web server log on the Debian 12 system (actually
Devuan):

PHP Warning:  PHP Startup: Unable to load dynamic library
 'mbstring.so' (tried: /usr/lib/php/20220829/mbstring.so
 (/usr/lib/php/20220829/mbstring.so: undefined symbol:
 _safe_femalloc), /usr/lib/php/20220829/mbstring.so.so
 (/usr/lib/php/20220829/mbstring.so.so: cannot open shared object
 file: No such file or directory)) in Unknown on line 0

(repeated for 15 other modules)

Similar in Debian 13 (so much for running a backup server with a
different OS version so the same bugs won't happen in both places
at once):

PHP Warning:  PHP Startup: Unable to load dynamic library
 'mbstring.so' (tried: /usr/lib/php/20240924/mbstring.so
 (/usr/lib/php/20240924/mbstring.so: undefined symbol:
 _safe_femalloc), /usr/lib/php/20240924/mbstring.so.so
 (/usr/lib/php/20240924/mbstring.so.so: cannot open shared object
 file: No such file or directory)) in Unknown on line 0

I found a bug report for this with Debian 12 (PHP 8.2.35):

https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1151659

Unfortunately so far no work-around is suggested, except to
downgrade back to the vulnerable version.

-- 
__          __
#_ < |\| |< _#
Re: Buggy PHP2Shell Update
#10
Author: Computer Nerd Kev
Date: Mon, 26 Oct 2026 01:39
17 lines
1396 bytes
Computer Nerd Kev <not@telling.you.invalid> wrote:
> A warning that since applying Debian 12 (Bookworm) and 13 (Trixie)
> package updates to fix the PHP2Shell vulnerability (updated to PHP
> 8.2.35 and 8.4.27 respectively), PHP can't load modules anymore:

It turns out it's an Apache issue. The install script does a
"restart" of Apache, but it reuses the old mod_php in memory
instead of the newly installed one. But Apache does reload the PHP
modules, and they all fail since they're for the new version.

It's fixed by running "apache2ctl stop", then "apache2ctl start",
instead of "apache2ctl restart". Or rebooting. Unfortunately Apache
probably remains vulnerable to PHP2Shell until you do that.

-- 
__          __
#_ < |\| |< _#
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads