Vulnerability 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.
CVSS Score
HIGH
Affected Products
| Vendor | Product | Versions |
|---|---|---|
| Php | Php | >= 5.6.0, <= 5.6.38 |
| Debian | Debian Linux | 8.0 |
| Uw-Imap Project | Uw-Imap | 2007f |
| Canonical | Ubuntu Linux | 16.04 |
Related Weaknesses (CWE)
References
- http://www.securityfocus.com/bid/106018Broken Link
- http://www.securitytracker.com/id/1042157Broken Link
- https://antichat.com/threads/463395/#post-4254681ExploitThird Party Advisory
- https://bugs.debian.org/913775Mailing ListThird Party Advisory
- https://bugs.debian.org/913835Mailing ListThird Party Advisory
- https://bugs.debian.org/913836Mailing ListThird Party Advisory
- https://bugs.php.net/bug.php?id=76428ExploitMailing ListVendor Advisory
- https://bugs.php.net/bug.php?id=77153ExploitMailing ListVendor Advisory
- https://bugs.php.net/bug.php?id=77160Vendor Advisory
- https://git.php.net/?p=php-src.git%3Ba=commit%3Bh=e5bfea64c81ae34816479bb05d17cd
- https://github.com/Bo0oM/PHP_imap_open_exploit/blob/master/exploit.phpExploitThird Party Advisory
- https://lists.debian.org/debian-lts-announce/2018/12/msg00006.htmlMailing ListThird Party Advisory
- https://lists.debian.org/debian-lts-announce/2019/03/msg00001.htmlMailing ListThird Party Advisory
- https://lists.debian.org/debian-lts-announce/2021/12/msg00031.htmlMailing ListThird Party Advisory
- https://security.gentoo.org/glsa/202003-57Third Party Advisory
FAQ
What is CVE-2018-19518?
CVE-2018-19518 is a vulnerability with a CVSS score of 7.5 (HIGH). 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_ao...
How severe is CVE-2018-19518?
CVE-2018-19518 has been rated HIGH with a CVSS base score of 7.5/10. Review the CVSS metrics above for detailed severity breakdown.
Is there a patch for CVE-2018-19518?
Check the references section above for vendor advisories and patch information. Affected products include: Php Php, Debian Debian Linux, Uw-Imap Project Uw-Imap, Canonical Ubuntu Linux.