CVE-2018-19518

NameCVE-2018-19518
DescriptionUniversity 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.
SourceCVE (at NVD; CERT, LWN, oss-sec, fulldisc, bugtraq, EDB, Metasploit, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, Mageia, GitHub code/issues, web search, more)
ReferencesDSA-4353-1
Debian Bugs913775, 913835, 913836, 914632

Vulnerable and fixed packages

The table below lists information on source packages.

Source PackageReleaseVersionStatus
php5 (PTS)jessie5.6.33+dfsg-0+deb8u1vulnerable
jessie (security)5.6.38+dfsg-0+deb8u1vulnerable
php7.0 (PTS)stretch7.0.30-0+deb9u1vulnerable
stretch (security)7.0.33-0+deb9u1fixed
php7.3 (PTS)buster, sid7.3.0-1fixed
uw-imap (PTS)jessie8:2007f~dfsg-4vulnerable
buster, stretch, sid8:2007f~dfsg-5vulnerable

The information below is based on the following data on fixed versions.

PackageTypeReleaseFixed VersionUrgencyOriginDebian Bugs
php5source(unstable)(unfixed)
php7.0source(unstable)(unfixed)913836
php7.0sourcestretch7.0.33-0+deb9u1DSA-4353-1
php7.2source(unstable)(unfixed)913835
php7.3source(unstable)7.3.0-1913775
uw-imapsource(unstable)(unfixed)914632

Notes

Fixed in 5.6.39, 7.0.33, 7.1.25, 7.2.13, 7.3.0
PHP Bug: https://bugs.php.net/bug.php?id=76428
PHP Bug: https://bugs.php.net/bug.php?id=77153
PHP Bug: https://bugs.php.net/bug.php?id=77160
https://www.openwall.com/lists/oss-security/2018/11/22/3
https://git.php.net/?p=php-src.git;a=commit;h=e5bfea64c81ae34816479bb05d17cdffe45adddb

Search for package or bug name: Reporting problems