Arbitrary Argument Injection Affecting php70-recode package, versions <0:7.0.33-1.32.amzn1


Severity

Recommended
medium

Based on Amazon Linux security rating.

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-AMZN201803-PHP70RECODE-1716309
  • published27 Sept 2021
  • disclosed25 Nov 2018

Introduced: 25 Nov 2018

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

How to fix?

Upgrade Amazon-Linux:2018.03 php70-recode to version 0:7.0.33-1.32.amzn1 or higher.
This issue was patched in ALAS-2019-1147.

NVD Description

Note: Versions mentioned in the description apply only to the upstream php70-recode package and not the php70-recode package as distributed by Amazon-Linux. See How to fix? for Amazon-Linux:2018.03 relevant fixed versions and status.

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