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.
References
Configurations
Configuration 1 (hide)
|
Configuration 2 (hide)
|
Configuration 3 (hide)
|
Configuration 4 (hide)
|
Configuration 5 (hide)
|
Configuration 6 (hide)
|
Configuration 7 (hide)
|
History
04 Nov 2025, 18:15
| Type | Values Removed | Values Added |
|---|---|---|
| References |
|
Information
Published : 2012-05-11 10:15
Updated : 2025-11-04 18:15
NVD link : CVE-2012-1823
Mitre link : CVE-2012-1823
CVE.ORG link : CVE-2012-1823
JSON object : View
Products Affected
redhat
- gluster_storage_server_for_on-premise
- enterprise_linux_desktop
- storage
- application_stack
- storage_for_public_cloud
- enterprise_linux_eus
- enterprise_linux_server_aus
- enterprise_linux_server
- enterprise_linux_workstation
apple
- mac_os_x
debian
- debian_linux
opensuse
- opensuse
suse
- linux_enterprise_software_development_kit
- linux_enterprise_server
hp
- hp-ux
fedoraproject
- fedora
php
- php
CWE
CWE-77
Improper Neutralization of Special Elements used in a Command ('Command Injection')
