Command Injection Affecting php package, versions [,5.4.42)


Severity

Recommended
0.0
critical
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
5.69% (93rd percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-UNMANAGED-PHP-2335143
  • published12 Jan 2022
  • disclosed16 May 2016
  • creditUnknown

Introduced: 16 May 2016

CVE-2015-4642  (opens in a new tab)
CWE-78  (opens in a new tab)

How to fix?

Upgrade php to version 5.4.42 or higher.

Overview

Affected versions of this package are vulnerable to Command Injection. The 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.

References

CVSS Base Scores

version 3.1