Known exploited
CVE-2024-4577 on SLES 16: affected packages and fixed versions
53 packages on SLES 16 are affected by CVE-2024-4577 (PHP-CGI OS Command Injection Vulnerability). A host is fixed once the package is at the version below or newer.
This vulnerability is known to be exploited. CISA added it to its catalog on June 12, 2024, with a remediation date of July 3, 2024 for US federal agencies. It has been used in ransomware campaigns.
Affected packages
| Package | Fixed in | Severity | Advisory |
|---|---|---|---|
apache2-mod_php8 |
8.4.10-160000.2.2 |
Critical | none listed |
php8 |
8.4.10-160000.2.2 |
Critical | none listed |
php8-bcmath |
8.4.10-160000.2.2 |
Critical | none listed |
php8-bz2 |
8.4.10-160000.2.2 |
Critical | none listed |
php8-calendar |
8.4.10-160000.2.2 |
Critical | none listed |
php8-cli |
8.4.10-160000.2.2 |
Critical | none listed |
php8-ctype |
8.4.10-160000.2.2 |
Critical | none listed |
php8-curl |
8.4.10-160000.2.2 |
Critical | none listed |
php8-dba |
8.4.10-160000.2.2 |
Critical | none listed |
php8-devel |
8.4.10-160000.2.2 |
Critical | none listed |
php8-dom |
8.4.10-160000.2.2 |
Critical | none listed |
php8-embed |
8.4.10-160000.2.2 |
Critical | none listed |
php8-enchant |
8.4.10-160000.2.2 |
Critical | none listed |
php8-exif |
8.4.10-160000.2.2 |
Critical | none listed |
php8-fastcgi |
8.4.10-160000.2.2 |
Critical | none listed |
php8-ffi |
8.4.10-160000.2.2 |
Critical | none listed |
php8-fileinfo |
8.4.10-160000.2.2 |
Critical | none listed |
php8-fpm |
8.4.10-160000.2.2 |
Critical | none listed |
php8-fpm-apache |
8.4.10-160000.2.2 |
Critical | none listed |
php8-ftp |
8.4.10-160000.2.2 |
Critical | none listed |
php8-gd |
8.4.10-160000.2.2 |
Critical | none listed |
php8-gettext |
8.4.10-160000.2.2 |
Critical | none listed |
php8-gmp |
8.4.10-160000.2.2 |
Critical | none listed |
php8-iconv |
8.4.10-160000.2.2 |
Critical | none listed |
php8-intl |
8.4.10-160000.2.2 |
Critical | none listed |
php8-ldap |
8.4.10-160000.2.2 |
Critical | none listed |
php8-mbstring |
8.4.10-160000.2.2 |
Critical | none listed |
php8-mysql |
8.4.10-160000.2.2 |
Critical | none listed |
php8-odbc |
8.4.10-160000.2.2 |
Critical | none listed |
php8-opcache |
8.4.10-160000.2.2 |
Critical | none listed |
php8-openssl |
8.4.10-160000.2.2 |
Critical | none listed |
php8-pcntl |
8.4.10-160000.2.2 |
Critical | none listed |
php8-pdo |
8.4.10-160000.2.2 |
Critical | none listed |
php8-pgsql |
8.4.10-160000.2.2 |
Critical | none listed |
php8-phar |
8.4.10-160000.2.2 |
Critical | none listed |
php8-posix |
8.4.10-160000.2.2 |
Critical | none listed |
php8-readline |
8.4.10-160000.2.2 |
Critical | none listed |
php8-shmop |
8.4.10-160000.2.2 |
Critical | none listed |
php8-snmp |
8.4.10-160000.2.2 |
Critical | none listed |
php8-soap |
8.4.10-160000.2.2 |
Critical | none listed |
php8-sockets |
8.4.10-160000.2.2 |
Critical | none listed |
php8-sodium |
8.4.10-160000.2.2 |
Critical | none listed |
php8-sqlite |
8.4.10-160000.2.2 |
Critical | none listed |
php8-sysvmsg |
8.4.10-160000.2.2 |
Critical | none listed |
php8-sysvsem |
8.4.10-160000.2.2 |
Critical | none listed |
php8-sysvshm |
8.4.10-160000.2.2 |
Critical | none listed |
php8-tidy |
8.4.10-160000.2.2 |
Critical | none listed |
php8-tokenizer |
8.4.10-160000.2.2 |
Critical | none listed |
php8-xmlreader |
8.4.10-160000.2.2 |
Critical | none listed |
php8-xmlwriter |
8.4.10-160000.2.2 |
Critical | none listed |
php8-xsl |
8.4.10-160000.2.2 |
Critical | none listed |
php8-zip |
8.4.10-160000.2.2 |
Critical | none listed |
php8-zlib |
8.4.10-160000.2.2 |
Critical | none listed |
Check a host
Show the installed versions and compare with the table above:
rpm -q apache2-mod_php8 php8 php8-bcmath php8-bz2
Update to the fixed build:
sudo zypper refresh && sudo zypper update apache2-mod_php8 php8 php8-bcmath php8-bz2
The fixed version may look older than the upstream release that fixed the bug. SLES 16 carries the fix in the version it already ships.
What it is
In PHP versions 8.1.* before 8.1.29, 8.2.* before 8.2.20, 8.3.* before 8.3.8, when using Apache and PHP-CGI on Windows, if the system is set up to use certain code pages, Windows may use "Best-Fit" behavior to replace characters in command line given to Win32 API functions. PHP CGI module may misinterpret those characters as PHP options, which may allow a malicious user to pass options to PHP binary being run, and thus reveal the source code of scripts, run arbitrary PHP code on the server,...
Know which of your hosts are affected
SysWard's agent reports the packages installed on each server and matches them against each distribution's own security data, so you see which hosts still have a vulnerable build, and can patch them from the same screen. Free for five servers.