CVE-2018-19518
A public proof of concept exists; no exploitation attested.
- Published2018-11-25
- WeaknessCWE-88
Am I affected?
Debian, Ubuntu or Red Hat sometimes backport a fix without changing the upstream version number: such a version reads « to verify », never « 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- 2018-11-2510:29CVE publishedNVD
- 2018-11-29Exploit-DB entryExploit-DB
Versions per branch
NVD| Branch | Affected | Fixed in | Source |
|---|---|---|---|
| 5.6 | ≥ 5.6.0, ≤ 5.6.38 | no fix published | NVD |
| 7.0 | ≥ 7.0.0, ≤ 7.0.32 | no fix published | NVD |
| 7.1 | ≥ 7.1.0, ≤ 7.1.24 | no fix published | NVD |
| 7.2 | ≥ 7.2.0, ≤ 7.2.12 | no fix published | NVD |
| Branch | Affected | Fixed in | Source |
|---|---|---|---|
| 16.4 | = 16.04 | no fix published | NVD |
| 18.4 | = 18.04 | no fix published | NVD |
| 19.4 | = 19.04 | no fix published | NVD |
| Branch | Affected | Fixed in | Source |
|---|---|---|---|
| 8.0 | = 8.0 | no fix published | NVD |
| 9.0 | = 9.0 | no fix published | NVD |
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
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
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
Festo Didactic SE MES PC
Festo Didactic SE MES PC shipped with Windows 10
Fix
- 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.
- Vendor fix CISA ICSA-26-239-02 · 1 productFixes are not yet available for the Fuel-Boss V1 Master/Slave.
- Vendor fix CISA ICSA-26-239-02 · 1 productNo fix is planned for Fuel-Boss V1 Backflush Systems.
- 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.
- 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.
- No fix planned, says the vendor Red Hat Product Security CVE-2018-19518 · 62 productsWill not fix
Advisories and patches
- bugs.php.netVendor Advisory
- bugs.php.netVendor Advisory
- bugs.php.netVendor Advisory
Detection
read 2026-11-01 01:02 UTC- Nuclei template
- none so far ProjectDiscovery
- Proof of concept
- PoC-in-GitHub2 repositories, unverifiedknown since 2026-11-01ensimag-security/CVE-2018-19518houqe/EXP_CVE-2018-19518
- Metasploit modules
- 1 moduleexploit/linux/http/php_imap_open_rcerank: goodModule metadata: Metasploit Framework, © Rapid7, Inc., BSD-3-Clause. Metasploit Framework
Sources
- NVDCVSS 3.17.5read 2026-10-23
- NVDCVSS 2.08.5read 2026-10-23
- NVDweakness (CWE)CWE-88read 2026-10-23
- FIRST EPSSEPSS score96.1 %read 2026-12-04
- PoC-in-GitHubproof of concept2known since 2026-11-01
- Exploit-DBdetectionread 2026-12-04
- Metasploit FrameworkMetasploit modules1known since 2026-11-01
- OSVaffected packages—
- GitHub Advisoriesadvisory—
Identifiers
- AZL-37053same flawAzure Linux · MIT
- AZL-37158same flawAzure Linux · MIT
- EUVD-2018-11207same flawENISA EUVD · LicenseRef-ENISA-legal-notice
- GHSA-5qmr-54g6-4256same flawGitHub Advisory Database · CC-BY-4.0
- exploit/linux/http/php_imap_open_rceexploit moduleMetasploit Framework © Rapid7 · BSD-3-Clause
- DLA-1608-1advisory covering several CVEsDebian · LicenseRef-unstated
- DLA-1700-1advisory covering several CVEsDebian · LicenseRef-unstated
- DLA-2866-1advisory covering several CVEsDebian · LicenseRef-unstated
- DSA-4353-1advisory covering several CVEsDebian · LicenseRef-unstated
- MGASA-2018-0484advisory covering several CVEsMageia · LicenseRef-unstated
- SUSE-SU-2018:3986-1advisory covering several CVEsSUSE · LicenseRef-unstated
- SUSE-SU-2018:3988-1advisory covering several CVEsSUSE · LicenseRef-unstated
- SUSE-SU-2018:3995-1advisory covering several CVEsSUSE · LicenseRef-unstated
- USN-4160-1advisory covering several CVEsUbuntu
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?
Is CVE-2018-19518 actively exploited?
What is the CVSS score for CVE-2018-19518?
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
Go further
- Following what attackers exploit right now? The CISA KEV additions of the month, with their patch deadlines.
- Running this software? Vulnerability monitoring alerts you to new vulnerabilities in your products.
Related vulnerabilities
Same product first, then the same vendor advisory and the same publication week.
Sources for this record
- CISA ICS advisories (CSAF) · Public domain (US Government work)
- CVE Program · CVE Program Terms of Use
- ENISA EU Vulnerability Database · ENISA legal notice §1.2 (reproduction authorised, provided the source is acknowledged)
- Exploit-DB · Exploit-DB terms of service · terms restrict redistribution
- FIRST EPSS · EPSS terms of use (free use, attribution requested)
- GitHub Advisory Database · CC-BY-4.0 · GHSA-5qmr-54g6-4256
- Metasploit Framework · BSD-3-Clause
- NVD · Public domain (17 U.S.C. § 105) for NVD-authored data; third-party content under its own terms
- OSV.dev · Per record, as its publisher states it: each row carries the label in sourceLicense when one is served
- PoC-in-GitHub · CC0-1.0
- Red Hat Product Security (CSAF and VEX) · CC-BY-4.0