CVE-2012-1823

Summary

CVECVE-2012-1823
StatePUBLISHED
Assignercertcc
Source PriorityCVE Program / NVD first with legacy fallback
Published2012-05-11 10:15:48 UTC
Updated2026-04-21 20:28:53 UTC
Descriptionsapi/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.

Risk And Classification

Primary CVSS: v3.1 9.8 CRITICAL from ADP

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

EPSS: 0.999980000 probability, percentile 0.999890000 (date 2026-07-22)

CISA KEV: Listed on 2022-03-25; due 2022-04-15; ransomware use Unknown

Problem Types: CWE-77 | n/a | CWE-77 CWE-77 Improper Neutralization of Special Elements used in a Command ('Command Injection')


VersionSourceTypeScoreSeverityVector
3.1ADPDECLARED9.8CRITICALCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
3.1134c704f-9b21-4f2e-91b3-4a467353bcc0Secondary9.8CRITICALCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
2.0[email protected]Primary7.5AV:N/AC:L/Au:N/C:P/I:P/A:P

CVSS v3.1 Breakdown

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

CVSS v2.0 Breakdown

Access Vector
Network
Access Complexity
Low
Authentication
None
Confidentiality
Partial
Integrity
Partial
Availability
Partial

AV:N/AC:L/Au:N/C:P/I:P/A:P

CISA Known Exploited Vulnerability

VendorPHP
ProductPHP
NamePHP-CGI Query String Parameter Vulnerability
Required ActionApply updates per vendor instructions.
Noteshttps://nvd.nist.gov/vuln/detail/CVE-2012-1823

NVD Known Affected Configurations (CPE 2.3)

TypeVendorProductVersionUpdateEditionLanguage
Application Php Php All All All All

Vendor Declared Affected Products

SourceVendorProductVersionPlatforms
CNA Na N/a affected n/a Not specified

References

