Live threats

All CVEs / Php

CVE-2018-19518Php

High 7.5 High EPSS

Priority
55
CVSS 3.1
7.5
EPSS
96.1%
probability of exploitation in 30 days · percentile 100
Auth required
Yes
Published
Nov 25, 2018
Updated
Jun 17, 2026
Category
Web application · Cross-platform
Weakness (CWE)
CWE-88
Vector
CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H

What happens

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Php.

Affected products (CPE)

VendorProductVersions
phpphp≥ 5.6.0 ≤ 5.6.38
phpphp≥ 7.0.0 ≤ 7.0.32
phpphp≥ 7.1.0 ≤ 7.1.24
phpphp≥ 7.2.0 ≤ 7.2.12
debiandebian_linux8.0
debiandebian_linux9.0
uw-imap_projectuw-imap2007f
canonicalubuntu_linux16.04
canonicalubuntu_linux18.04
canonicalubuntu_linux19.04

Official sources

References

Links published by the sources. Open them with care.