nday
CVE-2018-19518

PHP: command injectionTitle composed by nday; the CVE record has none.

A public PoC appeared 4 days after disclosure. nday has no fix record for it yet; that does not mean no patch exists. Listed by 2 of 4 PoC sources: exploitdb and metasploit. Not in CISA KEV.

why these tags

nday derives these tags by fixed rules from the facts below; NVD, the CNA and other sources do not assign them. Vocabulary and rules: ~/tags.

command injection
CWE-88, stated by NVD's analysts
network
AV:N in CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H (CVSS 3.1) from NVD's analysts
no user interaction
UI:N in CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H (CVSS 3.1) from NVD's analysts
Metasploit
Metasploit modules exploit/linux/http/php_imap_open_rce
Exploit-DB
Exploit-DB entries 45914
PHP
CPE names NVD's analysts give as vulnerable: a:php:php
open-source library / framework
CPE names NVD's analysts give as vulnerable: a:php:phpthe product type of PHP in nday's product registry
stage
POC
disclosed
disclosure → PoC
T+4d POC is date-only
cvss
no score yet

Lifecycle

x axis UTC; dot = exact minute, wide bar = date only, hollow = unknown or inferred.
time unknown
DISdisclosed
2018-11-25T10:00Z
PATpatch
no record yet
ANAanalysis
no record yet
POCPoC
2018-11-29, date only
metasploit
ITWexploited
no record yet
KEVKEV
no record yet

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.

Original text of the CVE record (cvelist), shown as published.

Event log

+DISdisclosed

CVE record published by mitre.

src cvelist · nday , bulk import · raw
{
  "id": 66143,
  "type": "disclosed",
  "source": "cvelist",
  "url": "https://www.cve.org/CVERecord?id=CVE-2018-19518",
  "occurred_at": "2018-11-25T10:00:00Z",
  "observed_at": "2026-11-12T23:01:25.305088Z",
  "is_backfill": true,
  "dedupe_key": "",
  "detail": {
    "state": "PUBLISHED",
    "date_published": "2018-11-25T10:00:00.000Z",
    "assigner_short_name": "mitre"
  }
}
2018-11-29date only, from source
+POCpublic PoC

Exploit-DB lists public exploit code “PHP imap_open - Remote Code Execution (RCE) (Metasploit)” (EDB-45914). Verified by Exploit-DB.

src exploitdb 45914 · nday , bulk import · raw
{
  "id": 25202,
  "type": "poc_published",
  "source": "exploitdb",
  "url": "https://www.exploit-db.com/exploits/45914",
  "occurred_at": "2018-11-29T00:00:00Z",
  "observed_at": "2026-11-12T15:24:40.221206Z",
  "is_backfill": true,
  "dedupe_key": "45914",
  "detail": {
    "url": "https://www.exploit-db.com/exploits/45914",
    "file": "exploits/linux/remote/45914.rb",
    "kind": "exploit",
    "tags": [
      "Metasploit Framework (MSF)",
      "Remote"
    ],
    "type": "remote",
    "title": "PHP imap_open - Remote Code Execution (RCE) (Metasploit)",
    "author": "Metasploit",
    "edb_id": 45914,
    "cve_ids": [
      "CVE-2018-19518"
    ],
    "platform": "linux",
    "verified": true,
    "precision": "day",
    "confidence": "curated",
    "date_added": "2018-11-29",
    "date_updated": "2018-11-29",
    "date_published": "2018-11-29"
  }
}
time unknownsource gave no time
+POCpublic PoC

Metasploit has module exploit/linux/http/php_imap_open_rce (php imap_open Remote Code Execution). The source gives no release time for the module.

src metasploit exploit/linux/http/php_imap_open_rce · nday , bulk import · raw
{
  "id": 50684,
  "type": "poc_published",
  "source": "metasploit",
  "url": "https://github.com/rapid7/metasploit-framework/blob/master/modules/exploits/linux/http/php_imap_open_rce.rb",
  "occurred_at": null,
  "observed_at": "2026-11-12T15:24:51.477477Z",
  "is_backfill": true,
  "dedupe_key": "exploit/linux/http/php_imap_open_rce",
  "detail": {
    "url": "https://github.com/rapid7/metasploit-framework/blob/master/modules/exploits/linux/http/php_imap_open_rce.rb",
    "kind": "msf_module",
    "path": "/modules/exploits/linux/http/php_imap_open_rce.rb",
    "rank": 400,
    "check": true,
    "title": "php imap_open Remote Code Execution",
    "cve_ids": [
      "CVE-2018-19518",
      "CVE-2018-1000859"
    ],
    "fullname": "exploit/linux/http/php_imap_open_rce",
    "rank_name": "good",
    "confidence": "curated",
    "module_type": "exploit",
    "module_last_modified": "2026-04-22 13:20:20 +0000",
    "vuln_disclosure_date": "2018-10-23"
  }
}

Report an error

report an error or omission

Something on this page wrong or missing? Tell the editors; if they accept it, this page's revision log says so publicly. Upstream data is not changed.

Researcher discussion

0 researchers mentioned this in the last 7 days

Posts on X by researchers on nday's list that mention this CVE, shown as posted. nday does not check them.

nday has not collected any post on X by listed researchers that mentions this CVE.

Discussion

0 comments

No comments yet.