ReferenceSourceLinkTags
www.cisa.gov/known-exploited-vulnerabilities-catalog 134c704f-9b21-4f2e-91b3-4a467353bcc0 www.cisa.gov US Government Resource
Vulnerability Note VU#673343 - Parallels Plesk Panel phppath/php vulnerability af854a3a-2127-422b-91ae-364da2661108 www.kb.cert.org Third Party Advisory, US Government Resource
Red Hat Customer Portal af854a3a-2127-422b-91ae-364da2661108 rhn.redhat.com Third Party Advisory
HPSBMU02786 SSRT100877 rev.2 - HP System Management Homepage (SMH) Running on Linux, Windows, and VMware ESX, Remote Unauthorized Access, Disclosure of Information, Data Modification, Denial of Service (DoS), Execution of Arbitrary Code - c03360041 - HP Business Support Center af854a3a-2127-422b-91ae-364da2661108 h20000.www2.hp.com Broken Link
About Secunia Research | Flexera af854a3a-2127-422b-91ae-364da2661108 secunia.com Broken Link
lists.fedoraproject.org/archives/list/[email protected]/messag... af854a3a-2127-422b-91ae-364da2661108 lists.fedoraproject.org Mailing List, Release Notes
PHP: News Archive - 2012 af854a3a-2127-422b-91ae-364da2661108 www.php.net Release Notes
Security Alerts - Secunia af854a3a-2127-422b-91ae-364da2661108 secunia.com Broken Link
DE EINDBAZEN » Eindbazen PHP-CGI advisory (CVE-2012-1823) af854a3a-2127-422b-91ae-364da2661108 eindbazen.net Broken Link, Exploit
Debian -- Security Information -- DSA-2465-1 php5 af854a3a-2127-422b-91ae-364da2661108 www.debian.org Third Party Advisory
Red Hat Customer Portal af854a3a-2127-422b-91ae-364da2661108 rhn.redhat.com Third Party Advisory
About Secunia Research | Flexera af854a3a-2127-422b-91ae-364da2661108 secunia.com Broken Link
PHP :: Sec Bug #61910 :: VU#520827 - PHP-CGI query string parameter vulnerability af854a3a-2127-422b-91ae-364da2661108 bugs.php.net Exploit, Patch
Red Hat Customer Portal af854a3a-2127-422b-91ae-364da2661108 rhn.redhat.com Third Party Advisory
Support / Security / Advisories / / MDVSA-2012:068 | Mandriva af854a3a-2127-422b-91ae-364da2661108 www.mandriva.com Broken Link
[security-announce] openSUSE-SU-2012:0590-1: critical: update for php5 af854a3a-2127-422b-91ae-364da2661108 lists.opensuse.org Mailing List, Third Party Advisory
About the security content of OS X Mountain Lion v10.8.2, OS X Lion v10.7.5 and Security Update 2012-004 af854a3a-2127-422b-91ae-364da2661108 support.apple.com Third Party Advisory
[security-announce] SUSE-SU-2012:0604-1: critical: Security update for P af854a3a-2127-422b-91ae-364da2661108 lists.opensuse.org Mailing List, Third Party Advisory
PHP :: Bug #61910 :: Patches af854a3a-2127-422b-91ae-364da2661108 bugs.php.net Patch
Red Hat Customer Portal af854a3a-2127-422b-91ae-364da2661108 rhn.redhat.com Third Party Advisory
lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/mess... af854a3a-2127-422b-91ae-364da2661108 lists.fedoraproject.org Mailing List, Release Notes
lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/mess... af854a3a-2127-422b-91ae-364da2661108 lists.fedoraproject.org Mailing List, Release Notes
'[security bulletin] HPSBUX02791 SSRT100856 rev.1 - HP-UX Apache Web Server running PHP, Remote Execu' - MARC af854a3a-2127-422b-91ae-364da2661108 marc.info Mailing List
Red Hat Customer Portal af854a3a-2127-422b-91ae-364da2661108 rhn.redhat.com Third Party Advisory
PHP Command Parameter Bug Lets Remote Users Obtain Potentially Sensitive Information and Execute Arbitrary Code - SecurityTracker af854a3a-2127-422b-91ae-364da2661108 www.securitytracker.com Broken Link, Third Party Advisory, VDB Entry
PHP: PHP 5 ChangeLog af854a3a-2127-422b-91ae-364da2661108 www.php.net Exploit, Patch, Release Notes
[security-announce] SUSE-SU-2012:0598-1: critical: Security update for P af854a3a-2127-422b-91ae-364da2661108 lists.opensuse.org Mailing List, Third Party Advisory
Vulnerability Note VU#520827 - PHP-CGI query string parameter vulnerability af854a3a-2127-422b-91ae-364da2661108 www.kb.cert.org Exploit, Third Party Advisory, US Government Resource
Security Alerts - Secunia af854a3a-2127-422b-91ae-364da2661108 secunia.com Broken Link
www.openwall.com/lists/oss-security/2024/06/07/1 af854a3a-2127-422b-91ae-364da2661108 www.openwall.com Mailing List
APPLE-SA-2012-09-19-2 OS X Mountain Lion v10.8.2, OS X Lion v10.7.5 and Security Update 2012-004 af854a3a-2127-422b-91ae-364da2661108 lists.apple.com Mailing List, Third Party Advisory
CVE Program record CVE.ORG www.cve.org canonical
NVD vulnerability detail NVD nvd.nist.gov canonical, analysis
CISA Known Exploited Vulnerabilities catalog CISA www.cisa.gov kev

Additional Advisory Data

SourceTimeEvent
ADP2022-03-25T00:00:00.000ZCVE-2012-1823 added to CISA KEV

© CVE.report 2026

Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. It is the responsibility of user to evaluate the accuracy, completeness or usefulness of any information, opinion, advice or other content. EACH USER WILL BE SOLELY RESPONSIBLE FOR ANY consequences of his or her direct or indirect use of this web site. ALL WARRANTIES OF ANY KIND ARE EXPRESSLY DISCLAIMED. This site will NOT BE LIABLE FOR ANY DIRECT, INDIRECT or any other kind of loss.

CVE, CWE, and OVAL are registred trademarks of The MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. This site includes MITRE data granted under the following license.

Free CVE JSON API cve.report/api

CVE.report and Source URL Uptime Status status.cve.report