CVE-2012-1823
PHP-CGI Query String Parameter Vulnerability
- Critical 9.8
- Exploited: added to CISA KEV 25 Mar 2022
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.
Key facts
- Published
- 11 May 2012
- Last changed
- 4 Nov 2025
- Assigned by
- certcc
- KEV added
- 25 Mar 2022
- KEV fix due
- 15 Apr 2022
- EPSS
- 99.998% likely to be exploited in the next 30 days, higher than 99.99% of CVEs (scores for 15 Nov 2026)
- SSVC (CISA)
- Exploitation: active; Automatable: yes; Technical impact: total
Severity scores
Each score is shown as its source gave it. They are not averaged or merged.
- 9.8CVSS 3.1, Criticalfrom CISA (ADP container)
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
What to do
- Apply updates per vendor instructions.CISA KEV required action
Historical context and remediation
This reference retains the original CVE publication date. A recent record update does not mean a new attack occurred.
No separately sourced impact summary is available on this page yet. Consult the description, version data and dated exploitation evidence.
Version statuses below come from the CNA. An “unaffected” version is not necessarily a currently supported release or proof of a patch date. EPSS is a dated risk estimate, not a count of historical attacks.
Affected products
| Vendor | Product | Versions |
|---|---|---|
| n/a | n/a |
|
Timeline
- 11 May 2012 Published
- 25 Mar 2022 CVE-2012-1823 added to CISA KEV
- 25 Mar 2022 Added to the CISA KEV catalogue
Weakness
References
- SSRT100856
- SUSE-SU-2012:0604
- 1027022
- HPSBMU02786
- MDVSA-2012:068
- openSUSE-SU-2012:0590
- RHSA-2012:0546
- RHSA-2012:0568
- RHSA-2012:0569
- www.php.net
- 49014
- RHSA-2012:0570
- SUSE-SU-2012:0598
- bugs.php.net
- VU#673343
- RHSA-2012:0547
- APPLE-SA-2012-09-19-2
- support.apple.com
- eindbazen.net
- 49065
- VU#520827
- bugs.php.net
- SSRT100877
- HPSBUX02791
- DSA-2465
- 49085
- www.php.net
- 49087
- [oss-security] 20240606 PHP security releases 8.3.8, 8.2.20, and 8.1.29
- FEDORA-2024-49aba7b305
- FEDORA-2024-52c23ef1ec