Name | CVE-2018-19518 |
Description | 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. |
Source | CVE (at NVD; CERT, LWN, oss-sec, fulldisc, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more) |
References | DLA-1608-1, DLA-1700-1, DLA-2866-1, DSA-4353-1, ELA-67-1 |
Debian Bugs | 913775, 913835, 913836, 914632 |
The table below lists information on source packages.
Source Package | Release | Version | Status |
---|---|---|---|
php5 (PTS) | jessie, jessie (lts) | 5.6.40+dfsg-0+deb8u21 | fixed |
php7.0 (PTS) | stretch (security) | 7.0.33-0+deb9u12 | fixed |
stretch (lts), stretch | 7.0.33-0+deb9u19 | fixed | |
php7.3 (PTS) | buster, buster (lts) | 7.3.31-1~deb10u8 | fixed |
buster (security) | 7.3.31-1~deb10u7 | fixed | |
uw-imap (PTS) | jessie, jessie (lts) | 8:2007f~dfsg-4+deb8u1 | fixed |
stretch (security), stretch (lts), stretch | 8:2007f~dfsg-5+deb9u1 | fixed | |
buster, buster (lts) | 8:2007f~dfsg-6+deb10u1 | fixed | |
sid, trixie, bullseye, bookworm | 8:2007f~dfsg-7 | fixed |
The information below is based on the following data on fixed versions.
Package | Type | Release | Fixed Version | Urgency | Origin | Debian Bugs |
---|---|---|---|---|---|---|
php5 | source | wheezy | 5.4.45-0+deb7u17 | ELA-67-1 | ||
php5 | source | jessie | 5.6.39+dfsg-0+deb8u1 | DLA-1608-1 | ||
php5 | source | (unstable) | (unfixed) | |||
php7.0 | source | stretch | 7.0.33-0+deb9u1 | DSA-4353-1 | ||
php7.0 | source | (unstable) | (unfixed) | 913836 | ||
php7.2 | source | (unstable) | (unfixed) | 913835 | ||
php7.3 | source | (unstable) | 7.3.0-1 | 913775 | ||
uw-imap | source | wheezy | (unfixed) | end-of-life | ||
uw-imap | source | jessie | 8:2007f~dfsg-4+deb8u1 | DLA-1700-1 | ||
uw-imap | source | stretch | 8:2007f~dfsg-5+deb9u1 | DLA-2866-1 | ||
uw-imap | source | (unstable) | 8:2007f~dfsg-6 | 914632 |
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