{"api_version":"1","generated_at":"2026-05-10T07:05:57+00:00","cve":"CVE-2018-19518","urls":{"html":"https://cve.report/CVE-2018-19518","api":"https://cve.report/api/cve/CVE-2018-19518.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2018-19518","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2018-19518"},"summary":{"title":"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.","state":"PUBLIC","assigner":"cve@mitre.org","published_at":"2018-11-25 10:29:00","updated_at":"2023-11-07 02:55:00"},"problem_types":["CWE-88"],"metrics":[],"references":[{"url":"https://bugs.debian.org/913835","name":"https://bugs.debian.org/913835","refsource":"MISC","tags":["Mailing List","Third Party Advisory"],"title":"#913835 - php7.2-imap: CVE-2018-19518: imap_open() function command injection - Debian Bug report logs","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://lists.debian.org/debian-lts-announce/2021/12/msg00031.html","name":"[debian-lts-announce] 20211229 [SECURITY] [DLA 2866-1] uw-imap security update","refsource":"MLIST","tags":[],"title":"[SECURITY] [DLA 2866-1] uw-imap security update","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://git.php.net/?p=php-src.git;a=commit;h=e5bfea64c81ae34816479bb05d17cdffe45adddb","name":"https://git.php.net/?p=php-src.git;a=commit;h=e5bfea64c81ae34816479bb05d17cdffe45adddb","refsource":"CONFIRM","tags":["Mailing List","Patch","Third Party Advisory"],"title":"208.43.231.11 Git - php-src.git/commit","mime":"text/xml","httpstatus":"200","archivestatus":"200"},{"url":"http://www.securitytracker.com/id/1042157","name":"1042157","refsource":"SECTRACK","tags":["Third Party Advisory","VDB Entry"],"title":"PHP imap_open Command Bypass Flaw Lets Remote Authenticated Users Execute Arbitrary Commands on the Target System - SecurityTracker","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://github.com/Bo0oM/PHP_imap_open_exploit/blob/master/exploit.php","name":"https://github.com/Bo0oM/PHP_imap_open_exploit/blob/master/exploit.php","refsource":"MISC","tags":["Exploit","Third Party Advisory"],"title":"PHP_imap_open_exploit/exploit.php at master · Bo0oM/PHP_imap_open_exploit · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://lists.debian.org/debian-lts-announce/2018/12/msg00006.html","name":"[debian-lts-announce] 20181217 [SECURITY] [DLA 1608-1] php5 security update","refsource":"MLIST","tags":["Mailing List","Third Party Advisory"],"title":"[SECURITY] [DLA 1608-1] php5 security update","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://security.netapp.com/advisory/ntap-20181221-0004/","name":"https://security.netapp.com/advisory/ntap-20181221-0004/","refsource":"CONFIRM","tags":["Third Party Advisory"],"title":"CVE-2018-19518 PHP Vulnerability in NetApp Products | NetApp Product Security","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://antichat.com/threads/463395/#post-4254681","name":"https://antichat.com/threads/463395/#post-4254681","refsource":"MISC","tags":["Exploit","Third Party Advisory"],"title":"[спущено с LVL8] RCE Task #3 | ANTICHAT - Security online community","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://usn.ubuntu.com/4160-1/","name":"USN-4160-1","refsource":"UBUNTU","tags":[],"title":"USN-4160-1: UW IMAP vulnerability | Ubuntu security notices | Ubuntu","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://security.gentoo.org/glsa/202003-57","name":"GLSA-202003-57","refsource":"GENTOO","tags":[],"title":"PHP: Multiple vulnerabilities (GLSA 202003-57) — Gentoo security","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://bugs.php.net/bug.php?id=77153","name":"https://bugs.php.net/bug.php?id=77153","refsource":"MISC","tags":["Exploit","Mailing List","Vendor Advisory"],"title":"PHP :: Sec Bug #77153 :: imap_open allows to run arbitrary shell commands via mailbox parameter","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://www.exploit-db.com/exploits/45914/","name":"45914","refsource":"EXPLOIT-DB","tags":["Exploit","Third Party Advisory","VDB Entry"],"title":"PHP imap_open - Remote Code Execution (Metasploit) - Linux remote Exploit","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"http://www.securityfocus.com/bid/106018","name":"106018","refsource":"BID","tags":["Third Party Advisory","VDB Entry"],"title":"PHP CVE-2018-19518 Remote Command Injection Vulnerability","mime":"text/html","httpstatus":"200","archivestatus":"0"},{"url":"https://www.openwall.com/lists/oss-security/2018/11/22/3","name":"https://www.openwall.com/lists/oss-security/2018/11/22/3","refsource":"MISC","tags":["Exploit","Mailing List","Third Party Advisory"],"title":"oss-security - PHP imap_open() script injection","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://bugs.php.net/bug.php?id=76428","name":"https://bugs.php.net/bug.php?id=76428","refsource":"MISC","tags":["Exploit","Mailing List","Vendor Advisory"],"title":"PHP :: Sec Bug #76428 :: Command execution through imap_open","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://lists.debian.org/debian-lts-announce/2019/03/msg00001.html","name":"[debian-lts-announce] 20190301 [SECURITY] [DLA 1700-1] uw-imap security update","refsource":"MLIST","tags":["Third Party Advisory"],"title":"[SECURITY] [DLA 1700-1] uw-imap security update","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://bugs.debian.org/913775","name":"https://bugs.debian.org/913775","refsource":"MISC","tags":["Mailing List","Third Party Advisory"],"title":"#913775 - php7.3-imap: CVE-2018-19518: imap_open() function command injection - Debian Bug report logs","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://git.php.net/?p=php-src.git%3Ba=commit%3Bh=e5bfea64c81ae34816479bb05d17cdffe45adddb","name":"https://git.php.net/?p=php-src.git%3Ba=commit%3Bh=e5bfea64c81ae34816479bb05d17cdffe45adddb","refsource":"","tags":[],"title":"208.43.231.11 Git - php-src.git/commit","mime":"text/xml","httpstatus":"-1","archivestatus":"200"},{"url":"https://bugs.php.net/bug.php?id=77160","name":"https://bugs.php.net/bug.php?id=77160","refsource":"MISC","tags":["Permissions Required","Vendor Advisory"],"title":"PHP :: Sec Bug #77160 :: Script injection in imap_open()","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://bugs.debian.org/913836","name":"https://bugs.debian.org/913836","refsource":"MISC","tags":["Mailing List","Third Party Advisory"],"title":"#913836 - php7.0-imap: CVE-2018-19518: imap_open() function command injection - Debian Bug report logs","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://www.debian.org/security/2018/dsa-4353","name":"DSA-4353","refsource":"DEBIAN","tags":["Third Party Advisory"],"title":"Debian -- Security Information -- DSA-4353-1 php7.0","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://www.cve.org/CVERecord?id=CVE-2018-19518","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2018-19518","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[{"cve_year":"2018","cve_id":"19518","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"o","cpe4":"canonical","cpe5":"ubuntu_linux","cpe6":"16.04","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"esm","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2018","cve_id":"19518","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"o","cpe4":"canonical","cpe5":"ubuntu_linux","cpe6":"18.04","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"lts","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2018","cve_id":"19518","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"o","cpe4":"canonical","cpe5":"ubuntu_linux","cpe6":"19.04","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2018","cve_id":"19518","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"o","cpe4":"debian","cpe5":"debian_linux","cpe6":"8.0","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2018","cve_id":"19518","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"o","cpe4":"debian","cpe5":"debian_linux","cpe6":"9.0","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2018","cve_id":"19518","vulnerable":"1","versionEndIncluding":"1","cpe1":"cpe","cpe2":"2.3","cpe3":"o","cpe4":"debian","cpe5":"debian_linux","cpe6":"8.0","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2018","cve_id":"19518","vulnerable":"1","versionEndIncluding":"1","cpe1":"cpe","cpe2":"2.3","cpe3":"o","cpe4":"debian","cpe5":"debian_linux","cpe6":"9.0","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2018","cve_id":"19518","vulnerable":"1","versionEndIncluding":"5.6.38","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"php","cpe5":"php","cpe6":"*","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2018","cve_id":"19518","vulnerable":"1","versionEndIncluding":"7.0.32","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"php","cpe5":"php","cpe6":"*","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2018","cve_id":"19518","vulnerable":"1","versionEndIncluding":"7.1.24","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"php","cpe5":"php","cpe6":"*","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2018","cve_id":"19518","vulnerable":"1","versionEndIncluding":"7.2.12","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"php","cpe5":"php","cpe6":"*","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2018","cve_id":"19518","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"uw-imap_project","cpe5":"uw-imap","cpe6":"2007f","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2018","cve_id":"19518","vulnerable":"1","versionEndIncluding":"1","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"uw-imap_project","cpe5":"uw-imap","cpe6":"2007f","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"}],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[{"cve":"CVE-2018-19518","qid":"178972","title":"Debian Security Update for uw-imap (DLA 2866-1)"}]},"source_records":{"cve_program":{"CVE_data_meta":{"ASSIGNER":"cve@mitre.org","ID":"CVE-2018-19518","STATE":"PUBLIC"},"affects":{"vendor":{"vendor_data":[{"product":{"product_data":[{"product_name":"n/a","version":{"version_data":[{"version_value":"n/a"}]}}]},"vendor_name":"n/a"}]}},"data_format":"MITRE","data_type":"CVE","data_version":"4.0","description":{"description_data":[{"lang":"eng","value":"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."}]},"problemtype":{"problemtype_data":[{"description":[{"lang":"eng","value":"n/a"}]}]},"references":{"reference_data":[{"name":"https://bugs.php.net/bug.php?id=77160","refsource":"MISC","url":"https://bugs.php.net/bug.php?id=77160"},{"name":"45914","refsource":"EXPLOIT-DB","url":"https://www.exploit-db.com/exploits/45914/"},{"name":"[debian-lts-announce] 20190301 [SECURITY] [DLA 1700-1] uw-imap security update","refsource":"MLIST","url":"https://lists.debian.org/debian-lts-announce/2019/03/msg00001.html"},{"name":"https://security.netapp.com/advisory/ntap-20181221-0004/","refsource":"CONFIRM","url":"https://security.netapp.com/advisory/ntap-20181221-0004/"},{"name":"1042157","refsource":"SECTRACK","url":"http://www.securitytracker.com/id/1042157"},{"name":"DSA-4353","refsource":"DEBIAN","url":"https://www.debian.org/security/2018/dsa-4353"},{"name":"https://github.com/Bo0oM/PHP_imap_open_exploit/blob/master/exploit.php","refsource":"MISC","url":"https://github.com/Bo0oM/PHP_imap_open_exploit/blob/master/exploit.php"},{"name":"https://bugs.debian.org/913835","refsource":"MISC","url":"https://bugs.debian.org/913835"},{"name":"https://www.openwall.com/lists/oss-security/2018/11/22/3","refsource":"MISC","url":"https://www.openwall.com/lists/oss-security/2018/11/22/3"},{"name":"https://git.php.net/?p=php-src.git;a=commit;h=e5bfea64c81ae34816479bb05d17cdffe45adddb","refsource":"CONFIRM","url":"https://git.php.net/?p=php-src.git;a=commit;h=e5bfea64c81ae34816479bb05d17cdffe45adddb"},{"name":"106018","refsource":"BID","url":"http://www.securityfocus.com/bid/106018"},{"name":"https://bugs.php.net/bug.php?id=76428","refsource":"MISC","url":"https://bugs.php.net/bug.php?id=76428"},{"name":"https://bugs.debian.org/913775","refsource":"MISC","url":"https://bugs.debian.org/913775"},{"name":"https://bugs.debian.org/913836","refsource":"MISC","url":"https://bugs.debian.org/913836"},{"name":"https://antichat.com/threads/463395/#post-4254681","refsource":"MISC","url":"https://antichat.com/threads/463395/#post-4254681"},{"name":"https://bugs.php.net/bug.php?id=77153","refsource":"MISC","url":"https://bugs.php.net/bug.php?id=77153"},{"name":"[debian-lts-announce] 20181217 [SECURITY] [DLA 1608-1] php5 security update","refsource":"MLIST","url":"https://lists.debian.org/debian-lts-announce/2018/12/msg00006.html"},{"refsource":"UBUNTU","name":"USN-4160-1","url":"https://usn.ubuntu.com/4160-1/"},{"refsource":"GENTOO","name":"GLSA-202003-57","url":"https://security.gentoo.org/glsa/202003-57"},{"refsource":"MLIST","name":"[debian-lts-announce] 20211229 [SECURITY] [DLA 2866-1] uw-imap security update","url":"https://lists.debian.org/debian-lts-announce/2021/12/msg00031.html"}]}},"nvd":{"publishedDate":"2018-11-25 10:29:00","lastModifiedDate":"2023-11-07 02:55:00","problem_types":["CWE-88"],"metrics":{"baseMetricV3":{"cvssV3":{"version":"3.1","vectorString":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H","attackVector":"NETWORK","attackComplexity":"HIGH","privilegesRequired":"LOW","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"HIGH","integrityImpact":"HIGH","availabilityImpact":"HIGH","baseScore":7.5,"baseSeverity":"HIGH"},"exploitabilityScore":1.6,"impactScore":5.9},"baseMetricV2":{"cvssV2":{"version":"2.0","vectorString":"AV:N/AC:M/Au:S/C:C/I:C/A:C","accessVector":"NETWORK","accessComplexity":"MEDIUM","authentication":"SINGLE","confidentialityImpact":"COMPLETE","integrityImpact":"COMPLETE","availabilityImpact":"COMPLETE","baseScore":8.5},"severity":"HIGH","exploitabilityScore":6.8,"impactScore":10,"acInsufInfo":false,"obtainAllPrivilege":false,"obtainUserPrivilege":false,"obtainOtherPrivilege":false,"userInteractionRequired":false}},"configurations":{"CVE_data_version":"4.0","nodes":[{"operator":"OR","children":[],"cpe_match":[{"vulnerable":true,"cpe23Uri":"cpe:2.3:a:php:php:*:*:*:*:*:*:*:*","versionStartIncluding":"5.6.0","versionEndIncluding":"5.6.38","cpe_name":[]},{"vulnerable":true,"cpe23Uri":"cpe:2.3:a:php:php:*:*:*:*:*:*:*:*","versionStartIncluding":"7.2.0","versionEndIncluding":"7.2.12","cpe_name":[]},{"vulnerable":true,"cpe23Uri":"cpe:2.3:a:php:php:*:*:*:*:*:*:*:*","versionStartIncluding":"7.1.0","versionEndIncluding":"7.1.24","cpe_name":[]},{"vulnerable":true,"cpe23Uri":"cpe:2.3:a:php:php:*:*:*:*:*:*:*:*","versionStartIncluding":"7.0.0","versionEndIncluding":"7.0.32","cpe_name":[]}]},{"operator":"OR","children":[],"cpe_match":[{"vulnerable":true,"cpe23Uri":"cpe:2.3:o:debian:debian_linux:8.0:*:*:*:*:*:*:*","cpe_name":[]},{"vulnerable":true,"cpe23Uri":"cpe:2.3:o:debian:debian_linux:9.0:*:*:*:*:*:*:*","cpe_name":[]}]},{"operator":"OR","children":[],"cpe_match":[{"vulnerable":true,"cpe23Uri":"cpe:2.3:a:uw-imap_project:uw-imap:2007f:*:*:*:*:*:*:*","cpe_name":[]}]},{"operator":"OR","children":[],"cpe_match":[{"vulnerable":true,"cpe23Uri":"cpe:2.3:o:canonical:ubuntu_linux:18.04:*:*:*:lts:*:*:*","cpe_name":[]},{"vulnerable":true,"cpe23Uri":"cpe:2.3:o:canonical:ubuntu_linux:19.04:*:*:*:*:*:*:*","cpe_name":[]},{"vulnerable":true,"cpe23Uri":"cpe:2.3:o:canonical:ubuntu_linux:16.04:*:*:*:esm:*:*:*","cpe_name":[]}]}]}},"legacy_mitre":{"record":{"CveYear":"2018","CveId":"19518","Ordinal":"136599","Title":"CVE-2018-19518","CVE":"CVE-2018-19518","Year":"2018"},"notes":[{"CveYear":"2018","CveId":"19518","Ordinal":"1","NoteData":"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.","Type":"Description","Title":null},{"CveYear":"2018","CveId":"19518","Ordinal":"2","NoteData":"2018-11-25","Type":"Other","Title":"Published"},{"CveYear":"2018","CveId":"19518","Ordinal":"3","NoteData":"2021-12-29","Type":"Other","Title":"Modified"}]}}}