cve.bz

CVE-2018-19518 Argument Injection

7.5 highExploitEPSS 96%

High (7.5). EPSS 96% estimated probability of exploitation activity in the next 30 days.

On this page
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.

Severity

CVSS 3.1

7.5 high
CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
EPSS
96% (unchanged from 96% a week ago; 96% 30 days ago) estimated probability of exploitation activity in the next 30 days; 100th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CWE
CWE-88 Improper Neutralization of Argument Delimiters in a Command (Argument Injection)
OWASP Top 10
A05:2025 Injection
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2018-19518 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2018-19518?via=ask-ai-copy and https://cve.bz/cve/CVE-2018-19518?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2018-19518 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
php:phpfrom 5.6.0 through 5.6.38
php:phpfrom 7.0.0 through 7.0.32
php:phpfrom 7.1.0 through 7.1.24
php:phpfrom 7.2.0 through 7.2.12
debian:debian_linux8.0
debian:debian_linux9.0
uw-imap_project:uw-imap2007f
canonical:ubuntu_linux16.04
canonical:ubuntu_linux18.04
canonical:ubuntu_linux19.04

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian8php55.6.39+dfsg-0+deb8u1DLA-1608-1
Debian8uw-imap8:2007f~dfsg-4+deb8u1DLA-1700-1
Debian9php7.07.0.33-0+deb9u1DSA-4353-1
Debian9uw-imap8:2007f~dfsg-5+deb9u1DLA-2866-1
Debian12uw-imap8:2007f~dfsg-6DEBIAN-CVE-2018-19518
Ubuntu14.04:LTSphp-imap5.4.6-0ubuntu5.1UBUNTU-CVE-2018-19518
Ubuntu16.04:LTSphp7.07.0.33-0ubuntu0.16.04.1UBUNTU-CVE-2018-19518
Ubuntu16.04:LTSuw-imap8:2007f~dfsg-4+deb8u1build0.16.04.1UBUNTU-CVE-2018-19518 USN-4160-1
Ubuntu18.04:LTSphp7.27.2.15-0ubuntu0.18.04.1UBUNTU-CVE-2018-19518
Ubuntu18.04:LTSuw-imap8:2007f~dfsg-5ubuntu0.18.04.2UBUNTU-CVE-2018-19518 USN-4160-1
UbuntuPro:14.04:LTSuw-imap8:2007f~dfsg-2ubuntu0.1~esm1UBUNTU-CVE-2018-19518
SUSELinux Enterprise Module for Web and Scripting 12, Linux Enterprise Software Development Kit 12 SP3, Linux Enterprise Software Development Kit 12 SP4php55.5.14-109.45.2SUSE-SU-2018:3995-1
SUSELinux Enterprise Module for Web and Scripting 12, Linux Enterprise Software Development Kit 12 SP3, Linux Enterprise Software Development Kit 12 SP4php77.0.7-50.56.2SUSE-SU-2018:3988-1
SUSELinux Enterprise Server 11 SP4, Linux Enterprise Server for SAP Applications 11 SP4, Linux Enterprise Software Development Kit 11 SP4php535.3.17-112.45.1SUSE-SU-2018:3986-1
Alpinev3.7php77.1.29-r0ALPINE-CVE-2018-19518
Azure Linux2uw-imapno fix listedAZL-37158
Azure Linux3uw-imapno fix listedAZL-37053

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; SUSE security data, CC BY 4.0; the Alpine secdb, CC BY-SA 4.0; Microsoft's Azure Linux vulnerability data, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · SUSE · Alpine.

Red Hat

Red Hat rates this Moderate.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 5phpWill not fix
Red Hat Enterprise Linux 5php53Will not fix
Red Hat Enterprise Linux 6phpWill not fix
Red Hat Enterprise Linux 7phpNot affected
Red Hat Enterprise Linux 8phpNot affected
Red Hat Software Collectionsrh-php70-phpWill not fix
Red Hat Software Collectionsrh-php71-phpNot affected
Red Hat Software Collectionsrh-php72-phpNot affected

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2018-19518.

ICS advisories (CISA)

AdvisoryTitlePublishedSectorsAffectedFixed
ICSA-26-239-02All-Line Equipment Company Fuel-Boss2026-08-27Critical Manufacturing, Defense Industrial Base, Emergency Services, Transportation SystemsAll-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 and 1 morenone listed
ICSA-26-027-02Festo Didactic SE MES PC2024-02-27Commercial Facilities, Communications, Critical Manufacturing, EnergyFesto Didactic SE MES PC shipped with Windows 10none listed

From CISA's ICS advisories (CSAF), provided under CISA's notification. Only the facts are shown; each advisory is on CISA's page. Credits.

Public exploits

Attack patterns (CAPEC)

  • CAPEC-41 Using Meta-characters in E-mail Headers to Inject Malicious Payloads Likelihood: High · Severity: High
  • CAPEC-88 OS Command Injection Likelihood: High · Severity: High
  • CAPEC-137 Parameter Injection Likelihood: Medium · Severity: Medium
  • CAPEC-174 Flash Parameter Injection Likelihood: High · Severity: Medium
  • CAPEC-460 HTTP Parameter Pollution (HPP) Severity: Medium

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON