CVE-2018-19518: University of Washington IMAP Toolkit 2007f on UNIX, as used in imap_open() in PHP and other products, launche
CVE-2018-19518 is a high-severity flaw (CVSS 7.5) affecting php, debian linux, uw-imap. Below: why it ranks where it does, which versions are affected, what to do, and the exact commands.
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
Why this priority
- High severity
- EPSS top 1%: very likely to be exploited
- Public exploit reference
- On your watchlist
A fixed release or distro patch exists.
Risk facts
| CVSS score | 7.5 (High) |
| Attack vector | Network (remote) |
| Attack complexity | High |
| Privileges needed | Low |
| User interaction | None |
| EPSS exploit chance | 96.1% (top 1%) |
| CISA exploited list | No |
| Weakness | CWE-88 |
| Published | 2018-11-25 |
| Last modified | 2026-06-17 |
Last updated 2026-06-17 · Sources: CVE Program, NVD, CISA KEV, EPSS and vendor advisories · How we score
Am I affected?
Timeline
- Published CVE record published
- Updated Record last modified
Public exploits and detection
Public code exists for this CVE. Treat unpatched systems as at risk, and only run PoCs in a lab.
- Exploit-DB: PHP imap_open - Remote Code Execution (Metasploit)
- Metasploit: php imap_open Remote Code Execution
Scores and fixes here are computed automatically from those and other public sources. Confirm with the vendor advisory before changing production systems.
Quick answers
How do I fix CVE-2018-19518?
php: upgrade to newer than 7.2.12; debian linux: mitigate or apply the listed mitigation; uw-imap: downgrade or apply the listed mitigation. Exact commands for each OS are on this page.
Is CVE-2018-19518 being exploited?
CVE-2018-19518 is not on the CISA Known Exploited Vulnerabilities list at the time of the last update. Check again, as this can change.
What does CVE-2018-19518 affect?
CVE-2018-19518 affects php, debian linux, uw-imap. Severity is high (CVSS 7.5). 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) w
How urgent is CVE-2018-19518?
Priority 61/100. High severity; EPSS top 1%: very likely to be exploited; Public exploit reference; On your watchlist
Software pages
PHP vulnerabilities · Ubuntu vulnerabilities · Debian vulnerabilities
Related CVEs
- CVE-2026-109619 HIGH 8.1 EXPLOITED UPGRADE MITIGATE PHP Stale Internal Request-State Vulnerability
- CVE-2026-109618 CRITICAL 9.8 EXPLOITED UPGRADE MITIGATE PHP Memory Corruption Vulnerability
- CVE-2026-91768 MEDIUM 6.5 UPGRADE The IPv6 branch of the FastCGI client access check compares only the first 12 bytes of a 16-byte IPv6 address,
- CVE-2026-92842 MEDIUM 5.9 UPGRADE The convert.base64-encode, convert.quoted-printable-encode and convert.quoted-printable-decode stream filters
- CVE-2026-91767 MEDIUM 6.5 UPGRADE php_openssl_matches_wildcard_name() in ext/openssl/xp_ssl.c underflows the length argument passed to memchr()