php: imap_open() allows running arbitrary shell commands via mailbox parameter
Published Nov 25, 2018
7.5
HIGHCVSS 3.1
EPSS 96.11%
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.
Affected products
No data.
Configuration 1
Configuration 2
- 8.0
- 9.0
Configuration 3
- 2007f
Configuration 4
- 16.04
- 18.04
- 19.04
No data.
Red Hat Enterprise Linux 5
php
Will not fix
Red Hat Enterprise Linux 5
php53
Will not fix
Red Hat Enterprise Linux 6
php
Will not fix
Red Hat Enterprise Linux 7
php
Not affected
Red Hat Enterprise Linux 8
php
Not affected
Red Hat Software Collections
rh-php70-php
Will not fix
Red Hat Software Collections
rh-php71-php
Not affected
Red Hat Software Collections
rh-php72-php
Not affected
| Product | Package | State | Advisory |
|---|---|---|---|
| Red Hat Enterprise Linux 5 | php | Will not fix | n/a |
| Red Hat Enterprise Linux 5 | php53 | Will not fix | n/a |
| Red Hat Enterprise Linux 6 | php | Will not fix | n/a |
| Red Hat Enterprise Linux 7 | php | Not affected | n/a |
| Red Hat Enterprise Linux 8 | php | Not affected | n/a |
| Red Hat Software Collections | rh-php70-php | Will not fix | n/a |
| Red Hat Software Collections | rh-php71-php | Not affected | n/a |
| Red Hat Software Collections | rh-php72-php | Not affected | n/a |
No package ranges for this CVE.
Remediation
No remediation recorded yet.
References (25)
- http://www.securityfocus.com/bid/106018 vdb-entryx_refsource_BIDBroken Link
- http://www.securitytracker.com/id/1042157 vdb-entryx_refsource_SECTRACKBroken Link
- https://access.redhat.com/security/cve/CVE-2018-19518 Vendor Advisory
- https://antichat.com/threads/463395/#post-4254681 x_refsource_MISCExploitThird Party Advisory
- https://bugs.debian.org/913775 x_refsource_MISCMailing ListThird Party Advisory
- https://bugs.debian.org/913835 x_refsource_MISCMailing ListThird Party Advisory
- https://bugs.debian.org/913836 x_refsource_MISCMailing ListThird Party Advisory
- https://bugs.php.net/bug.php?id=76428 x_refsource_MISCExploitMailing ListVendor Advisory
- https://bugs.php.net/bug.php?id=77153 x_refsource_MISCExploitMailing ListVendor Advisory
- https://bugs.php.net/bug.php?id=77160 x_refsource_MISCVendor Advisory
- https://bugzilla.redhat.com/show_bug.cgi?id=1654228 Issue Tracking
- https://euvd.enisa.europa.eu/vulnerability/EUVD-2018-11207 Advisory
- https://git.php.net/?p=php-src.git%3Ba=commit%3Bh=e5bfea64c81ae34816479bb05d17cdffe45adddb x_refsource_CONFIRM
- https://github.com/Bo0oM/PHP_imap_open_exploit/blob/master/exploit.php x_refsource_MISCExploitThird Party Advisory
- https://lists.debian.org/debian-lts-announce/2018/12/msg00006.html mailing-listx_refsource_MLISTMailing ListThird Party Advisory
- https://lists.debian.org/debian-lts-announce/2019/03/msg00001.html mailing-listx_refsource_MLISTMailing ListThird Party Advisory
- https://lists.debian.org/debian-lts-announce/2021/12/msg00031.html mailing-listx_refsource_MLISTMailing ListThird Party Advisory
- https://nvd.nist.gov/vuln/detail/CVE-2018-19518
- https://security.gentoo.org/glsa/202003-57 vendor-advisoryx_refsource_GENTOOThird Party Advisory
- https://security.netapp.com/advisory/ntap-20181221-0004/ x_refsource_CONFIRMThird Party Advisory
- https://usn.ubuntu.com/4160-1/ vendor-advisoryx_refsource_UBUNTUThird Party Advisory
- https://www.cve.org/CVERecord?id=CVE-2018-19518
- https://www.debian.org/security/2018/dsa-4353 vendor-advisoryx_refsource_DEBIANThird Party Advisory
- https://www.exploit-db.com/exploits/45914/ exploitx_refsource_EXPLOIT-DBThird Party AdvisoryVDB Entry
- https://www.openwall.com/lists/oss-security/2018/11/22/3 x_refsource_MISCExploitMailing ListThird Party Advisory
Change history (0)
No recorded changes yet.