Skip to content

Known exploited

CVE-2012-1823 on SLES 16: affected packages and fixed versions

53 packages on SLES 16 are affected by CVE-2012-1823 (PHP-CGI Query String Parameter 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 March 25, 2022, with a remediation date of April 15, 2022 for US federal agencies.

Affected packages

PackageFixed inSeverityAdvisory
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

sapi/cgi/cgi_main.c in PHP before 5.3.12 and 5.4.x before 5.4.2, when configured as a CGI script (aka php-cgi), does not properly handle query strings that lack an = (equals sign) character, which allows remote attackers to execute arbitrary code by placing command-line options in the query string, related to lack of skipping a certain php_getopt for the 'd' case.

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.

Get started free Check one server now, no signup