CVE-2018-19518: canonical ubuntu_linux
Vulnerability summary
CVE-2018-19518 is a high (CVSS 8.5) vulnerability in canonical ubuntu_linux. EPSS estimates a 96.11% chance of exploitation in the next 30 days, higher than 99.8% of scored vulnerabilities. 7 public exploits are recorded.
Weaponized exploit (exploit-database, 29-11-2018)
Source freshness unavailable
How is this decided?Advisory lineage
Upstream 0 · Downstream 2 · Duplicates 1Timeline
- 25-11-2018PublishedVulnerability first disclosed.
- 05-08-2024Last modifiedVulnerability information updated.
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.
CVSS metrics
6 scores · 4 sources · 3 versions- OSV · UbuntuEcosystem advisory · calculated7.5HighCVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
- OSV · DebianEcosystem advisory · calculated7.5HighCVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
- OSV · AlpineEcosystem advisory · calculated7.5HighCVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
EPSS trend
Probability
96.11%
Chance of exploitation in the next 30 days
Percentile
100%
Versus all other CVEs
30-day change
No change 0.00 pp
From 96.11% on 04-10-2026
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
7 foundPhp Imap Open Exploit
Maturity: poc
Exploit Reference (openwall.com)
Maturity: unknown
Exploit Reference (bugs.php.net)
Maturity: unknown
Show all 7 exploits
Exploit Reference (antichat.com)
Maturity: unknown
Exploit Reference (bugs.php.net)
Maturity: unknown
PHP imap_open - Remote Code Execution (Metasploit)
Maturity: weaponized
php imap_open Remote Code Execution
exploit/linux/http/php_imap_open_rce
Maturity: weaponized
Weaknesses
CWE · root causeAffected systems
Known conditions: network-reachable, low-privilege account, no user interaction (CVSS vector). Other conditions: not stated in public data.
Suse9 products
- php53&distro=SUSE Linux Enterprise Server 11 SP4< 5.3.17-112.45.1
- php53&distro=SUSE Linux Enterprise Server for SAP Applications 11 SP4< 5.3.17-112.45.1
- php53&distro=SUSE Linux Enterprise Software Development Kit 11 SP4< 5.3.17-112.45.1
- php5&distro=SUSE Linux Enterprise Module for Web and Scripting 12< 5.5.14-109.45.2
- php5&distro=SUSE Linux Enterprise Software Development Kit 12 SP3< 5.5.14-109.45.2
Ubuntu4 products
- php-imap< 5.4.6-0ubuntu5.1
- php7.0< 7.0.33-0ubuntu0.16.04.1
- php7.2< 7.2.15-0ubuntu0.18.04.1
- uw-imap< 8:2007f~dfsg-2ubuntu0.1~esm1 | < 8:2007f~dfsg-4+deb8u1build0.16.04.1 | < 8:2007f~dfsg-5ubuntu0.18.04.2
Debian2 products
- uw-imap< 8:2007f~dfsg-5+deb9u1 | < 8:2007f~dfsg-4+deb8u1 | < 8:2007f~dfsg-6
- debian_linuxEOL8.0 | 9.0
Alpine1 product
- php7< 7.1.29-r0
Canonical1 product
- ubuntu_linuxEOL16.04 | 18.04 | 19.04
Mageia1 product
- php< 5.6.39-1.mga6
Php1 product
- php≥ 5.6.0, ≤ 5.6.38 | ≥ 7.0.0, ≤ 7.0.32 | ≥ 7.1.0, ≤ 7.1.24 | ≥ 7.2.0, ≤ 7.2.12
Uw-imap_project1 product
- uw-imap2007f
8 vendors · 20 products
References
32 links- lists.debian.org/debian-lts-announce/2019/03/msg00001.htmlMailing ListX Refsource MLISTThird Party Advisory
- github.com/Bo0oM/PHP_imap_open_exploit/blob/master/exploit.phpX Refsource MISCExploitThird Party AdvisoryREPORT
- www.openwall.com/lists/oss-security/2018/11/22/3X Refsource MISCExploitMailing ListThird Party AdvisoryREPORT
Show all 32 references
- lists.debian.org/debian-lts-announce/2018/12/msg00006.htmlMailing ListX Refsource MLISTThird Party Advisory
- lists.debian.org/debian-lts-announce/2021/12/msg00031.htmlMailing ListX Refsource MLISTThird Party Advisory