CRITICAL · 9.8

CVE-2012-1823

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 all...

Vulnerability 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 Score

9.8

CRITICAL

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Attack Vector
NETWORK
Attack Complexity
LOW
Privileges Required
NONE
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
HIGH
Integrity
HIGH
Availability
HIGH

Affected Products

VendorProductVersions
PhpPhp< 5.3.12
FedoraprojectFedora39
DebianDebian Linux6.0
HpHp-Uxb.11.23
OpensuseOpensuse11.4
SuseLinux Enterprise Server10
SuseLinux Enterprise Software Development Kit10
AppleMac Os X>= 10.6.8, < 10.7.5
RedhatApplication Stack2.0
RedhatGluster Storage Server For On-Premise2.0
RedhatStorage2.0
RedhatStorage For Public Cloud2.0
RedhatEnterprise Linux Desktop6.0
RedhatEnterprise Linux Eus5.6
RedhatEnterprise Linux Server5.0
RedhatEnterprise Linux Server Aus5.3
RedhatEnterprise Linux Workstation5.0

Related Weaknesses (CWE)

References

FAQ

What is CVE-2012-1823?

CVE-2012-1823 is a vulnerability with a CVSS score of 9.8 (CRITICAL). 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 all...

How severe is CVE-2012-1823?

CVE-2012-1823 has been rated CRITICAL with a CVSS base score of 9.8/10. This is considered a critical vulnerability requiring immediate attention.

Is there a patch for CVE-2012-1823?

Check the references section above for vendor advisories and patch information. Affected products include: Php Php, Fedoraproject Fedora, Debian Debian Linux, Hp Hp-Ux, Opensuse Opensuse.