{"id":"CVE-2018-19518","published":"2018-11-25T10:00:00Z","modified":"2024-08-05T11:37:11Z","title":"University of Washington IMAP Toolkit 2007f on UNIX, as used in imap_open() in PHP and other products, launches an rsh…","vendor":null,"product":null,"tier":"core","eol":null,"description":{"text":"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.","provenance":"source","from":"CVE.org"},"summary":{"text":"The University of Washington IMAP Toolkit 2007f, on UNIX, as used by imap_open() in PHP and other products, launches an rsh command via the imap_rimap and tcp_aopen functions without preventing argument injection. An attacker who can supply the IMAP server name (for example, a user of a web application that passes it through) can execute arbitrary OS commands remotely, provided rsh has been replaced by a program with different argument semantics, such as ssh, where an IMAP server name containing a \"-oProxyCommand\" argument is enough.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-10-29T07:15:20Z"},"cvss":null,"epss":{"score":0.96107,"percentile":0.99877,"date":"2026-11-01","provenance":"source"},"kev":null,"vulncheckKev":{"dateAdded":"2023-02-14","exploitedFirstSeen":"2023-02-14","ransomware":true,"evidence":[{"url":"https://info.securin.io/hubfs/Securin%20Ransomware%20Report%202023.pdf","date":"2023-02-14"}],"evidenceTotal":1,"provenance":"source"},"exploited":true,"otx":{"pulseCount":2,"pulses":[{"name":"Midwest Malware","url":"https://otx.alienvault.com/pulse/6a8e6c8dc6d3df83aac08378","created":"2026-08-26"},{"name":"Internal CVE Research","url":"https://otx.alienvault.com/pulse/6228b4f0b2d5ade72cc7a0ea","created":"2022-03-09"}],"provenance":"machine"},"cwes":[],"references":[{"url":"https://bugs.php.net/bug.php?id=77160","tags":["x_refsource_MISC"]},{"url":"https://www.exploit-db.com/exploits/45914/","tags":["exploit","x_refsource_EXPLOIT-DB"]},{"url":"https://lists.debian.org/debian-lts-announce/2019/03/msg00001.html","tags":["mailing-list","x_refsource_MLIST"]},{"url":"https://security.netapp.com/advisory/ntap-20181221-0004/","tags":["x_refsource_CONFIRM"]},{"url":"http://www.securitytracker.com/id/1042157","tags":["vdb-entry","x_refsource_SECTRACK"]},{"url":"https://www.debian.org/security/2018/dsa-4353","tags":["vendor-advisory","x_refsource_DEBIAN"]},{"url":"https://github.com/Bo0oM/PHP_imap_open_exploit/blob/master/exploit.php","tags":["x_refsource_MISC"]},{"url":"https://bugs.debian.org/913835","tags":["x_refsource_MISC"]},{"url":"https://www.openwall.com/lists/oss-security/2018/11/22/3","tags":["x_refsource_MISC"]},{"url":"https://git.php.net/?p=php-src.git%3Ba=commit%3Bh=e5bfea64c81ae34816479bb05d17cdffe45adddb","tags":["x_refsource_CONFIRM"]},{"url":"http://www.securityfocus.com/bid/106018","tags":["vdb-entry","x_refsource_BID"]},{"url":"https://bugs.php.net/bug.php?id=76428","tags":["x_refsource_MISC"]},{"url":"https://bugs.debian.org/913775","tags":["x_refsource_MISC"]},{"url":"https://bugs.debian.org/913836","tags":["x_refsource_MISC"]},{"url":"https://antichat.com/threads/463395/#post-4254681","tags":["x_refsource_MISC"]},{"url":"https://bugs.php.net/bug.php?id=77153","tags":["x_refsource_MISC"]},{"url":"https://lists.debian.org/debian-lts-announce/2018/12/msg00006.html","tags":["mailing-list","x_refsource_MLIST"]},{"url":"https://usn.ubuntu.com/4160-1/","tags":["vendor-advisory","x_refsource_UBUNTU"]},{"url":"https://security.gentoo.org/glsa/202003-57","tags":["vendor-advisory","x_refsource_GENTOO"]},{"url":"https://lists.debian.org/debian-lts-announce/2021/12/msg00031.html","tags":["mailing-list","x_refsource_MLIST"]}],"techniques":[],"reports":[],"affected":[],"advisories":[],"euvd":{"id":"EUVD-2018-11207","url":"https://euvd.enisa.europa.eu/vulnerability/EUVD-2018-11207","exploited":false,"exploitedSince":null,"provenance":"source"},"exploits":[{"id":45914,"url":"https://www.exploit-db.com/exploits/45914","title":"PHP imap_open - Remote Code Execution (Metasploit)","type":"remote","platform":"linux","date":"2018-11-29","verified":true,"provenance":"source"},{"id":45914,"url":"https://www.exploit-db.com/exploits/45914","title":"PHP imap_open - Remote Code Execution (Metasploit)","type":"remote","platform":"linux","date":"2018-11-29","verified":true,"provenance":"source"}],"exploitSources":{"exploitdb":{"count":2,"earliest":"2018-11-29"},"pocGithub":{"count":2,"skipped":0,"earliest":"2018-12-31","earliestUrl":"https://github.com/ensimag-security/CVE-2018-19518","repos":[{"name":"houqe/EXP_CVE-2018-19518","url":"https://github.com/houqe/EXP_CVE-2018-19518","stars":4,"created":"2023-04-15"},{"name":"ensimag-security/CVE-2018-19518","url":"https://github.com/ensimag-security/CVE-2018-19518","stars":0,"created":"2018-12-31"}]},"metasploit":[{"name":"php imap_open Remote Code Execution","module":"exploit/linux/http/php_imap_open_rce","type":"exploit","disclosureDate":"2018-10-23","url":"https://github.com/rapid7/metasploit-framework/blob/master/modules/exploits/linux/http/php_imap_open_rce.rb"}],"first":{"date":"2018-10-23","source":"Metasploit","url":"https://github.com/rapid7/metasploit-framework/blob/master/modules/exploits/linux/http/php_imap_open_rce.rb"},"provenance":"source"},"exploitRefs":["https://www.exploit-db.com/exploits/45914/","https://github.com/Bo0oM/PHP_imap_open_exploit/blob/master/exploit.php"],"flow":[],"timeline":[{"date":"2018-10-23","kind":"exploit-public","label":"First public exploit: Metasploit; later: Exploit-DB 2018-11-29, PoC-in-GitHub 2018-12-31","url":"https://github.com/rapid7/metasploit-framework/blob/master/modules/exploits/linux/http/php_imap_open_rce.rb","provenance":"source"},{"date":"2018-11-25","kind":"published","label":"Published (CVE.org)","url":"https://www.cve.org/CVERecord?id=CVE-2018-19518","provenance":"source"},{"date":"2023-02-14","kind":"exploited-reported","label":"Exploitation first reported (VulnCheck KEV evidence)","url":"https://info.securin.io/hubfs/Securin%20Ransomware%20Report%202023.pdf","provenance":"source"}],"speed":{"daysToPublicExploit":null,"firstExploitFrom":"Metasploit","daysToKev":null},"priority":{"score":71.1,"factors":[{"name":"In a KEV catalog","points":35.0,"detail":"listed in VulnCheck KEV"},{"name":"Recent KEV listing","points":0.0,"detail":"added 1356 days ago"},{"name":"Known ransomware use","points":10.0,"detail":"VulnCheck KEV: Known"},{"name":"EPSS percentile","points":19.98,"detail":"percentile 0.9988"},{"name":"Named in threat reports","points":0.0,"detail":"0 reports"},{"name":"Public exploit code","points":5.0,"detail":"1 NVD reference tagged Exploit; 2 Exploit-DB entries; 1 NVD exploit link; 2 PoC-in-GitHub repos; 1 Metasploit module"},{"name":"Mentioned in OTX pulses","points":1.08,"detail":"2 pulses"},{"name":"CVSS severity","points":0.0,"detail":"no CVSS"},{"name":"End-of-life product","points":0.0,"detail":"supported or unknown"}]}}