CVE-2018-19518

HIGH EXPLOITED RANSOMWARE NUCLEI

University of Washington IMAP Toolkit 2007f - Command Injection

Title source: llm
STIX 2.1

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.

Exploits (6)

exploitdb WORKING POC VERIFIED
by Metasploit · rubyremotelinux
https://www.exploit-db.com/exploits/45914
nomisec WORKING POC 4 stars
by houqe · remote
https://github.com/houqe/EXP_CVE-2018-19518
gitlab WORKING POC
by ensimag-security · poc
https://gitlab.com/ensimag-security/CVE-2018-19518
nomisec WORKING POC
by ensimag-security · poc
https://github.com/ensimag-security/CVE-2018-19518
metasploit WORKING POC GOOD
by Anton Lopanitsyn, Twoster, h00die, Paolo Serracino, Pietro Minniti, Damiano Proietti · rubypoc
https://github.com/rapid7/metasploit-framework/blob/master/modules/exploits/linux/http/php_imap_open_rce.rb

Nuclei Templates (1)

PHP imap - Remote Command Execution
HIGHby princechaddha

References (20)

Scores

CVSS v3 7.5
EPSS 0.9387
EPSS Percentile 99.9%
Attack Vector NETWORK
CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H

Details

VulnCheck KEV 2023-02-14
Ransomware Use Confirmed
CWE
CWE-88
Status published
Products (7)
canonical/ubuntu_linux 16.04
canonical/ubuntu_linux 18.04
canonical/ubuntu_linux 19.04
debian/debian_linux 8.0
debian/debian_linux 9.0
php/php 5.6.0 - 5.6.38
uw-imap_project/uw-imap 2007f
Published Nov 25, 2018
Tracked Since Feb 18, 2026