Overview
This page is related to the BSSA-2023-01 Security Advisory.
Older versions of Ghostscript open a way for script infusion.
Because of bugs in the Ghostscript binary out of the BlueSpice package manager, Hallo Welt! mostly installed manually on Linux systems. These bugs no longer seem to be a problem.
How to update - Linux
- Check the system for manual installation and delete it:If there is a binary called
ls -al /usr/local/bin
delete it:gs
rm -fr /usr/local/bin/gs
- Check the system for an installation out of the package manager (Ghostscript comes as a dependency of ImageMagik):ffor Debian 11 this should look like:
dpkg -l ghostscript
For Debian 12 the Version is "10.0.0~dfsg-11+deb12u1"root@XXXXXXXXXXXX:~# dpkg -l ghostscript Gewünscht=Unbekannt/Installieren/R=Entfernen/P=Vollständig Löschen/Halten | Status=Nicht/Installiert/Config/U=Entpackt/halb konFiguriert/ Halb installiert/Trigger erWartet/Trigger anhängig |/ Fehler?=(kein)/R=Neuinstallation notwendig (Status, Fehler: GROSS=schlecht) ||/ Name Version Architektur Beschreibung +++-==============-=====================-============-=================================================== ii ghostscript 9.53.3~dfsg-7+deb11u5 amd64 interpreter for the PostScript language and for PDF
For Ubuntu 22 the Version is "9.50~dfsg-5ubuntu4.8"
If it does not match the needed Version please do an:and recheck.apt update apt upgrade -y
- Change the settings in the codebase.
Go to the directory where the codebase is saved (check your ApacheConfiguration forDocumentRoot if you are not sure). Normally it should look like this:It could beroot@XXXXX:/var/www/bluespice/w/settings.d# grep -rin PdfProcessor 005-PdfHandler.php:5:$wgPdfProcessor = '/usr/local/bin/gs';
005-PdfHandler.php
or some other configuration file. - Find and change the variable to the correct path, for example with this command:Double-check:
sed -i 's/local\///g' 005-PdfHandler.php
root@XXXXXXXXXXX:/var/www/bluespice/w/settings.d# grep -rin PdfProcessor 005-PdfHandler.php:5:$wgPdfProcessor = '/usr/bin/gs';
Your system is now patched.
How to update - Windows
- Deinstall the package GPL Ghostscript.
- Download the package Ghostscript AGPL Release from https://www.ghostscript.com/releases/gsdnld.html .
- Install the new package.
Your system is now patched.