patchminder
Weaponized · Metasploit CVE-2018-19518

Command injectionin CVE-2018-19518.

Published 25 Nov 2018 · Updated 5 Aug 2024 · Every fact sourced

JSONCite
Is it exploited?
Not confirmed

Weaponized: a Metasploit exploit is public.

Attack code is public
Severity
Not scored
No source has scored it yet
Attack likelihood
Very high
EPSSA daily score from FIRST: the chance a hole is attacked in the next 30 days. 96.1% chance in 30 days · 4 Dec 2026
Fix
Not confirmed
See the vendor advisory
In plain words

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.

What to do now
  • No source names a fix yet. Watch this page or the product for updates; we never guess a fixed version.

Not confirmed by any source yet: affected versions not confirmed; fixed version not confirmed; severity not scored yet. We show these as not confirmed instead of guessing.

Versions

Affected and fixed versions

Product or package
Affected
Fixed in
Source
n/a
Not confirmed
Not confirmed
CVE record

From the CVE record, NVD and package advisories. When no source has versions yet, this table says "not confirmed" instead of guessing.

Timeline

From first report to first attacks

  1. 23 Oct 2018
    Metasploit module: php imap_open Remote Code Execution.
  2. 25 Nov 2018
    CVE ID reserved by mitre.
  3. 25 Nov 2018
    Published in the CVE List.
  4. 31 Dec 2018
    First public proof of concept on GitHub.
  5. 5 Aug 2024
    CVE record last updated.
Exploit code

Attack code anyone can find

Exploit maturity: Weaponized (Metasploit).

Metasploit module
1 module
Nuclei scan template
None known
Exploit-DB
2 entries
GitHub proof of concepts
2 repositories
Metasploitphp imap_open Remote Code Executionrank goodLinked once a fix or workaround is known.
Exploit-DBEDB-ID 45914remote exploit for php, published 29 Nov 2018, verified by Exploit-DBLinked once a fix or workaround is known.
Exploit-DBEDB-ID 45914remote exploit for php, published 29 Nov 2018, verified by Exploit-DBLinked once a fix or workaround is known.
Referencewww.exploit-db.comnamed as exploit in the CVE recordLinked once a fix or workaround is known.

2 proof of concept repositories on GitHub. No fix or workaround is known yet, so we count them but do not link to them.

Listed so defenders can judge how urgent this is and test systems they are authorised to test. Patchminder does not host exploit code; links open the source page. Labels for GitHub repositories come from their public details and are never a promise about the code. Run anything only in an isolated lab.

References
Cite this page

Patchminder. CVE-2018-19518: Command injection in CVE-2018-19518. https://patchminder.com/cve/cve-2018-19518/ (accessed 5 December 2026).