Skip to content
On CISA KEVHigh

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

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

CatalogAddedRemediation dueRansomware use
Industry KEV feedFeb 14, 2023n/aNot reported

Affected Products

536 affected entries in total
ProductAffected versionsFixed in
PHPPHPSee advisory5.6.38
Uw-ImapUw-Imap Project2007f8:2007f~dfsg-6
Ubuntu LinuxCanonical16.04, 18.04, 19.04n/a
Debian LinuxDebian8.0, 9.0n/a
php7alpineSee advisory7.1.29-r0
20 more affected products in the full CVE brief

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

  1. Publicly disclosed

    Nov 25, 2018

  2. Added to Industry KEV feed

    Feb 14, 2023

  3. 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

FAQ

Common Questions.

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

More vulnerabilities

Figures as of Dec 2, 2026. Compiled by Brandefense technologies from public vulnerability catalogs; scoring as described in How it works.

To report an error, contact Brandefense.