Argument Injection Affecting php package, versions [5.6.0,5.6.39)[7.0.0,7.0.33)[7.1.0,7.1.25)[7.2.0,7.2.13)


Severity

Recommended
0.0
high
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

Exploit Maturity
Mature
EPSS
94.08% (100th 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-2335382
  • published12 Jan 2022
  • disclosed25 Nov 2018
  • creditUnknown

Introduced: 25 Nov 2018

CVE-2018-19518  (opens in a new tab)
CWE-88  (opens in a new tab)

How to fix?

Upgrade php to version 5.6.39, 7.0.33, 7.1.25, 7.2.13 or higher.

Overview

Affected versions of this package are vulnerable to Argument Injection. University of Washington IMAP Toolkit 2007f on UNIX, as used in imap_open() in PHP and other products, launches an rsh command (by means of the imap_rimap function in c-client/imap4r1.c and the tcp_aopen function in osdep/unix/tcp_unix.c) without preventing argument injection, which might allow remote attackers to execute arbitrary OS commands if the IMAP server name is untrusted input (e.g., entered by a user of a web application) and if rsh has been replaced by a program with different argument semantics. For example, if rsh is a link to ssh (as seen on Debian and Ubuntu systems), then the attack can use an IMAP server name containing a "-oProxyCommand" argument.

CVSS Scores

version 3.1