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 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.
Command Injection
ProviderTypeBase ScoreAtk. VectorAtk. ComplexityPriv. RequiredVector
NISTNIST
9.8 CRITICAL
NETWORK
LOW
NONE
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
certccCNA
---
---
CVEADP
---
---
CISA-ADPADP
9.8 CRITICAL
NETWORK
LOW
NONE
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Base Score
CVSS 3.x
EPSS Score
Percentile: 99%
VendorProductVersion
phpphp
𝑥
< 5.3.12
phpphp
5.4.0 ≤
𝑥
< 5.4.2
debiandebian_linux
6.0
opensuseopensuse
11.4
opensuseopensuse
12.1
applemac_os_x
10.6.8 ≤
𝑥
< 10.7.5
applemac_os_x
10.8.0 ≤
𝑥
< 10.8.2
redhatapplication_stack
2.0
redhatgluster_storage_server_for_on-premise
2.0
redhatstorage
2.0
redhatstorage_for_public_cloud
2.0
redhatenterprise_linux_desktop
6.0
redhatenterprise_linux_eus
5.6
redhatenterprise_linux_eus
6.1
redhatenterprise_linux_eus
6.2
redhatenterprise_linux_server
5.0
redhatenterprise_linux_server
6.0
redhatenterprise_linux_server_aus
5.3
redhatenterprise_linux_server_aus
5.6
redhatenterprise_linux_workstation
5.0
redhatenterprise_linux_workstation
6.0
𝑥
= Vulnerable software versions
Ubuntu logo
Ubuntu Releases
Ubuntu Product
Codename
php5
precise
Fixed 5.3.10-1ubuntu3.1
released
oneiric
Fixed 5.3.6-13ubuntu3.7
released
natty
Fixed 5.3.5-1ubuntu7.8
released
lucid
Fixed 5.3.2-1ubuntu4.15
released
hardy
Fixed 5.2.4-2ubuntu5.24
released
References