CVE-2018-19518

php: imap_open() allows running arbitrary shell commands via mailbox parameter

Published Nov 25, 2018 CVSS 3.1 · 7.5 High EPSS 96.1% KEV · Not listed
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.

Remediation

No solution or workaround provided in the CVE record

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Debian DLA Debian DLA DLA-1608-1 php5 security update
Debian DLA Debian DLA DLA-1700-1 uw-imap security update
Debian DLA Debian DLA DLA-2866-1 uw-imap security update
Debian DSA Debian DSA DSA-4353-1 php7.0 security update
Ubuntu USN Ubuntu USN USN-4160-1 UW IMAP vulnerability
History

No history.

Weaknesses

Sources

Status
PUBLISHED
Assigner
mitre
Published
Updated
Aug 5, 2024, 11:37 AM
Reserved
Nov 25, 2018, 12:00 AM
Status
Modified
Published
Nov 25, 2018, 10:29 AM
Modified
Jun 17, 2026, 1:49 AM
Severity
Moderate
Public date
Nov 19, 2018, 12:00 AM