CVE-2018-19518Php
High 7.5 High EPSS
Follow: this CVE · Php · Php We alert you by email or Slack (account required).
- 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.
What to do
- Apply the vendor's security update for Php.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| php | php | ≥ 5.6.0 ≤ 5.6.38 |
| php | php | ≥ 7.0.0 ≤ 7.0.32 |
| php | php | ≥ 7.1.0 ≤ 7.1.24 |
| php | php | ≥ 7.2.0 ≤ 7.2.12 |
| debian | debian_linux | 8.0 |
| debian | debian_linux | 9.0 |
| uw-imap_project | uw-imap | 2007f |
| canonical | ubuntu_linux | 16.04 |
| canonical | ubuntu_linux | 18.04 |
| canonical | ubuntu_linux | 19.04 |
Official sources
References
Links published by the sources. Open them with care.
- www.securityfocus.com Broken Link
- www.securitytracker.com Broken Link
- antichat.com Exploit Third Party Advisory
- bugs.debian.org Mailing List Third Party Advisory
- bugs.debian.org Mailing List Third Party Advisory
- bugs.debian.org Mailing List Third Party Advisory
- bugs.php.net Exploit Mailing List Vendor Advisory
- bugs.php.net Exploit Mailing List Vendor Advisory
- bugs.php.net Vendor Advisory
- git.php.net
- github.com Exploit Third Party Advisory
- lists.debian.org Mailing List Third Party Advisory
- lists.debian.org Mailing List Third Party Advisory
- lists.debian.org Mailing List Third Party Advisory
- security.gentoo.org Third Party Advisory
- security.netapp.com Third Party Advisory
- usn.ubuntu.com Third Party Advisory
- www.debian.org Third Party Advisory
- www.exploit-db.com Exploit Third Party Advisory VDB Entry
- www.openwall.com Exploit Mailing List Third Party Advisory