VDB

CVE-2018-19518

CVE-2018-19518 PUBLISHED

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.

PackageEcosystemFixed in
php7Alpine7.1.29-r0
phpphp7.2.12, 7.1.24, 7.0.32, 5.6.38
uw-imapUbuntu:18.04:LTS8:2007f~dfsg-5ubuntu0.18.04.2
uw-imapUbuntu:Pro:14.04:LTS8:2007f~dfsg-2ubuntu0.1~esm1
php7.0Ubuntu:16.04:LTS7.0.33-0ubuntu0.16.04.1
php7.2Ubuntu:18.04:LTS7.2.15-0ubuntu0.18.04.1

Affected products

VendorProductVersions
n/an/an/a
University of WashingtonIMAP Toolkit
alpinephp70
n/an/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

…and 2 more

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›