CVE-2018-19518
Reported by mitre · Published November 25, 2018
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.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| php7 | Alpine | 7.1.29-r0 |
| php | php | 7.2.12, 7.1.24, 7.0.32, 5.6.38 |
| uw-imap | Ubuntu:18.04:LTS | 8:2007f~dfsg-5ubuntu0.18.04.2 |
| uw-imap | Ubuntu:Pro:14.04:LTS | 8:2007f~dfsg-2ubuntu0.1~esm1 |
| php7.0 | Ubuntu:16.04:LTS | 7.0.33-0ubuntu0.16.04.1 |
| php7.2 | Ubuntu:18.04:LTS | 7.2.15-0ubuntu0.18.04.1 |
Affected products
| Vendor | Product | Versions |
|---|---|---|
| n/a | n/a | n/a |
| University of Washington | IMAP Toolkit | |
| alpine | php7 | 0 |
| n/a | n/a | * |
Timeline
- Nov 25, 2018 CVE Published
- Nov 27, 2018 PoC Published (5 in total, the first dated here)
- Jan 1, 2019 VulnCheck XDB Entry (3 in total, the first dated here)
- Apr 14, 2021 EPSS Score (30 in total, the first dated here)
- Feb 14, 2023 VulnCheck KEV Exploitation
- Mar 6, 2026 Distribution Patch (2 in total, the first dated here)
- Mar 6, 2026 Security Advisory (4 in total, the first dated here)
- Jun 17, 2026 CVE Updated
- Sep 22, 2026 Coalition ESS Score
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2018-19518
vulnetix vdb fixes CVE-2018-19518
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2018-19518/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- x_refsource_MISC
- 45914 exploitx_refsource_EXPLOIT-DB
- [debian-lts-announce] 20190301 [SECURITY] [DLA 1700-1] uw-imap security update mailing-listx_refsource_MLIST
- x_refsource_CONFIRM
- 1042157 vdb-entryx_refsource_SECTRACK
- DSA-4353 vendor-advisoryx_refsource_DEBIAN
- x_refsource_MISC
- x_refsource_MISC
- x_refsource_MISC
- x_refsource_CONFIRM
- 106018 vdb-entryx_refsource_BID
- x_refsource_MISC
- x_refsource_MISC
- x_refsource_MISC
- x_refsource_MISC
- x_refsource_MISC
- [debian-lts-announce] 20181217 [SECURITY] [DLA 1608-1] php5 security update mailing-listx_refsource_MLIST
- USN-4160-1 vendor-advisoryx_refsource_UBUNTU
- GLSA-202003-57 vendor-advisoryx_refsource_GENTOO
- [debian-lts-announce] 20211229 [SECURITY] [DLA 2866-1] uw-imap security update mailing-listx_refsource_MLIST
…and 2 more