Home / Php / Php / CVE-2018-19518
CVE-2018-19518: is it exploited, and which versions of Php are affected and fixed?
CVE-2018-19518 is an argument injection vulnerability in Php. It is not known to be exploited: it is not in CISA's Known Exploited Vulnerabilities catalog (catalog 2026.11.30, read December 3, 2026, 10:08 UTC). Affected: php from 5.6.0 through 5.6.38, php from 7.0.0 through 7.0.32, php from 7.1.0 through 7.1.24 and 7 more (NVD). No fixed version is listed in the sources yet; check the vendor advisory. Severity: High (7.5, CVSS 3.1, from NVD).
Data checked December 3, 2026: last read CISA KEV December 3, 2026, 10:08 UTC, CVE record November 19, 2026, 07:17 UTC and NVD November 19, 2026, 08:27 UTC.
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.
From the CVE record by mitre, last updated August 5, 2024, 11:37 UTC.
Which products and versions does the NVD list as affected?
| Vendor | Product | Versions | Type |
|---|---|---|---|
| php | php | from 5.6.0 through 5.6.38 | application |
| php | php | from 7.0.0 through 7.0.32 | application |
| php | php | from 7.1.0 through 7.1.24 | application |
| php | php | from 7.2.0 through 7.2.12 | application |
| debian | debian linux | 8.0 | operating system |
| debian | debian linux | 9.0 | operating system |
| uw-imap project | uw-imap | 2007f | application |
| canonical | ubuntu linux | 16.04 | operating system |
| canonical | ubuntu linux | 18.04 | operating system |
| canonical | ubuntu linux | 19.04 | operating system |
NVD analysis (status Modified), last modified June 17, 2026, 01:49 UTC.
How severe is CVE-2018-19518?
| Score | Version | Vector | Source |
|---|---|---|---|
| High 7.5 | CVSS 3.1 | CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H | NVD |
| High 8.5 | CVSS 2.0 | AV:N/AC:M/Au:S/C:C/I:C/A:C | NVD |
Each score is shown as its source gave it: the CNA that wrote the record, CISA's ADP (vulnrichment) and the NVD. They can differ.
What the ratings mean: in CVSS 3 and 4, scores run from 0 to 10, with Low 0.1 to 3.9, Medium 4.0 to 6.9, High 7.0 to 8.9 and Critical 9.0 to 10.0. CVSS 2 has no Critical band: its High runs from 7.0 to 10.0. The vector lists how the flaw is reached (network, local), what an attacker needs (privileges, a user's click) and what it can harm.
Is CVE-2018-19518 exploited in the wild?
- CISA KEV
- Not listed (catalog 2026.11.30)
- EPSS
- 96.1% probability of exploitation activity in the next 30 days, percentile 99.9 (FIRST EPSS, scores of December 2, 2026)
What kind of flaw is it?
- CWE-88 Improper Neutralization of Argument Delimiters in a Command
Where are the vendor advisories and references?
- https://bugs.php.net/bug.php?id=77160 x_refsource_MISC
- 45914 exploit, x_refsource_EXPLOIT-DB
- [debian-lts-announce] 20190301 [SECURITY] [DLA 1700-1] uw-imap security update mailing-list, x_refsource_MLIST
- https://security.netapp.com/advisory/ntap-20181221-0004/ x_refsource_CONFIRM
- 1042157 vdb-entry, x_refsource_SECTRACK
- DSA-4353 vendor-advisory, x_refsource_DEBIAN
- https://github.com/Bo0oM/PHP_imap_open_exploit/blob/master/exploit.php x_refsource_MISC
- https://bugs.debian.org/913835 x_refsource_MISC
- https://www.openwall.com/lists/oss-security/2018/11/22/3 x_refsource_MISC
- https://git.php.net/?p=php-src.git%3Ba=commit%3Bh=e5bfea64c81ae34816479bb05d17cdffe45adddb x_refsource_CONFIRM
- 106018 vdb-entry, x_refsource_BID
- https://bugs.php.net/bug.php?id=76428 x_refsource_MISC
- https://bugs.debian.org/913775 x_refsource_MISC
- https://bugs.debian.org/913836 x_refsource_MISC
- https://antichat.com/threads/463395/#post-4254681 x_refsource_MISC
- https://bugs.php.net/bug.php?id=77153 x_refsource_MISC
- [debian-lts-announce] 20181217 [SECURITY] [DLA 1608-1] php5 security update mailing-list, x_refsource_MLIST
- USN-4160-1 vendor-advisory, x_refsource_UBUNTU
- GLSA-202003-57 vendor-advisory, x_refsource_GENTOO
- [debian-lts-announce] 20211229 [SECURITY] [DLA 2866-1] uw-imap security update mailing-list, x_refsource_MLIST
When was it published, and where is the official record?
- Reserved
- November 25, 2018
- Published
- November 25, 2018, 10:00 UTC
- CVE record updated
- August 5, 2024, 11:37 UTC by mitre
- NVD
- Modified, last modified June 17, 2026, 01:49 UTC
- Last checked
- CVE list November 19, 2026, 07:17 UTC; NVD November 19, 2026, 08:27 UTC; KEV December 3, 2026, 10:08 UTC; EPSS December 2, 2026
- Official record
- cve.org · NVD
What other CVEs affect Php?
- Oct 28, 2019CVE-2019-11043 PHP: buffer overflow exploited
- May 11, 2012CVE-2012-1823 Php: command injection exploited
- Jul 3, 2026CVE-2026-14355 php: heap buffer overflow
- Nov 2, 2023CVE-2022-4900 php: memory corruption (buffer overflow)
- Oct 21, 2022CVE-2022-37454 Extended Keccak Code Package Project Extended Keccak Code Package: integer overflow
- Feb 19, 2020CVE-2014-3622 PHP: use after free
- Jan 14, 2020CVE-2015-2326 Pcre: out-of-bounds read
- Jan 14, 2020CVE-2015-2325 Pcre: out-of-bounds read
Questions about CVE-2018-19518
Is CVE-2018-19518 exploited in the wild?
Not as far as CISA knows: it is not in the Known Exploited Vulnerabilities catalog, read December 3, 2026, 10:08 UTC. FIRST's EPSS gives it a 96.1% chance of exploitation activity in the next 30 days (scores of December 2, 2026).
Which versions of Php are affected by CVE-2018-19518?
php from 5.6.0 through 5.6.38, php from 7.0.0 through 7.0.32, php from 7.1.0 through 7.1.24, php from 7.2.0 through 7.2.12, debian linux 8.0, debian linux 9.0 and 4 more, per the NVD. The tables above give every range the sources list.
Which version fixes CVE-2018-19518?
None of the sources (the CVE record, the NVD and GitHub's reviewed advisories) lists a fixed version yet. Check the vendor's advisory in the references.
How severe is CVE-2018-19518?
High (7.5, CVSS 3.1, from NVD). The severity table above shows each score with its source.
Where is the official record of CVE-2018-19518?
The CVE Program's record is at cve.org and the NVD's at nvd.nist.gov. For a fix, the vendor's own advisory is the one to follow.