Published:2015/07/17  Last Updated:2015/07/17

JVN#73568461
PHP for Windows vulnerable to OS command injection

Overview

PHP for Windows contains an OS command injection vulnerability.

Products Affected

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

Description

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

Impact

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

Solution

Apply the patch
Apply the patch according to the infomration provided by the developer.

References

JPCERT/CC Addendum

Vulnerability Analysis by JPCERT/CC

Analyzed on 2015.07.17 (CVSS Base Metrics)

What is CVSS?

Measures Severity Description
Access Vector(AV) Local (L) Adjacent Network (A) Network (N) A vulnerability exploitable with network access means the vulnerable software is bound to the network stack and the attacker does not require local network access or local access. Such a vulnerability is often termed "remotely exploitable".
Access Complexity(AC) High (H) Medium (M) Low (L) The access conditions are somewhat specialized.
Authentication(Au) Multiple (M) Single (S) None (N) Authentication is not required to exploit the vulnerability.
Confidentiality Impact(C) None (N) Partial (P) Complete (C) There is considerable informational disclosure. Access to some system files is possible, but the attacker does not have control over what is obtained, or the scope of the loss is constrained.
Integrity Impact(I) None (N) Partial (P) Complete (C) Modification of some system files or information is possible, but the attacker does not have control over what can be modified, or the scope of what the attacker can affect is limited.
Availability Impact(A) None (N) Partial (P) Complete (C) There is reduced performance or interruptions in resource availability.

Base Score:6.8

Credit

Masahiro Yamada reported this vulnerability to IPA.
JPCERT/CC coordinated with the developer under Information Security Early Warning Partnership.

Other Information

JPCERT Alert
JPCERT Reports
CERT Advisory
CPNI Advisory
TRnotes
CVE CVE-2015-4642
JVN iPedia JVNDB-2015-000101