CVE-2015-4642

Summary

CVECVE-2015-4642
StatePUBLISHED
Assignerredhat
Source PriorityCVE Program / NVD first with legacy fallback
Published2016-05-16 10:59:14 UTC
Updated2026-05-06 22:30:45 UTC
DescriptionThe escapeshellarg function in ext/standard/exec.c in PHP before 5.4.42, 5.5.x before 5.5.26, and 5.6.x before 5.6.10 on Windows allows remote attackers to execute arbitrary OS commands via a crafted string to an application that accepts command-line arguments for a call to the PHP system function.

Risk And Classification

Primary CVSS: v3.0 9.8 CRITICAL from [email protected]

CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Problem Types: CWE-78 | n/a


VersionSourceTypeScoreSeverityVector
3.0[email protected]Primary9.8CRITICALCVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
2.0[email protected]Primary10AV:N/AC:L/Au:N/C:C/I:C/A:C

CVSS v3.0 Breakdown

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

CVSS v2.0 Breakdown

Access Vector
Network
Access Complexity
Low
Authentication
None
Confidentiality
Complete
Integrity
Complete
Availability
Complete

AV:N/AC:L/Au:N/C:C/I:C/A:C

NVD Known Affected Configurations (CPE 2.3)

TypeVendorProductVersionUpdateEditionLanguage
Operating System Microsoft Windows All All All All
Application Php Php 5.5.0 All All All
Application Php Php 5.5.1 All All All
Application Php Php 5.5.10 All All All
Application Php Php 5.5.11 All All All
Application Php Php 5.5.12 All All All
Application Php Php 5.5.13 All All All
Application Php Php 5.5.14 All All All
Application Php Php 5.5.15 All All All
Application Php Php 5.5.16 All All All
Application Php Php 5.5.17 All All All
Application Php Php 5.5.18 All All All
Application Php Php 5.5.19 All All All
Application Php Php 5.5.2 All All All
Application Php Php 5.5.20 All All All
Application Php Php 5.5.21 All All All
Application Php Php 5.5.22 All All All
Application Php Php 5.5.23 All All All
Application Php Php 5.5.24 All All All
Application Php Php 5.5.25 All All All
Application Php Php 5.5.3 All All All
Application Php Php 5.5.4 All All All
Application Php Php 5.5.5 All All All
Application Php Php 5.5.6 All All All
Application Php Php 5.5.7 All All All
Application Php Php 5.5.8 All All All
Application Php Php 5.5.9 All All All
Application Php Php 5.6.0 All All All
Application Php Php 5.6.1 All All All
Application Php Php 5.6.2 All All All
Application Php Php 5.6.3 All All All
Application Php Php 5.6.4 All All All
Application Php Php 5.6.5 All All All
Application Php Php 5.6.6 All All All
Application Php Php 5.6.7 All All All
Application Php Php 5.6.8 All All All
Application Php Php 5.6.9 All All All
Application Php Php All All All All

Vendor Declared Affected Products

SourceVendorProductVersionPlatforms
CNA Na N/a affected n/a Not specified

References

ReferenceSourceLinkTags
PHP: Multiple vulnerabilities (GLSA 201606-10) — Gentoo security af854a3a-2127-422b-91ae-364da2661108 security.gentoo.org
PHP CVE-2015-4642 OS Command Injection Vulnerability af854a3a-2127-422b-91ae-364da2661108 www.securityfocus.com
PHP Multiple Bugs Let Remote Users Deny Service and Execute Arbitrary Code - SecurityTracker af854a3a-2127-422b-91ae-364da2661108 www.securitytracker.com
208.43.231.11 Git - php-src.git/commit af854a3a-2127-422b-91ae-364da2661108 git.php.net
PHP :: Sec Bug #69646 :: OS command injection vulnerability in escapeshellarg af854a3a-2127-422b-91ae-364da2661108 bugs.php.net Exploit
PHP: PHP 5 ChangeLog af854a3a-2127-422b-91ae-364da2661108 php.net
oss-security - Re: PHP 5.6.10 / 5.5.26 / 5.4.42 CVE request af854a3a-2127-422b-91ae-364da2661108 openwall.com
208.43.231.11 Git - php-src.git/commit MITRE git.php.net
CVE Program record CVE.ORG www.cve.org canonical
NVD vulnerability detail NVD nvd.nist.gov canonical, analysis

© CVE.report 2026

Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. It is the responsibility of user to evaluate the accuracy, completeness or usefulness of any information, opinion, advice or other content. EACH USER WILL BE SOLELY RESPONSIBLE FOR ANY consequences of his or her direct or indirect use of this web site. ALL WARRANTIES OF ANY KIND ARE EXPRESSLY DISCLAIMED. This site will NOT BE LIABLE FOR ANY DIRECT, INDIRECT or any other kind of loss.

CVE, CWE, and OVAL are registred trademarks of The MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. This site includes MITRE data granted under the following license.

Free CVE JSON API cve.report/api

CVE.report and Source URL Uptime Status status.cve.report