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 Desktop · Redhat
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
Enterprise Linux Server Aus · Redhat
5.3; 5.6 · source: NVD
EL
Enterprise Linux Workstation · Redhat
5.0; 6.0 · source: NVD
FE
Fedora · Fedoraproject
39; 40 · source: NVD
GS
Gluster Storage Server For On-premise · Redhat
2.0 · source: NVD
HP
Hp-ux · HP
b.11.23; b.11.31 · source: NVD
LE
Linux Enterprise Server · Suse
10; 11; 11 · source: NVD
References
NVD
https://nvd.nist.gov/vuln/detail/CVE-2012-1823
CVE.org
https://www.cve.org/CVERecord?id=CVE-2012-1823
CISA KEV catalogue
https://www.cisa.gov/known-exploited-vulnerabilities-catalog
vendor-advisory
http://marc.info/?l=bugtraq&m=134012830914727&w=2
vendor-advisory
http://lists.opensuse.org/opensuse-security-announce/2012-05/msg00011.html
vdb-entry
http://www.securitytracker.com/id?1027022
vendor-advisory
http://h20000.www2.hp.com/bizsupport/TechSupport/Document.jsp?objectID=c03360041
vendor-advisory
http://www.mandriva.com/security/advisories?name=MDVSA-2012:068
vendor-advisory
http://lists.opensuse.org/opensuse-security-announce/2012-05/msg00002.html
More from PHP
9.8
CVE-2026-109618
RCE via OOM corruption
9.8
CVE-2024-4577
Argument Injection in PHP-CGI
9.8
CVE-2019-11043
Underflow in PHP-FPM can lead to RCE
9.8
CVE-2016-10033
The mailSend function in the isMail transport in PHPMailer before 5.2.18 might allow remote attackers to pass extra parameters to the mail command and consequently execute…
8.1
CVE-2026-109619
RCE via stale global state
