Known exploited
Is your fleet exposed to CVE-2012-1823?
PHP-CGI Query String Parameter Vulnerability. CVE-2012-1823 is in CISA's catalog of vulnerabilities known to be exploited, and it affects packages on 1 Linux release that SysWard tracks. A host is exposed while it has a build older than the fixed version for its release.
- Added to CISA's catalog
- March 25, 2022
- Due date for US federal agencies
- April 15, 2022
- Used in ransomware
- Not known
- Affected software
- PHP
What it is
sapi/cgi/cgi_main.c in PHP, when configured as a CGI script, does not properly handle query strings, which allows remote attackers to execute arbitrary code.
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.
CISA's required action: Apply updates per vendor instructions.
Affected Linux releases
Pick your release for the full list of affected packages and the commands to check and update a host.
| Release | Affected packages | Fixed in |
|---|---|---|
| SLES 16 | apache2-mod_php8, php8, php8-bcmath and 50 more | 8.4.10-160000.2.2 |
Releases not listed either are not affected, are past their vendor's support, or are not ones SysWard has security data for.
Why the version number alone can mislead
Long-lived distributions fix a vulnerability in the version they already ship and raise only their own build number. Comparing your package's upstream version with the release where the project fixed the bug gives the wrong answer in both directions. Compare against the fixed build for your release, which is what the release pages list.
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.