{"id":"CVE-2018-19518","url":"https://www.cyber-defence.io/tools/cve/CVE-2018-19518","generatedAt":"2026-10-29T03:02:41.213Z","title":"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…","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.","published":"2018-11-25T10:29:00.000Z","lastModified":"2026-06-17T01:49:26.000Z","status":"Modified","sourceIdentifier":"cve@mitre.org","cvss":{"version":"3.1","score":7.5,"severity":"HIGH","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H"},"cwe":["CWE-88"],"affected":["php/php","debian/debian linux","uw-imap project/uw-imap","canonical/ubuntu linux"],"epss":{"score":0.96107,"percentile":0.99876,"date":"2026-10-27","history":[]},"kev":{"listed":false},"exploits":{"count":1,"verified":true,"firstPublished":"2018-11-29","source":"Exploit-DB (https://gitlab.com/exploit-database/exploitdb)","entries":[{"edbId":45914,"kind":"exploit","title":"PHP imap_open - Remote Code Execution (Metasploit)","url":"https://www.exploit-db.com/exploits/45914","sourceUrl":"https://gitlab.com/exploit-database/exploitdb/-/blob/main/exploits/linux/remote/45914.rb","file":"exploits/linux/remote/45914.rb","published":"2018-11-29","added":"2018-11-29","updated":"2018-11-29","author":"Metasploit","type":"remote","platform":"linux","port":null,"verified":true,"codes":["CVE-2018-19518"],"tags":"Remote","aliases":null,"applicationUrl":null,"screenshotUrl":null,"referenceUrl":"https://raw.githubusercontent.com/rapid7/metasploit-framework/b3ad4a03581f53c670d91e82d2a4ef00ec392f8f/modules/exploits/linux/http/php_imap_open_rce.rb"}]},"verdict":{"level":"urgent","text":"EPSS puts the probability of exploitation in the next 30 days at 96.1%, higher than 100% of all known CVEs. Patch or mitigate before the next change window."},"changes":[],"references":[{"url":"http://www.securityfocus.com/bid/106018","tags":["Broken Link"],"source":"cve@mitre.org"},{"url":"http://www.securitytracker.com/id/1042157","tags":["Broken Link"],"source":"cve@mitre.org"},{"url":"https://antichat.com/threads/463395/#post-4254681","tags":["Exploit","Third Party Advisory"],"source":"cve@mitre.org"},{"url":"https://bugs.debian.org/913775","tags":["Mailing List","Third Party Advisory"],"source":"cve@mitre.org"},{"url":"https://bugs.debian.org/913835","tags":["Mailing List","Third Party Advisory"],"source":"cve@mitre.org"},{"url":"https://bugs.debian.org/913836","tags":["Mailing List","Third Party Advisory"],"source":"cve@mitre.org"},{"url":"https://bugs.php.net/bug.php?id=76428","tags":["Exploit","Mailing List","Vendor Advisory"],"source":"cve@mitre.org"},{"url":"https://bugs.php.net/bug.php?id=77153","tags":["Exploit","Mailing List","Vendor Advisory"],"source":"cve@mitre.org"},{"url":"https://bugs.php.net/bug.php?id=77160","tags":["Vendor Advisory"],"source":"cve@mitre.org"},{"url":"https://git.php.net/?p=php-src.git%3Ba=commit%3Bh=e5bfea64c81ae34816479bb05d17cdffe45adddb","source":"cve@mitre.org"},{"url":"https://github.com/Bo0oM/PHP_imap_open_exploit/blob/master/exploit.php","tags":["Exploit","Third Party Advisory"],"source":"cve@mitre.org"},{"url":"https://lists.debian.org/debian-lts-announce/2018/12/msg00006.html","tags":["Mailing List","Third Party Advisory"],"source":"cve@mitre.org"},{"url":"https://lists.debian.org/debian-lts-announce/2019/03/msg00001.html","tags":["Mailing List","Third Party Advisory"],"source":"cve@mitre.org"},{"url":"https://lists.debian.org/debian-lts-announce/2021/12/msg00031.html","tags":["Mailing List","Third Party Advisory"],"source":"cve@mitre.org"},{"url":"https://security.gentoo.org/glsa/202003-57","tags":["Third Party Advisory"],"source":"cve@mitre.org"},{"url":"https://security.netapp.com/advisory/ntap-20181221-0004/","tags":["Third Party Advisory"],"source":"cve@mitre.org"},{"url":"https://usn.ubuntu.com/4160-1/","tags":["Third Party Advisory"],"source":"cve@mitre.org"},{"url":"https://www.debian.org/security/2018/dsa-4353","tags":["Third Party Advisory"],"source":"cve@mitre.org"},{"url":"https://www.exploit-db.com/exploits/45914/","tags":["Exploit","Third Party Advisory","VDB Entry"],"source":"cve@mitre.org"},{"url":"https://www.openwall.com/lists/oss-security/2018/11/22/3","tags":["Exploit","Mailing List","Third Party Advisory"],"source":"cve@mitre.org"},{"url":"http://www.securityfocus.com/bid/106018","tags":["Broken Link"],"source":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"http://www.securitytracker.com/id/1042157","tags":["Broken Link"],"source":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"https://antichat.com/threads/463395/#post-4254681","tags":["Exploit","Third Party Advisory"],"source":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"https://bugs.debian.org/913775","tags":["Mailing List","Third Party Advisory"],"source":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"https://bugs.debian.org/913835","tags":["Mailing List","Third Party Advisory"],"source":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"https://bugs.debian.org/913836","tags":["Mailing List","Third Party Advisory"],"source":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"https://bugs.php.net/bug.php?id=76428","tags":["Exploit","Mailing List","Vendor Advisory"],"source":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"https://bugs.php.net/bug.php?id=77153","tags":["Exploit","Mailing List","Vendor Advisory"],"source":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"https://bugs.php.net/bug.php?id=77160","tags":["Vendor Advisory"],"source":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"https://git.php.net/?p=php-src.git%3Ba=commit%3Bh=e5bfea64c81ae34816479bb05d17cdffe45adddb","source":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"https://github.com/Bo0oM/PHP_imap_open_exploit/blob/master/exploit.php","tags":["Exploit","Third Party Advisory"],"source":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"https://lists.debian.org/debian-lts-announce/2018/12/msg00006.html","tags":["Mailing List","Third Party Advisory"],"source":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"https://lists.debian.org/debian-lts-announce/2019/03/msg00001.html","tags":["Mailing List","Third Party Advisory"],"source":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"https://lists.debian.org/debian-lts-announce/2021/12/msg00031.html","tags":["Mailing List","Third Party Advisory"],"source":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"https://security.gentoo.org/glsa/202003-57","tags":["Third Party Advisory"],"source":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"https://security.netapp.com/advisory/ntap-20181221-0004/","tags":["Third Party Advisory"],"source":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"https://usn.ubuntu.com/4160-1/","tags":["Third Party Advisory"],"source":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"https://www.debian.org/security/2018/dsa-4353","tags":["Third Party Advisory"],"source":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"https://www.exploit-db.com/exploits/45914/","tags":["Exploit","Third Party Advisory","VDB Entry"],"source":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"https://www.openwall.com/lists/oss-security/2018/11/22/3","tags":["Exploit","Mailing List","Third Party Advisory"],"source":"af854a3a-2127-422b-91ae-364da2661108"}],"sources":{"nvd":"https://nvd.nist.gov/vuln/detail/CVE-2018-19518","epss":"https://www.first.org/epss/","kev":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","exploitdb":"https://www.exploit-db.com/"},"licence":"CC BY 4.0 — link back to the CVE Explorer if you publish the results; upstream data remains subject to its own terms."}