BREACHSPIDER
CVE databaseVendorsIntelFeaturesDevelopersDocsPricingSign inStart free trial

CVE-2018-19518 in Canonical Ubuntu Linux and 3 more products

High 7.5 Public exploit reported

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 e...

Affects 4 products from 4 vendors. Facts below cite their sources.

CVSS 3.17.5
EPSS96.1%
EPSS percentile100th
FixSee advisory

Remotely exploitable over the network, high complexity, low privileges required, no user interaction needed, impact contained to the vulnerable component, full confidentiality impact, full integrity impact, full availability impact.

Affected products and versions

VendorProductAffected versions
Canonical Ubuntu Linux 16.04 18.04 19.04
Debian Debian Linux 8.0 9.0
Php Php ≥ 5.6.0, ≤ 5.6.38 ≥ 7.0.0, ≤ 7.0.32 ≥ 7.1.0, ≤ 7.1.24 ≥ 7.2.0, ≤ 7.2.12
Uw-Imap Project Uw-Imap 2007f

A product listed here is affected only at the versions shown. Use the free check to test the exact version you run.

Fix and vendor advisory

View Vendor Advisory →

Vendor PSIRT: [email protected]

Exploitation

CISA known-exploitedNot in the CISA KEV catalog
Public exploitReported · reference

Official 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.

Source: NIST NVD / MITRE CVE.

Record details

CVE IDCVE-2018-19518
BreachSpider IDBS-2018-GLOBAL-207959-H
CVSS vectorCVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
Published2018-11-25
Last modified2026-08-27
Weakness (CWE)
SourceNVD

Weakness definitions

CWE-88: CWE-88

Related attack patterns (CAPEC)

CAPEC-41 Using Meta-characters in E-mail Headers to Inject Malicious Payloads via CWE-88

CAPEC-174 Flash Parameter Injection via CWE-88

CAPEC-460 HTTP Parameter Pollution (HPP) via CWE-88

CAPEC-88 OS Command Injection via CWE-88

CAPEC-137 Parameter Injection via CWE-88

Mapping is CWE to CAPEC per MITRE CAPEC 3.9.

Analysis AI-written, not human-reviewed

A vulnerability in the University of Washington IMAP Toolkit 2007f on UNIX, as used in imap_open() in PHP and other products, allows remote attackers to execute arbitrary OS commands due to improper handling of untrusted input for the IMAP server name.

The vulnerability arises from the imap_rimap function in c-client/imap4r1.c and the tcp_aopen function in osdep/unix/tcp_unix.c, which launch an rsh command without preventing argument injection. This can be exploited if the IMAP server name is derived from untrusted input.

Questions

What is CVE-2018-19518?

A vulnerability in the University of Washington IMAP Toolkit 2007f on UNIX, as used in imap_open() in PHP and other products, allows remote attackers to execute arbitrary OS commands due to improper handling of untrusted input for the IMAP server name.

What is the CVSS score for CVE-2018-19518?

CVE-2018-19518 has CVSS 7.5 (High). Vector: CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H. EPSS: 96.1%.

Is CVE-2018-19518 actively exploited?

Public exploit available for CVE-2018-19518. Exploitation risk elevated.

How do I remediate CVE-2018-19518?

Priority: IMMEDIATE. Advisory: https://bugs.php.net/bug.php?id=76428 PSIRT: [email protected]

What systems are affected by CVE-2018-19518?

CVE-2018-19518 affects Canonical Ubuntu Linux; Debian Debian Linux; Php Php; Uw-Imap Project Uw-Imap.

For developers and AI agents

Run this check from your own code or agent

REST API

curl -s https://breachspider.com/api/v1/assets/correlate-cves \
 -H "Authorization: Bearer $BREACHSPIDER_API_KEY" \
 -H "Content-Type: application/json" \
 -d '{"assets":[{"asset_id":"dev-1","vendor":"Canonical","product":"Ubuntu Linux","version":"1.0"}]}'

API reference

Python SDK

pip install breachspider

PyPI · GitHub

MCP for AI agents

# hosted: add as a connector
https://mcp.breachspider.com/mcp
# local
pipx install breachspider-mcp

Setup for Claude, ChatGPT, Cursor

Free trial: 14 days, 750 device checks, no card.

Page facts from NVD, MITRE, CISA and vendor advisories, record last modified 2026-08-27.