CVE-2018-19518

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.
Argument Injection
ProviderTypeBase ScoreAtk. VectorAtk. ComplexityPriv. RequiredVector
NISTNIST
7.5 HIGH
NETWORK
HIGH
LOW
CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
mitreCNA
---
---
CVEADP
---
---
Base Score
CVSS 3.x
EPSS Score
Percentile: 99%
VendorProductVersion
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_linux
8.0
debiandebian_linux
9.0
canonicalubuntu_linux
16.04
canonicalubuntu_linux
18.04
canonicalubuntu_linux
19.04
𝑥
= Vulnerable software versions
Debian logo
Debian Releases
Debian Product
Codename
uw-imap
sid
8:2007f~dfsg-7
fixed
trixie
8:2007f~dfsg-7
fixed
bookworm
8:2007f~dfsg-7
fixed
bullseye
8:2007f~dfsg-7
fixed
Ubuntu logo
Ubuntu Releases
Ubuntu Product
Codename
php-imap
jammy
dne
impish
dne
hirsute
dne
groovy
dne
focal
dne
eoan
dne
disco
dne
cosmic
dne
bionic
dne
xenial
dne
trusty
Fixed 5.4.6-0ubuntu5.1
released
php5
jammy
dne
impish
dne
hirsute
dne
groovy
dne
focal
dne
eoan
dne
disco
dne
cosmic
dne
bionic
dne
xenial
dne
trusty
not-affected
php7.0
jammy
dne
impish
dne
hirsute
dne
groovy
dne
focal
dne
eoan
dne
disco
dne
cosmic
dne
bionic
dne
xenial
Fixed 7.0.33-0ubuntu0.16.04.1
released
trusty
dne
php7.2
jammy
dne
impish
dne
hirsute
dne
groovy
dne
focal
dne
eoan
dne
disco
Fixed 7.2.15-0ubuntu2
released
cosmic
Fixed 7.2.15-0ubuntu0.18.20.1
released
bionic
Fixed 7.2.15-0ubuntu0.18.04.1
released
xenial
dne
trusty
dne
php7.3
jammy
dne
impish
dne
hirsute
dne
groovy
dne
focal
dne
eoan
not-affected
disco
dne
cosmic
dne
bionic
dne
xenial
dne
trusty
dne
uw-imap
jammy
not-affected
impish
not-affected
hirsute
not-affected
groovy
not-affected
focal
not-affected
eoan
not-affected
disco
Fixed 8:2007f~dfsg-5ubuntu0.19.04.2
released
cosmic
ignored
bionic
Fixed 8:2007f~dfsg-5ubuntu0.18.04.2
released
xenial
Fixed 8:2007f~dfsg-4+deb8u1build0.16.04.1
released
trusty
Fixed 8:2007f~dfsg-2ubuntu0.1~esm1
released
References