peter bassill · operator
$ cve CVE-2018-19518 JSON

CVE-2018-19518 EXPLOIT

7.5
HIGH · CVSS 3.1 · EPSS 96.1% (pctl 100)

Patch early

A public exploit exists.

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.

Scoring

CVSS7.5 (HIGH, v3.1)
VectorCVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
EPSS96.11% — more likely to be exploited than 100% of all CVEs
WeaknessCWE-88
On CISA KEVno
Public exploityes
Published2018-11-25
Last modified2026-06-17

Affected (4)

VendorProduct
canonicalubuntu linux
debiandebian linux
phpphp
uw-imap projectuw-imap

Public exploits

SourceTitleDate
exploit-dbPHP imap_open - Remote Code Execution (Metasploit)2018-11-29

References

→ the Explorer  ·  watch your stack  ·  NVD