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)
ReferencesDLA-1608-1, DLA-1700-1, DSA-4353-1
NVD severityhigh (attack range: remote)
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.40+dfsg-0+deb8u4fixed
php7.0 (PTS)stretch (security), stretch7.0.33-0+deb9u3fixed
php7.3 (PTS)bullseye, buster7.3.4-2fixed
sid7.3.6-1fixed
uw-imap (PTS)jessie8:2007f~dfsg-4vulnerable
jessie (security)8:2007f~dfsg-4+deb8u1fixed
stretch8:2007f~dfsg-5vulnerable
bullseye, sid, buster8:2007f~dfsg-6fixed

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

PackageTypeReleaseFixed VersionUrgencyOriginDebian Bugs
php5source(unstable)(unfixed)high
php5sourcejessie5.6.39+dfsg-0+deb8u1highDLA-1608-1
php7.0source(unstable)(unfixed)high913836
php7.0sourcestretch7.0.33-0+deb9u1highDSA-4353-1
php7.2source(unstable)(unfixed)high913835
php7.3source(unstable)7.3.0-1high913775
uw-imapsource(unstable)8:2007f~dfsg-6high914632
uw-imapsourcejessie8:2007f~dfsg-4+deb8u1highDLA-1700-1

Notes

[stretch] - uw-imap <no-dsa> (Minor issue)
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