CVE-2012-2335: PHP - Command Injection
- Cve: CVE-2012-2335
- Name: PHP - Command Injection
- Description: php-wrapper.fcgi does not properly handle command-line arguments, which allows remote attackers to bypass a protection mechanism in PHP 5.3.12 and 5.4.2 and execute arbitrary code by leveraging improper interaction between the PHP sapi/cgi/cgi_main.c component and a query string beginning with a +- sequence.
- Impact: Remote attackers can execute arbitrary code on the server, leading to full system compromise.
- Remediation: Update to the latest PHP version where this issue is fixed or apply security patches addressing this vulnerability.
- Vulnerability type: command_injection
- Vulnerability impact: remote_code_execution
- Requirement type: none
- Labels source: projectdiscovery
- Severity: high
- Cvss score: 7.5
- Cvss vector: CVSS:2.0/AV:N/AC:L/Au:N/C:P/I:P/A:P
- Epss score: 0.33672
- Epss percentile: 0.98425
- Assignee: [email protected]
- Published at: 2012-05-11T10:15:48Z
- Age in days: 5310
- Modified at: 2026-06-16T23:41:23Z
- References total: 11
- Products total: 1
- Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2012-2335
- Nvd status: modified
- Checked, none or zero: patch available, nuclei templates, public exploits total, public exploits capped, public exploits, oss, projects total, projects, rejected by nvd
- Not known: requirements
Cwe
| Id | Name |
|---|---|
| CWE-264 | — |
Known exploited entries
| List | Added date | Due date | Ransomware use |
|---|---|---|---|
| vulncheck | 2018-01-15 | — | no |
Hackerone
- Reports: 1
- Rank: 5193
References
Products
| Product | Affected | Platform bound | Sources | Url |
|---|---|---|---|---|
| php:php | = 5.4.2, = 5.3.12 | no | nvd | /v1/products/php/php |
Index
- Checked, none or zero: repositories, repositories high signal, packages
Exploitation
- Known exploited by: vulncheck
- Vulncheck known exploited since: 2018-01-15
- Remote: yes
- Hackerone reports: 1
- Exposed hosts: 6175026
- Checked, none or zero: known exploited, exploitation seen, public exploit, public exploit count, initial access, authentication required
- Not known: known exploited since, public exploit first date, nuclei template, initial access since