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, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more)
ReferencesDLA-1608-1, DLA-1700-1, DLA-2866-1, DSA-4353-1
Debian Bugs913775, 913835, 913836, 914632

Vulnerable and fixed packages

The table below lists information on source packages.

Source PackageReleaseVersionStatus
php7.3 (PTS)buster7.3.31-1~deb10u1fixed
buster (security)7.3.31-1~deb10u5fixed
uw-imap (PTS)buster8:2007f~dfsg-6fixed
sid, trixie, bookworm, bullseye8:2007f~dfsg-7fixed

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

PackageTypeReleaseFixed VersionUrgencyOriginDebian Bugs
php5sourcejessie5.6.39+dfsg-0+deb8u1DLA-1608-1
php5source(unstable)(unfixed)
php7.0sourcestretch7.0.33-0+deb9u1DSA-4353-1
php7.0source(unstable)(unfixed)913836
php7.2source(unstable)(unfixed)913835
php7.3source(unstable)7.3.0-1913775
uw-imapsourcejessie8:2007f~dfsg-4+deb8u1DLA-1700-1
uw-imapsourcestretch8:2007f~dfsg-5+deb9u1DLA-2866-1
uw-imapsource(unstable)8:2007f~dfsg-6914632

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