sapi/cgi/cgi_main.c in PHP before 5.3.13 and 5.4.x before 5.4.3, when configured as a CGI script (aka php-cgi), does not properly handle query strings that contain a %3D sequence but no = (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. NOTE: this vulnerability exists because of an incomplete fix for CVE-2012-1823.
The product constructs all or part of an SQL command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended SQL command when it is sent to a downstream component.
Name | Vendor | Start Version | End Version |
---|---|---|---|
Php | Php | * | 5.3.12 (including) |
Php | Php | 1.0 (including) | 1.0 (including) |
Php | Php | 2.0 (including) | 2.0 (including) |
Php | Php | 2.0b10 (including) | 2.0b10 (including) |
Php | Php | 3.0 (including) | 3.0 (including) |
Php | Php | 3.0.1 (including) | 3.0.1 (including) |
Php | Php | 3.0.2 (including) | 3.0.2 (including) |
Php | Php | 3.0.3 (including) | 3.0.3 (including) |
Php | Php | 3.0.4 (including) | 3.0.4 (including) |
Php | Php | 3.0.5 (including) | 3.0.5 (including) |
Php | Php | 3.0.6 (including) | 3.0.6 (including) |
Php | Php | 3.0.7 (including) | 3.0.7 (including) |
Php | Php | 3.0.8 (including) | 3.0.8 (including) |
Php | Php | 3.0.9 (including) | 3.0.9 (including) |
Php | Php | 3.0.10 (including) | 3.0.10 (including) |
Php | Php | 3.0.11 (including) | 3.0.11 (including) |
Php | Php | 3.0.12 (including) | 3.0.12 (including) |
Php | Php | 3.0.13 (including) | 3.0.13 (including) |
Php | Php | 3.0.14 (including) | 3.0.14 (including) |
Php | Php | 3.0.15 (including) | 3.0.15 (including) |
Php | Php | 3.0.16 (including) | 3.0.16 (including) |
Php | Php | 3.0.17 (including) | 3.0.17 (including) |
Php | Php | 3.0.18 (including) | 3.0.18 (including) |
Php | Php | 4.0-beta_4_patch1 (including) | 4.0-beta_4_patch1 (including) |
Php | Php | 4.0-beta1 (including) | 4.0-beta1 (including) |
Php | Php | 4.0-beta2 (including) | 4.0-beta2 (including) |
Php | Php | 4.0-beta3 (including) | 4.0-beta3 (including) |
Php | Php | 4.0-beta4 (including) | 4.0-beta4 (including) |
Php | Php | 4.0.0 (including) | 4.0.0 (including) |
Php | Php | 4.0.1 (including) | 4.0.1 (including) |
Php | Php | 4.0.2 (including) | 4.0.2 (including) |
Php | Php | 4.0.3 (including) | 4.0.3 (including) |
Php | Php | 4.0.4 (including) | 4.0.4 (including) |
Php | Php | 4.0.5 (including) | 4.0.5 (including) |
Php | Php | 4.0.6 (including) | 4.0.6 (including) |
Php | Php | 4.0.7 (including) | 4.0.7 (including) |
Php | Php | 4.1.0 (including) | 4.1.0 (including) |
Php | Php | 4.1.1 (including) | 4.1.1 (including) |
Php | Php | 4.1.2 (including) | 4.1.2 (including) |
Php | Php | 4.2.0 (including) | 4.2.0 (including) |
Php | Php | 4.2.1 (including) | 4.2.1 (including) |
Php | Php | 4.2.2 (including) | 4.2.2 (including) |
Php | Php | 4.2.3 (including) | 4.2.3 (including) |
Php | Php | 4.3.0 (including) | 4.3.0 (including) |
Php | Php | 4.3.1 (including) | 4.3.1 (including) |
Php | Php | 4.3.2 (including) | 4.3.2 (including) |
Php | Php | 4.3.3 (including) | 4.3.3 (including) |
Php | Php | 4.3.4 (including) | 4.3.4 (including) |
Php | Php | 4.3.5 (including) | 4.3.5 (including) |
Php | Php | 4.3.6 (including) | 4.3.6 (including) |
Php | Php | 4.3.7 (including) | 4.3.7 (including) |
Php | Php | 4.3.8 (including) | 4.3.8 (including) |
Php | Php | 4.3.9 (including) | 4.3.9 (including) |
Php | Php | 4.3.10 (including) | 4.3.10 (including) |
Php | Php | 4.3.11 (including) | 4.3.11 (including) |
Php | Php | 4.4.0 (including) | 4.4.0 (including) |
Php | Php | 4.4.1 (including) | 4.4.1 (including) |
Php | Php | 4.4.2 (including) | 4.4.2 (including) |
Php | Php | 4.4.3 (including) | 4.4.3 (including) |
Php | Php | 4.4.4 (including) | 4.4.4 (including) |
Php | Php | 4.4.5 (including) | 4.4.5 (including) |
Php | Php | 4.4.6 (including) | 4.4.6 (including) |
Php | Php | 4.4.7 (including) | 4.4.7 (including) |
Php | Php | 4.4.8 (including) | 4.4.8 (including) |
Php | Php | 4.4.9 (including) | 4.4.9 (including) |
Php | Php | 5.0.0 (including) | 5.0.0 (including) |
Php | Php | 5.0.0-beta1 (including) | 5.0.0-beta1 (including) |
Php | Php | 5.0.0-beta2 (including) | 5.0.0-beta2 (including) |
Php | Php | 5.0.0-beta3 (including) | 5.0.0-beta3 (including) |
Php | Php | 5.0.0-beta4 (including) | 5.0.0-beta4 (including) |
Php | Php | 5.0.0-rc1 (including) | 5.0.0-rc1 (including) |
Php | Php | 5.0.0-rc2 (including) | 5.0.0-rc2 (including) |
Php | Php | 5.0.0-rc3 (including) | 5.0.0-rc3 (including) |
Php | Php | 5.0.1 (including) | 5.0.1 (including) |
Php | Php | 5.0.2 (including) | 5.0.2 (including) |
Php | Php | 5.0.3 (including) | 5.0.3 (including) |
Php | Php | 5.0.4 (including) | 5.0.4 (including) |
Php | Php | 5.0.5 (including) | 5.0.5 (including) |
Php | Php | 5.1.0 (including) | 5.1.0 (including) |
Php | Php | 5.1.1 (including) | 5.1.1 (including) |
Php | Php | 5.1.2 (including) | 5.1.2 (including) |
Php | Php | 5.1.3 (including) | 5.1.3 (including) |
Php | Php | 5.1.4 (including) | 5.1.4 (including) |
Php | Php | 5.1.5 (including) | 5.1.5 (including) |
Php | Php | 5.1.6 (including) | 5.1.6 (including) |
Php | Php | 5.2.0 (including) | 5.2.0 (including) |
Php | Php | 5.2.1 (including) | 5.2.1 (including) |
Php | Php | 5.2.2 (including) | 5.2.2 (including) |
Php | Php | 5.2.3 (including) | 5.2.3 (including) |
Php | Php | 5.2.4 (including) | 5.2.4 (including) |
Php | Php | 5.2.5 (including) | 5.2.5 (including) |
Php | Php | 5.2.6 (including) | 5.2.6 (including) |
Php | Php | 5.2.7 (including) | 5.2.7 (including) |
Php | Php | 5.2.8 (including) | 5.2.8 (including) |
Php | Php | 5.2.9 (including) | 5.2.9 (including) |
Php | Php | 5.2.10 (including) | 5.2.10 (including) |
Php | Php | 5.2.11 (including) | 5.2.11 (including) |
Php | Php | 5.2.12 (including) | 5.2.12 (including) |
Php | Php | 5.2.13 (including) | 5.2.13 (including) |
Php | Php | 5.2.14 (including) | 5.2.14 (including) |
Php | Php | 5.2.15 (including) | 5.2.15 (including) |
Php | Php | 5.2.16 (including) | 5.2.16 (including) |
Php | Php | 5.2.17 (including) | 5.2.17 (including) |
Php | Php | 5.3.0 (including) | 5.3.0 (including) |
Php | Php | 5.3.1 (including) | 5.3.1 (including) |
Php | Php | 5.3.2 (including) | 5.3.2 (including) |
Php | Php | 5.3.3 (including) | 5.3.3 (including) |
Php | Php | 5.3.4 (including) | 5.3.4 (including) |
Php | Php | 5.3.5 (including) | 5.3.5 (including) |
Php | Php | 5.3.6 (including) | 5.3.6 (including) |
Php | Php | 5.3.7 (including) | 5.3.7 (including) |
Php | Php | 5.3.8 (including) | 5.3.8 (including) |
Php | Php | 5.3.9 (including) | 5.3.9 (including) |
Php | Php | 5.3.10 (including) | 5.3.10 (including) |
Php | Php | 5.3.11 (including) | 5.3.11 (including) |
Php | Php | 5.4.0 (including) | 5.4.0 (including) |
Php | Php | 5.4.0-beta2 (including) | 5.4.0-beta2 (including) |
Php | Php | 5.4.1 (including) | 5.4.1 (including) |
Php | Php | 5.4.2 (including) | 5.4.2 (including) |
Php5 | Ubuntu | devel | * |
Php5 | Ubuntu | hardy | * |
Php5 | Ubuntu | lucid | * |
Php5 | Ubuntu | natty | * |
Php5 | Ubuntu | oneiric | * |
Php5 | Ubuntu | precise | * |
Without sufficient removal or quoting of SQL syntax in user-controllable inputs, the generated SQL query can cause those inputs to be interpreted as SQL instead of ordinary user data. This can be used to alter query logic to bypass security checks, or to insert additional statements that modify the back-end database, possibly including execution of system commands. SQL injection has become a common issue with database-driven web sites. The flaw is easily detected, and easily exploited, and as such, any site or product package with even a minimal user base is likely to be subject to an attempted attack of this kind. This flaw depends on the fact that SQL makes no real distinction between the control and data planes.