CVE-2018-19518PHP OS Command Injection
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,…
Published Nov 25, 2018 · Updated Nov 3, 2026 · Also known as ALPINE-CVE-2018-19518, DEBIAN-CVE-2018-19518, DEBIAN-CVE-2018-19935, DEBIAN-CVE-2018-20783, DLA-1608-1, DLA-1700-1, DLA-2866-1, MGASA-2018-0484, SUSE-SU-2018:3986-1, SUSE-SU-2018:3988-1, SUSE-SU-2018:3995-1, UBUNTU-CVE-2018-19518, USN-4160-1
Key Facts
Patch immediately- CVE-2018-19518 is a high-severity vulnerability (CVSS 7.5 v3.1) affecting PHP, Uw-Imap (Uw-Imap Project), Ubuntu Linux (Canonical) and 22 more products.
- It is exploited in the wild, listed in Industry KEV feed since Feb 14, 2023. A public exploit is reported by tracking sources, but no code link is listed yet.
- EPSS estimates a 96% probability of exploitation in the next 30 days.
- Fixed versions are available, including apache2-mod_php5 5.5.14-109.1, apache2-mod_php5 5.5.14-109.45.2, apache2-mod_php53 5.3.17-112.45.1.
- Brandefense priority: patch immediately, because it is listed as exploited in the wild.
Scores
CVSS v3.1
7.5
CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
EPSS (30-day exploit likelihood)
96%
Higher than 99.9% of all scored CVEs
Exploit maturity
Exploited (KEV)
ATLAS score
82/100
Publication score, see How it works
Exploitation Verdict
KEV listed
Feb 14, 2023
1542 days after publication
Federal due date
None
No federal due date
Ransomware use
Not reported
Attributed actors
None named
Exploit & Defence Guidance
Exploit maturity
Exploited (KEV)
Public exploit code
4
Proof-of-concept links
In-the-wild evidence
5
Reports of active use
Advisories And Exploit References
- advisoryhttps://security.alpinelinux.org/vuln/CVE-2018-19518
- advisoryhttps://security-tracker.debian.org/tracker/CVE-2018-19518
- advisoryhttps://ubuntu.com/security/CVE-2018-19518
- advisoryhttps://www.cve.org/CVERecord?id=CVE-2018-19518
- advisoryhttps://advisories.mageia.org/MGASA-2018-0484.html
- advisoryhttps://bugs.debian.org/913775
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.
Known-Exploited Catalog Listings
| Catalog | Added | Remediation due | Ransomware use |
|---|---|---|---|
| Industry KEV feed | Feb 14, 2023 | n/a | Not reported |
Affected Products
536 affected entries in total| Product | Affected versions | Fixed in |
|---|---|---|
| PHPPHP | See advisory | 5.6.38 |
| Uw-ImapUw-Imap Project | 2007f | 8:2007f~dfsg-6 |
| Ubuntu LinuxCanonical | 16.04, 18.04, 19.04 | n/a |
| Debian LinuxDebian | 8.0, 9.0 | n/a |
| php7alpine | See advisory | 7.1.29-r0 |
Patched Releases
apache2-mod_php5
5.5.14-109.1, 5.5.14-109.45.2
apache2-mod_php53
5.3.17-112.45.1
apache2-mod_php7
7.0.7-50.56.2, 7.0.7-52.1
PHP
5.3.3-50.el6_10.tuxcare.ol.els20, 5.3.3-55.el6.tuxcare.els16, 5.6.39-1.mga6, <=5.6.38
php-bcmath
5.3.3-50.el6_10.tuxcare.ol.els20, 5.3.3-55.el6.tuxcare.els16
php-cli
5.3.3-50.el6_10.tuxcare.ol.els20, 5.3.3-55.el6.tuxcare.els16
php-common
5.3.3-50.el6_10.tuxcare.ol.els20, 5.3.3-55.el6.tuxcare.els16
php-dba
5.3.3-50.el6_10.tuxcare.ol.els20, 5.3.3-55.el6.tuxcare.els16
php-devel
5.3.3-50.el6_10.tuxcare.ol.els20, 5.3.3-55.el6.tuxcare.els16
php-embedded
5.3.3-50.el6_10.tuxcare.ol.els20, 5.3.3-55.el6.tuxcare.els16
php-enchant
5.3.3-50.el6_10.tuxcare.ol.els20, 5.3.3-55.el6.tuxcare.els16
php-fpm
5.3.3-50.el6_10.tuxcare.ol.els20, 5.3.3-55.el6.tuxcare.els16
php-gd
5.3.3-50.el6_10.tuxcare.ol.els20, 5.3.3-55.el6.tuxcare.els16
php-imap
5.3.3-50.el6_10.tuxcare.ol.els20, 5.3.3-55.el6.tuxcare.els16, 5.4.6-0ubuntu5.1
php-intl
5.3.3-50.el6_10.tuxcare.ol.els20, 5.3.3-55.el6.tuxcare.els16
php-ldap
5.3.3-50.el6_10.tuxcare.ol.els20, 5.3.3-55.el6.tuxcare.els16
php-mbstring
5.3.3-50.el6_10.tuxcare.ol.els20, 5.3.3-55.el6.tuxcare.els16
php-mysql
5.3.3-50.el6_10.tuxcare.ol.els20, 5.3.3-55.el6.tuxcare.els16
php-odbc
5.3.3-50.el6_10.tuxcare.ol.els20, 5.3.3-55.el6.tuxcare.els16
php-pdo
5.3.3-50.el6_10.tuxcare.ol.els20, 5.3.3-55.el6.tuxcare.els16
php-pgsql
5.3.3-50.el6_10.tuxcare.ol.els20, 5.3.3-55.el6.tuxcare.els16
php-process
5.3.3-50.el6_10.tuxcare.ol.els20, 5.3.3-55.el6.tuxcare.els16
php-pspell
5.3.3-50.el6_10.tuxcare.ol.els20, 5.3.3-55.el6.tuxcare.els16
php-recode
5.3.3-50.el6_10.tuxcare.ol.els20, 5.3.3-55.el6.tuxcare.els16
php-snmp
5.3.3-50.el6_10.tuxcare.ol.els20, 5.3.3-55.el6.tuxcare.els16
Timeline
Publicly disclosed
Nov 25, 2018
Added to Industry KEV feed
Feb 14, 2023
Last updated
Nov 3, 2026
Weakness Type
- CWE-78 Improper Neutralization of Special Elements used in an OS Command
- CWE-88 Improper Neutralization of Argument Delimiters in a Command
References
- advisorysecurity.alpinelinux.org · CVE-2018-19518
- advisorysecurity-tracker.debian.org · CVE-2018-19518
- advisoryubuntu.com · CVE-2018-19518
- advisorycve.org · CVERecord
- advisoryadvisories.mageia.org · MGASA-2018-0484.html
FAQ
Common Questions.
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 exe…
Affected: PHP; Uw-Imap (Uw-Imap Project) versions 2007f; Ubuntu Linux (Canonical) versions 16.04, 18.04, 19.04, among others. The full list is in the CVE brief.
It is exploited in the wild, listed in Industry KEV feed since Feb 14, 2023.
No, it is not currently listed in the CISA Known Exploited Vulnerabilities catalog.
A public exploit is reported by tracking sources, but no code link is listed yet.
Fixed versions are available, including apache2-mod_php5 5.5.14-109.1, apache2-mod_php5 5.5.14-109.45.2, apache2-mod_php53 5.3.17-112.45.1.
Brandefense priority: patch immediately, because it is listed as exploited in the wild.
Is CVE-2018-19518 On Your Attack Surface?
Brandefense matches it against the products discovered on your perimeter and opens a finding the day a CVE like this is listed.
Request A Demo