Skip to content
Fencer Intel
high 7.5

CVE-2018-19518 in the critical feed json

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…

published 7y ago modified 4mo ago also EUVD-2018-11207

cvss
7.5
version 3.1, NVD
cisa kev
Not listed
not in CISA's catalog
epss
96.1%
EPSS 96.1% chance of exploitation in 30 days, percentile 99.8%
public exploits
2
Metasploit and Exploit-DB

Summary

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.

Patch / fix

  • uw-imap Debian 12 8:2007f~dfsg-6

debian advisories DEBIAN-CVE-2018-19518

  • php7.0 Ubuntu 16.04 LTS 7.0.33-0ubuntu0.16.04.1
  • php7.2 Ubuntu 18.04 LTS 7.2.15-0ubuntu0.18.04.1
  • uw-imap Ubuntu 16.04 LTS 8:2007f~dfsg-4+deb8u1build0.16.04.1
  • uw-imap Ubuntu 18.04 LTS 8:2007f~dfsg-5ubuntu0.18.04.2
  • php-imap Ubuntu 14.04 LTS 5.4.6-0ubuntu5.1
  • uw-imap Ubuntu Pro 14.04 LTS 8:2007f~dfsg-2ubuntu0.1~esm1

ubuntu advisories UBUNTU-CVE-2018-19518

Ubuntu security data © Canonical Ltd., from https://github.com/canonical/ubuntu-security-notices via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0

  • php5 SLE Software Development Kit 12 SP4, SLE Software Development Kit 12 SP3, SLE Module for Web and Scripting 12 5.5.14-109.45.2
  • php7 SLE Software Development Kit 12 SP4, SLE Software Development Kit 12 SP3, SLE Module for Web and Scripting 12 7.0.7-50.56.2
  • php53 SLES for SAP 11 SP4, SLES 11 SP4, SLE Software Development Kit 11 SP4 5.3.17-112.45.1

suse advisories SUSE-SU-2018:3995-1SUSE-SU-2018:3988-1SUSE-SU-2018:3986-1

  • php7 Alpine 3.7 7.1.29-r0

alpine advisories ALPINE-CVE-2018-19518

Alpine secdb © Alpine Linux, from https://secdb.alpinelinux.org via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0

Is CVE-2018-19518 in your stack? Fencer shows which of your repositories are affected as soon as an advisory lands, and opens the fix as a pull request.

Check with Fencer

Vendor advisories

What the vendors themselves say about their products: affected, fixed or not affected, and what to do.

red hat product security vex CVE-2018-19518 updated cvss 8.1

php: imap_open() allows running arbitrary shell commands via mailbox parameter

  • Red Hat Enterprise Linux 5 php, php53 Red Hat Enterprise Linux 6 php, php-gd, php-cli, php-dba, php-fpm, php-pdo, +20 more Red Hat Software Collections rh-php70-php, rh-php70-php-gd, rh-php70-php-cli, rh-php70-php-dba, rh-php70-php-dbg, rh-php70-php-fpm, +24 more
    affected: no fix planned “Will not fix”
  • Red Hat Enterprise Linux 7 php, php-gd, php-cli, php-dba, php-fpm, php-pdo, +18 more Red Hat Enterprise Linux 8 php, libzip, php-gd, php-cli, php-dba, php-dbg, +30 more Red Hat Software Collections rh-php71-php, rh-php72-php, rh-php71-php-gd, rh-php72-php-gd, rh-php71-php-cli, rh-php71-php-dba, +50 more
    not affected: vulnerable code not present

Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf

cisa ICSA-26-239-02 updated cvss 7.5

All-Line Equipment Company Fuel-Boss

  • All-Line Equipment Company Fuel-Boss V1 Backflush Systems >=, <=PHP_7.1.5_7.1.5 All-Line Equipment Company Fuel-Boss V1 Master/Slave >=, <=PHP_7.1.5_7.1.5 All-Line Equipment Company Fuel-Boss V1 Portal >=, <=PHP_7.1.5_7.1.5 All-Line Equipment Company Fuel-Boss V1 Standard >=, <=PHP_7.1.5_7.1.5
    affected: vendor fix, mitigation “All-Line Equipment Company recommends either taking products that are not fixed off the Internet or restricting the IP addresses that can access them at the router level.”

From CISA ICS and IT advisories (CSAF, https://github.com/cisagov/CSAF), a U.S. Government work; changed: reduced to products, statuses and remediations. CISA notification · csaf

cisa ICSA-26-027-02 updated cvss 7.5

Festo Didactic SE MES PC

  • Festo Didactic SE MES PC shipped_with_Windows_10
    affected: vendor fix

Facts from CISA's republication of the vendor's own advisory (CSAF); the linked advisory is the authoritative source. CISA notification · csaf

Timeline

  1. First public exploit (Metasploit exploit/linux/http/php_imap_open_rce)
  2. Published

Exploit prediction

96.11% chance of exploitation in the next 30 days, higher than 99.8% of all scored CVEs (FIRST EPSS, 2026-11-09).

Exploits and checks

  • Metasploit exploit/linux/http/php_imap_open_rce php imap_open Remote Code Execution metasploit exploit, good rank, 2018-10-23
  • EDB-45914 PHP imap_open - Remote Code Execution (Metasploit) remote, 2018-11-29
  • github.com https://github.com/Bo0oM/PHP_imap_open_exploit/blob/master/exploit.php referenced PoC, tagged "exploit" by a source, unverified
  • openwall.com https://www.openwall.com/lists/oss-security/2018/11/22/3 referenced PoC, tagged "exploit" by a source, unverified
  • bugs.php.net https://bugs.php.net/bug.php?id=76428 referenced PoC, tagged "exploit" by a source, unverified
  • antichat.com https://antichat.com/threads/463395/#post-4254681 referenced PoC, tagged "exploit" by a source, unverified
  • bugs.php.net https://bugs.php.net/bug.php?id=77153 referenced PoC, tagged "exploit" by a source, unverified

CVSS scores

assigned by version score vector
NVD 3.1 7.5 CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
NVD 2.0 8.5 AV:N/AC:M/Au:S/C:C/I:C/A:C

Classification

Weakness
  • CWE-88 Improper Neutralization of Argument Delimiters in a Command
Technology feeds

References

Sources

Fencer Intel keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.