PHP for Windows vulnerable to OS command injection


PHP for Windows contains an OS command injection due to a processing flaw in the escapeshellarg function.

Masahiro Yamada reported this vulnerability to IPA.
JPCERT/CC coordinated with the developer under Information Security Early Warning Partnership.
CVSS Severity (What is CVSS?)

CVSS V2 Severity:
Base Metrics 6.8 (Medium) [IPA Score]
  • Access Vector: Network
  • Access Complexity: Medium
  • Authentication: None
  • Confidentiality Impact: Partial
  • Integrity Impact: Partial
  • Availability Impact: Partial
Affected Products

The PHP Group
  • PHP for Windows versions prior to 5.4.42
  • PHP for Windows versions prior to 5.5.26
  • PHP for Windows versions prior to 5.6.10


Specifying a specially crafted parameter in the escapeshellarg function may result in an arbitrary OS command being executed.

[Apply the patch]
Apply the patch according to the infomration provided by the developer.
Vendor Information

The PHP Group Turbolinux, Inc.
CWE (What is CWE?)

  1. OS Command Injection(CWE-78) [IPA Evaluation]
CVE (What is CVE?)

  1. CVE-2015-4642

  1. JVN : JVN#73568461
  2. National Vulnerability Database (NVD) : CVE-2015-4642
  3. IPA SECURITY ALERTS : Security Alert for Vulnerability in PHP for Windows (JVN#73568461) (in Japanese)
Revision History

  • [2015/07/17]
      Web page was published
      References : Content was added
      Vendor Information : Content was added
      References : Content was added
      Vendor Information : Content was added