CVE-2018-19518
HIGH 7.5 PoC CATALOGUED DETECTION TEMPLATE UPDATED SOURCE DATASource catalogue and publisher evidence; linked resources have not been executed or independently validated by Vulnpedia.
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.
VulnCheck KEV reports exploitation for this CVE. These are source-specific reports; review the details and vendor guidance below.
Exploitation likelihood
96.1%chance of exploitation in 30 days · 100th percentile
Impact if exploited
7.5CVSS 3.1 · HIGH · NVD
- ConfidentialityHigh
- IntegrityHigh
- AvailabilityHigh
What an attacker needs
- ✓Access: Reachable over the network — no local access needed
- ⚠Privileges: Requires a low-privilege account
- ✓User interaction: No user interaction needed
- ⚠Complexity: Needs a race window or specific setup
✓ lowers the bar for an attacker · ⚠ raises it
Proof of concept
Public PoC or exploit resources are catalogued below.
- ExploitDB #45914
PHP imap_open - Remote Code Execution (RCE) (Metasploit) · Type: remote · Platform: linux · Published: 2018-11-29 · Updated: 2018-11-29 · ExploitDB source verification: verified (publisher claim; not tested by Vulnpedia) · Original source
- Metasploit: php imap_open Remote Code Execution
php imap_open Remote Code Execution
- VulnCheck KEV · XDB 4aa3936c751e · Linked repository
Catalogued: 2018-11-14T12:05:56Z · Exploit type: initial-access
- VulnCheck KEV · XDB efb8cd95aaa1 · Linked repository
Catalogued: 2023-04-15T09:31:45Z · Exploit type: initial-access
- VulnCheck KEV · XDB f48be0eb89eb · Linked repository
Catalogued: 2019-01-01T17:19:59Z · Exploit type: initial-access
Catalogue identity matched to the named source. HTTP link checks report catalogue page reachability only. Exploit contents and execution have not been verified by Vulnpedia.
PoC data: JSON
Detection templates
Detection checks are listed separately from PoCs.
Resource commands
nuclei -id CVE-2018-19518 -u https://TARGETDetection template — review its checks and affected versions before use.searchsploit --cve CVE-2018-19518 && searchsploit -m 45914Fetch the ExploitDB PoC locally; review the code before running it.curl -s https://vulnpedia.com/cve/CVE-2018-19518/poc.jsonMachine-readable PoC index for this CVE (for automation).Search for new PoCs
Search GitHub now — results may be empty or unverified.
Supported CVE and PoC feeds are scheduled every 30 minutes, including for older CVEs. Other enrichment runs daily or weekly; source availability can delay updates. A later release appears after a tracked source lists it and a refresh succeeds.
Data snapshot:
Weakness (CWE)
- CWE-88: Improper Neutralization of Argument Delimiters in a Command ('Argument Injection')
CVSS vector
CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
References and research data (JSON) · Change history
Vendor product assessments
Showing 32 of 195 vendor product statements; 163 omitted. Read the full vendor advisory.
php.src as a component of Red Hat Enterprise Linux 5 · known affected
Vendor assessment for this product only.
pkg:rpm/redhat/php?arch=src
- no fix planned: Will not fix
php-cli as a component of Red Hat Enterprise Linux 6 · known affected
Vendor assessment for this product only.
pkg:rpm/redhat/php-cli
- no fix planned: Will not fix
php-embedded as a component of Red Hat Enterprise Linux 6 · known affected
Vendor assessment for this product only.
pkg:rpm/redhat/php-embedded
- no fix planned: Will not fix
php-imap as a component of Red Hat Enterprise Linux 6 · known affected
Vendor assessment for this product only.
pkg:rpm/redhat/php-imap
- no fix planned: Will not fix
php-mysql as a component of Red Hat Enterprise Linux 6 · known affected
Vendor assessment for this product only.
pkg:rpm/redhat/php-mysql
- no fix planned: Will not fix
php-process as a component of Red Hat Enterprise Linux 6 · known affected
Vendor assessment for this product only.
pkg:rpm/redhat/php-process
- no fix planned: Will not fix
php-soap as a component of Red Hat Enterprise Linux 6 · known affected
Vendor assessment for this product only.
pkg:rpm/redhat/php-soap
- no fix planned: Will not fix
php-zts as a component of Red Hat Enterprise Linux 6 · known affected
Vendor assessment for this product only.
pkg:rpm/redhat/php-zts
- no fix planned: Will not fix
rh-php70-php-common as a component of Red Hat Software Collections · known affected
Vendor assessment for this product only.
pkg:rpm/redhat/rh-php70-php-common
- no fix planned: Will not fix
rh-php70-php-embedded as a component of Red Hat Software Collections · known affected
Vendor assessment for this product only.
pkg:rpm/redhat/rh-php70-php-embedded
- no fix planned: Will not fix
rh-php70-php-gmp as a component of Red Hat Software Collections · known affected
Vendor assessment for this product only.
pkg:rpm/redhat/rh-php70-php-gmp
- no fix planned: Will not fix
rh-php70-php-ldap as a component of Red Hat Software Collections · known affected
Vendor assessment for this product only.
pkg:rpm/redhat/rh-php70-php-ldap
- no fix planned: Will not fix
rh-php70-php-opcache as a component of Red Hat Software Collections · known affected
Vendor assessment for this product only.
pkg:rpm/redhat/rh-php70-php-opcache
- no fix planned: Will not fix
rh-php70-php-pspell as a component of Red Hat Software Collections · known affected
Vendor assessment for this product only.
pkg:rpm/redhat/rh-php70-php-pspell
- no fix planned: Will not fix
rh-php70-php-tidy as a component of Red Hat Software Collections · known affected
Vendor assessment for this product only.
pkg:rpm/redhat/rh-php70-php-tidy
- no fix planned: Will not fix
rh-php70-php.src as a component of Red Hat Software Collections · known affected
Vendor assessment for this product only.
pkg:rpm/redhat/rh-php70-php?arch=src
- no fix planned: Will not fix
php as a component of Red Hat Enterprise Linux 7 · known not affected
Vendor assessment for this product only.
Reason: vulnerable code not present
pkg:rpm/redhat/php
Red Hat · CVE-2018-19518 · Updated 2026-11-07T03:38:23+00:00php-gd as a component of Red Hat Enterprise Linux 7 · known not affected
Vendor assessment for this product only.
Reason: vulnerable code not present
pkg:rpm/redhat/php-gd
Red Hat · CVE-2018-19518 · Updated 2026-11-07T03:38:23+00:00php-process as a component of Red Hat Enterprise Linux 7 · known not affected
Vendor assessment for this product only.
Reason: vulnerable code not present
pkg:rpm/redhat/php-process
Red Hat · CVE-2018-19518 · Updated 2026-11-07T03:38:23+00:00apcu-panel as a component of Red Hat Enterprise Linux 8 · known not affected
Vendor assessment for this product only.
Reason: vulnerable code not present
pkg:rpm/redhat/apcu-panel
Red Hat · CVE-2018-19518 · Updated 2026-11-07T03:38:23+00:00php-dba as a component of Red Hat Enterprise Linux 8 · known not affected
Vendor assessment for this product only.
Reason: vulnerable code not present
pkg:rpm/redhat/php-dba
Red Hat · CVE-2018-19518 · Updated 2026-11-07T03:38:23+00:00php-intl as a component of Red Hat Enterprise Linux 8 · known not affected
Vendor assessment for this product only.
Reason: vulnerable code not present
pkg:rpm/redhat/php-intl
Red Hat · CVE-2018-19518 · Updated 2026-11-07T03:38:23+00:00php-pear.src as a component of Red Hat Enterprise Linux 8 · known not affected
Vendor assessment for this product only.
Reason: vulnerable code not present
pkg:rpm/redhat/php-pear?arch=src
Red Hat · CVE-2018-19518 · Updated 2026-11-07T03:38:23+00:00php-pecl-xdebug3.src as a component of Red Hat Enterprise Linux 8 · known not affected
Vendor assessment for this product only.
Reason: vulnerable code not present
pkg:rpm/redhat/php-pecl-xdebug3?arch=src
Red Hat · CVE-2018-19518 · Updated 2026-11-07T03:38:23+00:00php-xml as a component of Red Hat Enterprise Linux 8 · known not affected
Vendor assessment for this product only.
Reason: vulnerable code not present
pkg:rpm/redhat/php-xml
Red Hat · CVE-2018-19518 · Updated 2026-11-07T03:38:23+00:00rh-php71-php-devel as a component of Red Hat Software Collections · known not affected
Vendor assessment for this product only.
Reason: vulnerable code not present
pkg:rpm/redhat/rh-php71-php-devel
Red Hat · CVE-2018-19518 · Updated 2026-11-07T03:38:23+00:00rh-php71-php-mbstring as a component of Red Hat Software Collections · known not affected
Vendor assessment for this product only.
Reason: vulnerable code not present
pkg:rpm/redhat/rh-php71-php-mbstring
Red Hat · CVE-2018-19518 · Updated 2026-11-07T03:38:23+00:00rh-php71-php-snmp as a component of Red Hat Software Collections · known not affected
Vendor assessment for this product only.
Reason: vulnerable code not present
pkg:rpm/redhat/rh-php71-php-snmp
Red Hat · CVE-2018-19518 · Updated 2026-11-07T03:38:23+00:00rh-php72-php-common as a component of Red Hat Software Collections · known not affected
Vendor assessment for this product only.
Reason: vulnerable code not present
pkg:rpm/redhat/rh-php72-php-common
Red Hat · CVE-2018-19518 · Updated 2026-11-07T03:38:23+00:00rh-php72-php-gmp as a component of Red Hat Software Collections · known not affected
Vendor assessment for this product only.
Reason: vulnerable code not present
pkg:rpm/redhat/rh-php72-php-gmp
Red Hat · CVE-2018-19518 · Updated 2026-11-07T03:38:23+00:00rh-php72-php-pgsql as a component of Red Hat Software Collections · known not affected
Vendor assessment for this product only.
Reason: vulnerable code not present
pkg:rpm/redhat/rh-php72-php-pgsql
Red Hat · CVE-2018-19518 · Updated 2026-11-07T03:38:23+00:00rh-php72-php.src as a component of Red Hat Software Collections · known not affected
Vendor assessment for this product only.
Reason: vulnerable code not present
pkg:rpm/redhat/rh-php72-php?arch=src
Red Hat · CVE-2018-19518 · Updated 2026-11-07T03:38:23+00:00
Unverified PoC candidates
Publisher-linked references and catalogue matches for further research. Candidate links do not establish public PoC availability. Their availability and exploit execution have not been verified by Vulnpedia.
4 candidates
- https://github.com/Bo0oM/PHP_imap_open_exploit/blob/master/exploit.php
Primary CVE reference tagged exploit · CVE-2018-19518 · Unverified candidate
NVD · CVE-2018-19518 · Updated 2026-06-17T01:49:25.907 - https://www.openwall.com/lists/oss-security/2018/11/22/3
Primary CVE reference tagged exploit · CVE-2018-19518 · Unverified candidate
NVD · CVE-2018-19518 · Updated 2026-06-17T01:49:25.907 - https://github.com/ensimag-security/CVE-2018-19518
some works on CVE-2018-19518
PoC-in-GitHub · CVE-2018-19518
PoC-in-GitHub · CVE-2018-19518 · Updated 2020-09-10T01:55:49Z - https://github.com/houqe/EXP_CVE-2018-19518PoC-in-GitHub · CVE-2018-19518
PoC-in-GitHub · CVE-2018-19518 · Updated 2024-12-07T10:52:09Z
Additional exploitation reports
Source-specific reports, separate from CISA KEV. Repeated observations from one source are not independent confirmations.
- VulnCheck KEV · 2023-02-14T00:00:00Z
Source guidance: Apply remediations or mitigations per vendor instructions or discontinue use of the product if remediation or mitigations are unavailable.
Source ransomware assessment: Known
VulnCheck KEV · CVE-2018-19518 · Updated 2023-02-14T00:00:00Z - VulnCheck KEV · 2023-02-14T00:00:00ZVulnCheck KEV · CVE-2018-19518
Known Affected Software Configurations
| Vendor | Product | Version range |
|---|---|---|
| Php | Php | ≥ 5.6.0 and ≤ 5.6.38 |
| Php | Php | ≥ 7.0.0 and ≤ 7.0.32 |
| Php | Php | ≥ 7.1.0 and ≤ 7.1.24 |
| Php | Php | ≥ 7.2.0 and ≤ 7.2.12 |
| Debian | Debian Linux | 8.0 |
| Debian | Debian Linux | 9.0 |
| Uw-Imap Project | Uw-Imap | 2007f |
| Canonical | Ubuntu Linux | 16.04 |
| Canonical | Ubuntu Linux | 18.04 |
| Canonical | Ubuntu Linux | 19.04 |
All CVSS metrics
- HIGH 7.5 v3.1 · NVD Primary
CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H - HIGH 8.5 v2.0 · NVD Primary
AV:N/AC:M/Au:S/C:C/I:C/A:C
References
Exploit-tagged references (not proof of a PoC)
- https://antichat.com/threads/463395/#post-4254681 CVE record · CVE · Updated 2024-08-05T11:37:11.529Z
CVE record · mitre · Updated 2021-12-29T18:06:37.000Z
NVD · CVE-2018-19518 · Updated 2026-06-17T01:49:25.907 - https://bugs.php.net/bug.php?id=76428 CVE record · CVE · Updated 2024-08-05T11:37:11.529Z
CVE record · mitre · Updated 2021-12-29T18:06:37.000Z
NVD · CVE-2018-19518 · Updated 2026-06-17T01:49:25.907 - https://bugs.php.net/bug.php?id=77153 CVE record · CVE · Updated 2024-08-05T11:37:11.529Z
CVE record · mitre · Updated 2021-12-29T18:06:37.000Z
NVD · CVE-2018-19518 · Updated 2026-06-17T01:49:25.907 - https://github.com/Bo0oM/PHP_imap_open_exploit/blob/master/exploit.php CVE record · CVE · Updated 2024-08-05T11:37:11.529Z
CVE record · mitre · Updated 2021-12-29T18:06:37.000Z
NVD · CVE-2018-19518 · Updated 2026-06-17T01:49:25.907 - https://www.exploit-db.com/exploits/45914/ CVE record · CVE · Updated 2024-08-05T11:37:11.529Z
CVE record · mitre · Updated 2021-12-29T18:06:37.000Z
NVD · CVE-2018-19518 · Updated 2026-06-17T01:49:25.907 - https://www.openwall.com/lists/oss-security/2018/11/22/3 CVE record · CVE · Updated 2024-08-05T11:37:11.529Z
CVE record · mitre · Updated 2021-12-29T18:06:37.000Z
NVD · CVE-2018-19518 · Updated 2026-06-17T01:49:25.907
Advisories
- https://bugs.debian.org/913775 CVE record · CVE · Updated 2024-08-05T11:37:11.529Z
CVE record · mitre · Updated 2021-12-29T18:06:37.000Z
NVD · CVE-2018-19518 · Updated 2026-06-17T01:49:25.907 - https://bugs.debian.org/913835 CVE record · CVE · Updated 2024-08-05T11:37:11.529Z
CVE record · mitre · Updated 2021-12-29T18:06:37.000Z
NVD · CVE-2018-19518 · Updated 2026-06-17T01:49:25.907 - https://bugs.debian.org/913836 CVE record · CVE · Updated 2024-08-05T11:37:11.529Z
CVE record · mitre · Updated 2021-12-29T18:06:37.000Z
NVD · CVE-2018-19518 · Updated 2026-06-17T01:49:25.907 - https://bugs.php.net/bug.php?id=77160 CVE record · CVE · Updated 2024-08-05T11:37:11.529Z
CVE record · mitre · Updated 2021-12-29T18:06:37.000Z
NVD · CVE-2018-19518 · Updated 2026-06-17T01:49:25.907 - https://lists.debian.org/debian-lts-announce/2018/12/msg00006.html CVE record · CVE · Updated 2024-08-05T11:37:11.529Z
CVE record · mitre · Updated 2021-12-29T18:06:37.000Z
NVD · CVE-2018-19518 · Updated 2026-06-17T01:49:25.907 - https://lists.debian.org/debian-lts-announce/2019/03/msg00001.html CVE record · CVE · Updated 2024-08-05T11:37:11.529Z
CVE record · mitre · Updated 2021-12-29T18:06:37.000Z
NVD · CVE-2018-19518 · Updated 2026-06-17T01:49:25.907 - https://lists.debian.org/debian-lts-announce/2021/12/msg00031.html CVE record · CVE · Updated 2024-08-05T11:37:11.529Z
CVE record · mitre · Updated 2021-12-29T18:06:37.000Z
NVD · CVE-2018-19518 · Updated 2026-06-17T01:49:25.907 - https://security.gentoo.org/glsa/202003-57 CVE record · CVE · Updated 2024-08-05T11:37:11.529Z
CVE record · mitre · Updated 2021-12-29T18:06:37.000Z
NVD · CVE-2018-19518 · Updated 2026-06-17T01:49:25.907 - https://security.netapp.com/advisory/ntap-20181221-0004/ CVE record · CVE · Updated 2024-08-05T11:37:11.529Z
CVE record · mitre · Updated 2021-12-29T18:06:37.000Z
NVD · CVE-2018-19518 · Updated 2026-06-17T01:49:25.907 - https://usn.ubuntu.com/4160-1/ CVE record · CVE · Updated 2024-08-05T11:37:11.529Z
CVE record · mitre · Updated 2021-12-29T18:06:37.000Z
NVD · CVE-2018-19518 · Updated 2026-06-17T01:49:25.907 - https://www.debian.org/security/2018/dsa-4353 CVE record · CVE · Updated 2024-08-05T11:37:11.529Z
CVE record · mitre · Updated 2021-12-29T18:06:37.000Z
NVD · CVE-2018-19518 · Updated 2026-06-17T01:49:25.907 - https://security.access.redhat.com/data/csaf/v2/vex/2018/cve-2018-19518.json Red Hat · CVE-2018-19518 · Updated 2026-11-07T03:38:23+00:00
- https://euvd.enisa.europa.eu/vulnerability/EUVD-2018-11207 EUVD · EUVD-2018-11207
- https://vulncheck.com/kev VulnCheck KEV · CVE-2018-19518 · Updated 2023-02-14T00:00:00Z
Technical & other
- http://www.securityfocus.com/bid/106018 CVE record · CVE · Updated 2024-08-05T11:37:11.529Z
CVE record · mitre · Updated 2021-12-29T18:06:37.000Z
NVD · CVE-2018-19518 · Updated 2026-06-17T01:49:25.907 - http://www.securitytracker.com/id/1042157 CVE record · CVE · Updated 2024-08-05T11:37:11.529Z
CVE record · mitre · Updated 2021-12-29T18:06:37.000Z
NVD · CVE-2018-19518 · Updated 2026-06-17T01:49:25.907 - https://git.php.net/?p=php-src.git%3Ba=commit%3Bh=e5bfea64c81ae34816479bb05d17cdffe45adddb CVE record · CVE · Updated 2024-08-05T11:37:11.529Z
CVE record · mitre · Updated 2021-12-29T18:06:37.000Z
NVD · CVE-2018-19518 · Updated 2026-06-17T01:49:25.907 - https://access.redhat.com/security/cve/CVE-2018-19518 Red Hat · CVE-2018-19518 · Updated 2026-11-07T03:38:23+00:00
- https://bugzilla.redhat.com/show_bug.cgi?id=1654228 Red Hat · CVE-2018-19518 · Updated 2026-11-07T03:38:23+00:00
- https://nvd.nist.gov/vuln/detail/CVE-2018-19518 Red Hat · CVE-2018-19518 · Updated 2026-11-07T03:38:23+00:00
- https://www.cve.org/CVERecord?id=CVE-2018-19518 Red Hat · CVE-2018-19518 · Updated 2026-11-07T03:38:23+00:00
- https://github.com/Bo0oM/PHP_imap_open_exploit VulnCheck KEV · 4aa3936c751e · Updated 2023-02-14T00:00:00Z
- https://github.com/houqe/EXP_CVE-2018-19518 VulnCheck KEV · efb8cd95aaa1 · Updated 2023-02-14T00:00:00Z
- https://gitlab.com/ensimag-security/CVE-2018-19518 VulnCheck KEV · f48be0eb89eb · Updated 2023-02-14T00:00:00Z
- https://info.securin.io/hubfs/Securin%20Ransomware%20Report%202023.pdf VulnCheck KEV · CVE-2018-19518 · Updated 2023-02-14T00:00:00Z
- https://vulncheck.com/xdb/4aa3936c751e VulnCheck KEV · 4aa3936c751e · Updated 2023-02-14T00:00:00Z
- https://vulncheck.com/xdb/efb8cd95aaa1 VulnCheck KEV · efb8cd95aaa1 · Updated 2023-02-14T00:00:00Z
- https://vulncheck.com/xdb/f48be0eb89eb VulnCheck KEV · f48be0eb89eb · Updated 2023-02-14T00:00:00Z
Sources: NVD · CVE.org · All sources and attribution · EPSS