Critical severity · published May 11, 2012
CVE-2012-1823
PHP-CGI Query String Parameter Vulnerability
In wildKEV
9.8
CVSS
100%
EPSS
Yes
On KEV
Description
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.
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Attack vector
Network
Complexity
Low
Privileges
None
User interaction
None
Confidentiality
High
Integrity
High
Availability
High
Scope
Unchanged
Exploitation
Is it being used?
Exploit prediction (EPSS)100.0% · higher than 100% of CVEs
Exploited in the wildYes
CISA KEVListed Mar 25, 2022
Federal remediation dueApr 15, 2022
Ransomware campaign useNot known
Affected products
Which versions
PH
PHP · PHP
before 5.3.12; 5.4.0 before 5.4.2 · source: NVD, KEV
AS
Application Stack · Redhat
2.0 · source: NVD
DL
Debian Linux · Debian
6.0 · source: NVD
EL
Enterprise Linux Eus · Redhat
5.6; 6.1; 6.2 · source: NVD
EL
Enterprise Linux Server · Redhat
5.0; 6.0 · source: NVD
EL
FE
Fedora · Fedoraproject
39; 40 · source: NVD
HP
Hp-ux · HP
b.11.23; b.11.31 · source: NVD
LE
Linux Enterprise Server · Suse
10; 11; 11 · source: NVD