CVE-2012-1823
- State
- Published
- Severity
- 9.8 Critical
- Published
- May 11, 2012
- Updated
- Nov 4, 2025
- Reserved
- Mar 21, 2012
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.
Scores
| CVSS | Score | Vector | Source |
|---|---|---|---|
| 3.1 | 9.8 Critical | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H | CISA-ADP |
Weaknesses
- CWE-77 Improper Neutralization of Special Elements used in a Command ('Command Injection')
Affected Products
| Product | Versions |
|---|---|
n/an/a |
|
References
- SSRT100856vendor-advisory
- SUSE-SU-2012:0604vendor-advisory
- 1027022vdb-entry
- HPSBMU02786vendor-advisory
- MDVSA-2012:068vendor-advisory
- openSUSE-SU-2012:0590vendor-advisory
- RHSA-2012:0546vendor-advisory
- RHSA-2012:0568vendor-advisory
- RHSA-2012:0569vendor-advisory
- http://www.php.net/ChangeLog-5.php#5.4.2
- 49014third-party-advisory
- RHSA-2012:0570vendor-advisory
- SUSE-SU-2012:0598vendor-advisory
- https://bugs.php.net/bug.php?id=61910
- VU#673343third-party-advisory
- RHSA-2012:0547vendor-advisory
- APPLE-SA-2012-09-19-2vendor-advisory
- http://support.apple.com/kb/HT5501
- http://eindbazen.net/2012/05/php-cgi-advisory-cve-2012-1823/
- 49065third-party-advisory
- VU#520827third-party-advisory
- https://bugs.php.net/patch-display.php?bug_id=61910&patch=cgi.diff&revision=1335984315&display=1
- DSA-2465vendor-advisory
- 49085third-party-advisory
- http://www.php.net/archive/2012.php#id2012-05-03-1
- 49087third-party-advisory
- [oss-security] 20240606 PHP security releases 8.3.8, 8.2.20, and 8.1.29mailing-list
- FEDORA-2024-49aba7b305vendor-advisory
- FEDORA-2024-52c23ef1ecvendor-advisory
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/PKGTQUOA2NTZ3RXN22CSAUJPIRUYRB4B/
- https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2012-1823government-resource
Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.