Vulnerability in PHP
CVE-2018-19518
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 · last modified .
CVSS v3 metric
CVSS v3 base score 7.5 (High). Vector: CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H.
EPSS exploit prediction
EPSS: 0.961 (99.9th percentile), scored .
Very high probability of exploitation in the next 30 days — among the top 0.1% most-likely-to-be-exploited CVEs. 100th percentile — 99.9% of CVEs in the catalogue have a lower EPSS than this one. How to read EPSS.
EPSS over last 30 days · oldest: 0.952 · newest: 0.961 · change: +0.009
Affected products
- PHP
- Uw-Imap Project — versions 2007f
- Canonical Ubuntu Linux — versions 16.04, 18.04, 19.04
- Debian Linux — versions 8.0, 9.0
Weakness classification (CWE)
Public proof-of-concept exploits
References
- bugs.php.net/bug.php (Vendor Advisory)
- www.exploit-db.com/exploits/45914/ (Exploit, VDB Entry, Third Party Advisory, exploit)
- lists.debian.org/debian-lts-announce/2019/03/msg00001.html (mailing-list, Mailing List, Third Party Advisory)
- security.netapp.com/advisory/ntap-20181221-0004/ (Third Party Advisory)
- www.securitytracker.com/id/1042157 (vdb-entry, Broken Link)
- www.debian.org/security/2018/dsa-4353 (vendor-advisory, Third Party Advisory)
- github.com/Bo0oM/PHP_imap_open_exploit/blob/master/exploit.php (Exploit, Third Party Advisory)
- bugs.debian.org/913835 (Mailing List, Third Party Advisory)
- www.openwall.com/lists/oss-security/2018/11/22/3 (Exploit, Mailing List, Third Party Advisory)
- git.php.net/
Frequently asked questions
- What is CVE-2018-19518?
- CVE-2018-19518 is a high-severity vulnerability in PHP, classified under Argument Injection. CVSS score: 7.5/10. Published 2018-11-25.
- How severe is CVE-2018-19518?
- High severity. CVSS v3 base score is 7.5 out of 10.
- Is CVE-2018-19518 known to be exploited?
- 21 public proof-of-concept repositories are indexed. Not currently listed in the CISA KEV catalog.