CVE-2018-19518

Summary

CVECVE-2018-19518
StatePUBLIC
Assigner[email protected]
Source PriorityCVE Program / NVD first with legacy fallback
Published2018-11-25 10:29:00 UTC
Updated2023-11-07 02:55:00 UTC
DescriptionUniversity 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.

Risk And Classification

Problem Types: CWE-88

NVD Known Affected Configurations (CPE 2.3)

TypeVendorProductVersionUpdateEditionLanguage
Operating System Canonical Ubuntu Linux 16.04 All All All
Operating System Canonical Ubuntu Linux 18.04 All All All
Operating System Canonical Ubuntu Linux 19.04 All All All
Operating System Debian Debian Linux 8.0 All All All
Operating System Debian Debian Linux 9.0 All All All
Operating System Debian Debian Linux 8.0 All All All
Operating System Debian Debian Linux 9.0 All All All
Application Php Php All All All All
Application Php Php All All All All
Application Php Php All All All All
Application Php Php All All All All
Application Uw-imap Project Uw-imap 2007f All All All
Application Uw-imap Project Uw-imap 2007f All All All

References

ReferenceSourceLinkTags
#913835 - php7.2-imap: CVE-2018-19518: imap_open() function command injection - Debian Bug report logs MISC bugs.debian.org Mailing List, Third Party Advisory
[SECURITY] [DLA 2866-1] uw-imap security update MLIST lists.debian.org
208.43.231.11 Git - php-src.git/commit CONFIRM git.php.net Mailing List, Patch, Third Party Advisory
PHP imap_open Command Bypass Flaw Lets Remote Authenticated Users Execute Arbitrary Commands on the Target System - SecurityTracker SECTRACK www.securitytracker.com Third Party Advisory, VDB Entry
PHP_imap_open_exploit/exploit.php at master · Bo0oM/PHP_imap_open_exploit · GitHub MISC github.com Exploit, Third Party Advisory
[SECURITY] [DLA 1608-1] php5 security update MLIST lists.debian.org Mailing List, Third Party Advisory
CVE-2018-19518 PHP Vulnerability in NetApp Products | NetApp Product Security CONFIRM security.netapp.com Third Party Advisory
[спущено с LVL8] RCE Task #3 | ANTICHAT - Security online community MISC antichat.com Exploit, Third Party Advisory
USN-4160-1: UW IMAP vulnerability | Ubuntu security notices | Ubuntu UBUNTU usn.ubuntu.com
PHP: Multiple vulnerabilities (GLSA 202003-57) — Gentoo security GENTOO security.gentoo.org
PHP :: Sec Bug #77153 :: imap_open allows to run arbitrary shell commands via mailbox parameter MISC bugs.php.net Exploit, Mailing List, Vendor Advisory
PHP imap_open - Remote Code Execution (Metasploit) - Linux remote Exploit EXPLOIT-DB www.exploit-db.com Exploit, Third Party Advisory, VDB Entry
PHP CVE-2018-19518 Remote Command Injection Vulnerability BID www.securityfocus.com Third Party Advisory, VDB Entry
oss-security - PHP imap_open() script injection MISC www.openwall.com Exploit, Mailing List, Third Party Advisory
PHP :: Sec Bug #76428 :: Command execution through imap_open MISC bugs.php.net Exploit, Mailing List, Vendor Advisory
[SECURITY] [DLA 1700-1] uw-imap security update MLIST lists.debian.org Third Party Advisory
#913775 - php7.3-imap: CVE-2018-19518: imap_open() function command injection - Debian Bug report logs MISC bugs.debian.org Mailing List, Third Party Advisory
208.43.231.11 Git - php-src.git/commit git.php.net
PHP :: Sec Bug #77160 :: Script injection in imap_open() MISC bugs.php.net Permissions Required, Vendor Advisory
#913836 - php7.0-imap: CVE-2018-19518: imap_open() function command injection - Debian Bug report logs MISC bugs.debian.org Mailing List, Third Party Advisory
Debian -- Security Information -- DSA-4353-1 php7.0 DEBIAN www.debian.org Third Party Advisory
CVE Program record CVE.ORG www.cve.org canonical
NVD vulnerability detail NVD nvd.nist.gov canonical, analysis

Legacy QID Mappings

  • 178972 Debian Security Update for uw-imap (DLA 2866-1)
© CVE.report 2026 |

Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. It is the responsibility of user to evaluate the accuracy, completeness or usefulness of any information, opinion, advice or other content. EACH USER WILL BE SOLELY RESPONSIBLE FOR ANY consequences of his or her direct or indirect use of this web site. ALL WARRANTIES OF ANY KIND ARE EXPRESSLY DISCLAIMED. This site will NOT BE LIABLE FOR ANY DIRECT, INDIRECT or any other kind of loss.

CVE, CWE, and OVAL are registred trademarks of The MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. This site includes MITRE data granted under the following license.

Free CVE JSON API cve.report/api

CVE.report and Source URL Uptime Status status.cve.report