SecurityContext

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

IdName
CWE-264—

Known exploited entries

ListAdded dateDue dateRansomware use
vulncheck2018-01-15—no

Hackerone

  • Reports: 1
  • Rank: 5193

References

UrlSourceTags
https://bugs.php.net/bug.php?id=61910nvdVendor Advisory
http://www.kb.cert.org/vuls/id/520827nvdUS Government Resource
https://www.bleepingcomputer.com/news/security/linux-and-windows-servers-targeted-with-rubyminer-malware/vulncheckVulncheck Reported Exploitation
http://eindbazen.net/2012/05/php-cgi-advisory-cve-2012-1823/nvd
http://git.php.net/?p=php-src.git%3Ba=blob%3Bf=sapi/cgi/cgi_main.c%3Bh=a7ac26f0#l1569nvd
http://lists.opensuse.org/opensuse-security-announce/2012-06/msg00004.htmlnvd
http://lists.opensuse.org/opensuse-security-announce/2012-07/msg00003.htmlnvd
http://secunia.com/advisories/49014nvd
http://www.php.net/archive/2012.php#id2012-05-06-1nvd
https://exchange.xforce.ibmcloud.com/vulnerabilities/75652nvd

Products

ProductAffectedPlatform boundSourcesUrl
php:php= 5.4.2, = 5.3.12nonvd/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