Skip to main content
Public proof of conceptFix available

CVE-2018-19518

A public proof of concept exists; no exploitation attested.

  • Published2018-11-25
  • WeaknessCWE-88

Am I affected?

With a domain, we read the version its public headers and pages expose. A distribution build can carry the fix under an older number.

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.

Timeline

dates in UTC
  1. 2018-11-2510:29CVE publishedNVD
  2. 2018-11-29Exploit-DB entryExploit-DB

Versions per branch

NVD
PHP
BranchAffectedFixed in
5.6≥ 5.6.0, ≤ 5.6.38no fix published
7.0≥ 7.0.0, ≤ 7.0.32no fix published
7.1≥ 7.1.0, ≤ 7.1.24no fix published
7.2≥ 7.2.0, ≤ 7.2.12no fix published
Canonical ubuntu linux
BranchAffectedFixed in
16.4= 16.04no fix published
18.4= 18.04no fix published
19.4= 19.04no fix published
Debian debian linux
BranchAffectedFixed in
8.0= 8.0no fix published
9.0= 9.0no fix published

1 more product in the sources.

as publishedRanges as NVD and OSV publish them; a distribution’s build can be fixed under an older number.

Distribution builds and vendor advisories

Packages from OSV.dev and products from the vendors' CSAF advisories.

version not verifiedVersions not verified: read as OSV.dev and the vendors publish them, not checked against each vendor's release list.

Packages

  • phpTuxCare:OracleLinux:6all versions · fixed in 5.3.3-50.el6_10.tuxcare.ol.els20and 26 other packages
  • phpTuxCare:CentOS:6all versions · fixed in 5.3.3-55.el6.tuxcare.els16and 26 other packages
  • phpMageia:6all versions · fixed in 5.6.39-1.mga6
  • php-imapUbuntu:14.04:LTSall versions · fixed in 5.4.6-0ubuntu5.1
  • php5SUSE:Linux Enterprise Software Development Kit 12 SP4all versions · fixed in 5.5.14-109.45.2
  • php5SUSE:Linux Enterprise Software Development Kit 12 SP3all versions · fixed in 5.5.14-109.45.2
  • php5SUSE:Linux Enterprise Module for Web and Scripting 12all versions · fixed in 5.5.14-109.45.2
  • php5Debian:8all versions · fixed in 5.6.39+dfsg-0+deb8u1

18 more package ranges on OSV.dev

Vendor advisories

  • CVE-2018-19518 Red Hat Product Security62 known affected

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

    php.src as a component of Red Hat Enterprise Linux 5 · php53.src as a component of Red Hat Enterprise Linux 5 · php as a component of Red Hat Enterprise Linux 6 · +59 more

  • ICSA-26-239-02 CISA4 known affected

    All-Line Equipment Company Fuel-Boss

    All-Line Equipment Company Fuel-Boss V1 Standard: >=|<=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 Master/Slave: >=|<=PHP_7.1.5_7.1.5 · +1 more

  • ICSA-26-027-02 CISA1 known affected

    Festo Didactic SE MES PC

    Festo Didactic SE MES PC shipped with Windows 10

Full record on NVD

Fix

  1. Vendor fix CISA ICSA-26-239-02 · 2 productsFixes are available for the Fuel-Boss V1 Standard and Fuel-Boss V1 Portal. Please contact All-Line Equipment Company (866-356-3336) for instructions on how to receive these fixes.
  2. Vendor fix CISA ICSA-26-239-02 · 1 productFixes are not yet available for the Fuel-Boss V1 Master/Slave.
  3. Vendor fix CISA ICSA-26-239-02 · 1 productNo fix is planned for Fuel-Boss V1 Backflush Systems.
  4. Vendor fix CISA ICSA-26-027-02 · 1 productFesto Didactic has released Factory Control Panel as a replacement for XAMPP on its MES PCs. Contact technical support at services.didactic@festo.com to obtain the current version of Factory Control Panel which includes fixes for these vulnerabilities.
  5. Mitigation from the vendor CISA ICSA-26-239-02 · 4 productsAll-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.
  6. No fix planned, says the vendor Red Hat Product Security CVE-2018-19518 · 62 productsWill not fix

Advisories and patches

Detection

read 2026-11-01 01:02 UTC
Nuclei template
none so far
ProjectDiscovery
Exploit-DB
EDB-45914
Exploit-DB
Proof of concept
Metasploit modules
1 moduleexploit/linux/http/php_imap_open_rcerank: goodModule metadata: Metasploit Framework, © Rapid7, Inc., BSD-3-Clause.
Metasploit Framework

Sources

Identifiers

Technical details

CVSS v3 vector
CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
Published
2018-11-25
Last modified
2026-06-17
NVD status
Modified
GitHub advisory
GHSA-5qmr-54g6-4256

Frequently asked questions

What is CVE-2018-19518?

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.

Is CVE-2018-19518 actively exploited?

Active exploitation of CVE-2018-19518 has not been confirmed. Its EPSS score was 96.1% on 2026-12-03, the estimated probability of exploitation in the next 30 days.

What is the CVSS score for CVE-2018-19518?

CVE-2018-19518 has a CVSS v3 base score of 7.5 (High severity), with vector string CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H.

Running PHP? Hear about its next vulnerability

Surveillance reads the versions in your stack — a domain, a lockfile or a list — checks each CVE against the ranges its sources publish, and alerts you when one you run is exploited or enters CISA KEV. A version it cannot read stays « version not verified ».

No credit card required · No monthly cap on website checks · 250 API requests/month

Sources for this record