ubuntu-cve-2018-19518
Vulnerability from osv_ubuntu
Published
2018-11-25 10:29
Modified
2026-04-22 07:38
Summary
Details
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
7.5 (High)
7.5 (High)
N/A (UNKNOWN)
References
{
"affected": [
{
"ecosystem_specific": {
"availability": "No subscription required",
"binaries": [
{
"binary_name": "php5-imap",
"binary_version": "5.4.6-0ubuntu5.1"
}
]
},
"package": {
"ecosystem": "Ubuntu:14.04:LTS",
"name": "php-imap",
"purl": "pkg:deb/ubuntu/php-imap@5.4.6-0ubuntu5.1?arch=source\u0026distro=trusty"
},
"ranges": [
{
"events": [
{
"introduced": "0"
},
{
"fixed": "5.4.6-0ubuntu5.1"
}
],
"type": "ECOSYSTEM"
}
],
"versions": [
"5.4.6-0ubuntu3",
"5.4.6-0ubuntu5"
]
},
{
"ecosystem_specific": {
"availability": "Available with Ubuntu Pro (Infra-only): https://ubuntu.com/pro",
"binaries": [
{
"binary_name": "libc-client2007e",
"binary_version": "8:2007f~dfsg-2ubuntu0.1~esm1"
},
{
"binary_name": "mlock",
"binary_version": "8:2007f~dfsg-2ubuntu0.1~esm1"
},
{
"binary_name": "uw-mailutils",
"binary_version": "8:2007f~dfsg-2ubuntu0.1~esm1"
}
]
},
"package": {
"ecosystem": "Ubuntu:Pro:14.04:LTS",
"name": "uw-imap",
"purl": "pkg:deb/ubuntu/uw-imap@8:2007f~dfsg-2ubuntu0.1~esm1?arch=source\u0026distro=trusty/esm"
},
"ranges": [
{
"events": [
{
"introduced": "0"
},
{
"fixed": "8:2007f~dfsg-2ubuntu0.1~esm1"
}
],
"type": "ECOSYSTEM"
}
],
"versions": [
"8:2007e~dfsg-3.2ubuntu2",
"8:2007f~dfsg-2"
]
},
{
"ecosystem_specific": {
"availability": "No subscription required",
"binaries": [
{
"binary_name": "libapache2-mod-php7.0",
"binary_version": "7.0.33-0ubuntu0.16.04.1"
},
{
"binary_name": "libphp7.0-embed",
"binary_version": "7.0.33-0ubuntu0.16.04.1"
},
{
"binary_name": "php7.0",
"binary_version": "7.0.33-0ubuntu0.16.04.1"
},
{
"binary_name": "php7.0-bcmath",
"binary_version": "7.0.33-0ubuntu0.16.04.1"
},
{
"binary_name": "php7.0-bz2",
"binary_version": "7.0.33-0ubuntu0.16.04.1"
},
{
"binary_name": "php7.0-cgi",
"binary_version": "7.0.33-0ubuntu0.16.04.1"
},
{
"binary_name": "php7.0-cli",
"binary_version": "7.0.33-0ubuntu0.16.04.1"
},
{
"binary_name": "php7.0-common",
"binary_version": "7.0.33-0ubuntu0.16.04.1"
},
{
"binary_name": "php7.0-curl",
"binary_version": "7.0.33-0ubuntu0.16.04.1"
},
{
"binary_name": "php7.0-dba",
"binary_version": "7.0.33-0ubuntu0.16.04.1"
},
{
"binary_name": "php7.0-enchant",
"binary_version": "7.0.33-0ubuntu0.16.04.1"
},
{
"binary_name": "php7.0-fpm",
"binary_version": "7.0.33-0ubuntu0.16.04.1"
},
{
"binary_name": "php7.0-gd",
"binary_version": "7.0.33-0ubuntu0.16.04.1"
},
{
"binary_name": "php7.0-gmp",
"binary_version": "7.0.33-0ubuntu0.16.04.1"
},
{
"binary_name": "php7.0-imap",
"binary_version": "7.0.33-0ubuntu0.16.04.1"
},
{
"binary_name": "php7.0-interbase",
"binary_version": "7.0.33-0ubuntu0.16.04.1"
},
{
"binary_name": "php7.0-intl",
"binary_version": "7.0.33-0ubuntu0.16.04.1"
},
{
"binary_name": "php7.0-json",
"binary_version": "7.0.33-0ubuntu0.16.04.1"
},
{
"binary_name": "php7.0-ldap",
"binary_version": "7.0.33-0ubuntu0.16.04.1"
},
{
"binary_name": "php7.0-mbstring",
"binary_version": "7.0.33-0ubuntu0.16.04.1"
},
{
"binary_name": "php7.0-mcrypt",
"binary_version": "7.0.33-0ubuntu0.16.04.1"
},
{
"binary_name": "php7.0-mysql",
"binary_version": "7.0.33-0ubuntu0.16.04.1"
},
{
"binary_name": "php7.0-odbc",
"binary_version": "7.0.33-0ubuntu0.16.04.1"
},
{
"binary_name": "php7.0-opcache",
"binary_version": "7.0.33-0ubuntu0.16.04.1"
},
{
"binary_name": "php7.0-pgsql",
"binary_version": "7.0.33-0ubuntu0.16.04.1"
},
{
"binary_name": "php7.0-phpdbg",
"binary_version": "7.0.33-0ubuntu0.16.04.1"
},
{
"binary_name": "php7.0-pspell",
"binary_version": "7.0.33-0ubuntu0.16.04.1"
},
{
"binary_name": "php7.0-readline",
"binary_version": "7.0.33-0ubuntu0.16.04.1"
},
{
"binary_name": "php7.0-recode",
"binary_version": "7.0.33-0ubuntu0.16.04.1"
},
{
"binary_name": "php7.0-snmp",
"binary_version": "7.0.33-0ubuntu0.16.04.1"
},
{
"binary_name": "php7.0-soap",
"binary_version": "7.0.33-0ubuntu0.16.04.1"
},
{
"binary_name": "php7.0-sqlite3",
"binary_version": "7.0.33-0ubuntu0.16.04.1"
},
{
"binary_name": "php7.0-sybase",
"binary_version": "7.0.33-0ubuntu0.16.04.1"
},
{
"binary_name": "php7.0-tidy",
"binary_version": "7.0.33-0ubuntu0.16.04.1"
},
{
"binary_name": "php7.0-xml",
"binary_version": "7.0.33-0ubuntu0.16.04.1"
},
{
"binary_name": "php7.0-xmlrpc",
"binary_version": "7.0.33-0ubuntu0.16.04.1"
},
{
"binary_name": "php7.0-xsl",
"binary_version": "7.0.33-0ubuntu0.16.04.1"
},
{
"binary_name": "php7.0-zip",
"binary_version": "7.0.33-0ubuntu0.16.04.1"
}
]
},
"package": {
"ecosystem": "Ubuntu:16.04:LTS",
"name": "php7.0",
"purl": "pkg:deb/ubuntu/php7.0@7.0.33-0ubuntu0.16.04.1?arch=source\u0026distro=xenial"
},
"ranges": [
{
"events": [
{
"introduced": "0"
},
{
"fixed": "7.0.33-0ubuntu0.16.04.1"
}
],
"type": "ECOSYSTEM"
}
],
"versions": [
"7.0.1-5",
"7.0.1-6",
"7.0.2-1",
"7.0.2-3",
"7.0.2-4",
"7.0.2-5",
"7.0.3-2",
"7.0.3-3",
"7.0.3-9ubuntu1",
"7.0.4-5ubuntu1",
"7.0.4-5ubuntu2",
"7.0.4-7ubuntu1",
"7.0.4-7ubuntu2",
"7.0.4-7ubuntu2.1",
"7.0.8-0ubuntu0.16.04.1",
"7.0.8-0ubuntu0.16.04.2",
"7.0.8-0ubuntu0.16.04.3",
"7.0.13-0ubuntu0.16.04.1",
"7.0.15-0ubuntu0.16.04.1",
"7.0.15-0ubuntu0.16.04.2",
"7.0.15-0ubuntu0.16.04.4",
"7.0.18-0ubuntu0.16.04.1",
"7.0.22-0ubuntu0.16.04.1",
"7.0.25-0ubuntu0.16.04.1",
"7.0.28-0ubuntu0.16.04.1",
"7.0.30-0ubuntu0.16.04.1",
"7.0.32-0ubuntu0.16.04.1"
]
},
{
"ecosystem_specific": {
"availability": "No subscription required",
"binaries": [
{
"binary_name": "libc-client2007e",
"binary_version": "8:2007f~dfsg-4+deb8u1build0.16.04.1"
},
{
"binary_name": "mlock",
"binary_version": "8:2007f~dfsg-4+deb8u1build0.16.04.1"
},
{
"binary_name": "uw-mailutils",
"binary_version": "8:2007f~dfsg-4+deb8u1build0.16.04.1"
}
]
},
"package": {
"ecosystem": "Ubuntu:16.04:LTS",
"name": "uw-imap",
"purl": "pkg:deb/ubuntu/uw-imap@8:2007f~dfsg-4+deb8u1build0.16.04.1?arch=source\u0026distro=xenial"
},
"ranges": [
{
"events": [
{
"introduced": "0"
},
{
"fixed": "8:2007f~dfsg-4+deb8u1build0.16.04.1"
}
],
"type": "ECOSYSTEM"
}
],
"versions": [
"8:2007f~dfsg-4"
]
},
{
"ecosystem_specific": {
"availability": "No subscription required",
"binaries": [
{
"binary_name": "libapache2-mod-php7.2",
"binary_version": "7.2.15-0ubuntu0.18.04.1"
},
{
"binary_name": "libphp7.2-embed",
"binary_version": "7.2.15-0ubuntu0.18.04.1"
},
{
"binary_name": "php7.2",
"binary_version": "7.2.15-0ubuntu0.18.04.1"
},
{
"binary_name": "php7.2-bcmath",
"binary_version": "7.2.15-0ubuntu0.18.04.1"
},
{
"binary_name": "php7.2-bz2",
"binary_version": "7.2.15-0ubuntu0.18.04.1"
},
{
"binary_name": "php7.2-cgi",
"binary_version": "7.2.15-0ubuntu0.18.04.1"
},
{
"binary_name": "php7.2-cli",
"binary_version": "7.2.15-0ubuntu0.18.04.1"
},
{
"binary_name": "php7.2-common",
"binary_version": "7.2.15-0ubuntu0.18.04.1"
},
{
"binary_name": "php7.2-curl",
"binary_version": "7.2.15-0ubuntu0.18.04.1"
},
{
"binary_name": "php7.2-dba",
"binary_version": "7.2.15-0ubuntu0.18.04.1"
},
{
"binary_name": "php7.2-enchant",
"binary_version": "7.2.15-0ubuntu0.18.04.1"
},
{
"binary_name": "php7.2-fpm",
"binary_version": "7.2.15-0ubuntu0.18.04.1"
},
{
"binary_name": "php7.2-gd",
"binary_version": "7.2.15-0ubuntu0.18.04.1"
},
{
"binary_name": "php7.2-gmp",
"binary_version": "7.2.15-0ubuntu0.18.04.1"
},
{
"binary_name": "php7.2-imap",
"binary_version": "7.2.15-0ubuntu0.18.04.1"
},
{
"binary_name": "php7.2-interbase",
"binary_version": "7.2.15-0ubuntu0.18.04.1"
},
{
"binary_name": "php7.2-intl",
"binary_version": "7.2.15-0ubuntu0.18.04.1"
},
{
"binary_name": "php7.2-json",
"binary_version": "7.2.15-0ubuntu0.18.04.1"
},
{
"binary_name": "php7.2-ldap",
"binary_version": "7.2.15-0ubuntu0.18.04.1"
},
{
"binary_name": "php7.2-mbstring",
"binary_version": "7.2.15-0ubuntu0.18.04.1"
},
{
"binary_name": "php7.2-mysql",
"binary_version": "7.2.15-0ubuntu0.18.04.1"
},
{
"binary_name": "php7.2-odbc",
"binary_version": "7.2.15-0ubuntu0.18.04.1"
},
{
"binary_name": "php7.2-opcache",
"binary_version": "7.2.15-0ubuntu0.18.04.1"
},
{
"binary_name": "php7.2-pgsql",
"binary_version": "7.2.15-0ubuntu0.18.04.1"
},
{
"binary_name": "php7.2-phpdbg",
"binary_version": "7.2.15-0ubuntu0.18.04.1"
},
{
"binary_name": "php7.2-pspell",
"binary_version": "7.2.15-0ubuntu0.18.04.1"
},
{
"binary_name": "php7.2-readline",
"binary_version": "7.2.15-0ubuntu0.18.04.1"
},
{
"binary_name": "php7.2-recode",
"binary_version": "7.2.15-0ubuntu0.18.04.1"
},
{
"binary_name": "php7.2-snmp",
"binary_version": "7.2.15-0ubuntu0.18.04.1"
},
{
"binary_name": "php7.2-soap",
"binary_version": "7.2.15-0ubuntu0.18.04.1"
},
{
"binary_name": "php7.2-sqlite3",
"binary_version": "7.2.15-0ubuntu0.18.04.1"
},
{
"binary_name": "php7.2-sybase",
"binary_version": "7.2.15-0ubuntu0.18.04.1"
},
{
"binary_name": "php7.2-tidy",
"binary_version": "7.2.15-0ubuntu0.18.04.1"
},
{
"binary_name": "php7.2-xml",
"binary_version": "7.2.15-0ubuntu0.18.04.1"
},
{
"binary_name": "php7.2-xmlrpc",
"binary_version": "7.2.15-0ubuntu0.18.04.1"
},
{
"binary_name": "php7.2-xsl",
"binary_version": "7.2.15-0ubuntu0.18.04.1"
},
{
"binary_name": "php7.2-zip",
"binary_version": "7.2.15-0ubuntu0.18.04.1"
}
]
},
"package": {
"ecosystem": "Ubuntu:18.04:LTS",
"name": "php7.2",
"purl": "pkg:deb/ubuntu/php7.2@7.2.15-0ubuntu0.18.04.1?arch=source\u0026distro=bionic"
},
"ranges": [
{
"events": [
{
"introduced": "0"
},
{
"fixed": "7.2.15-0ubuntu0.18.04.1"
}
],
"type": "ECOSYSTEM"
}
],
"versions": [
"7.2.1-1ubuntu2",
"7.2.2-1ubuntu1",
"7.2.2-1ubuntu2",
"7.2.3-1ubuntu1",
"7.2.5-0ubuntu0.18.04.1",
"7.2.7-0ubuntu0.18.04.1",
"7.2.7-0ubuntu0.18.04.2",
"7.2.10-0ubuntu0.18.04.1"
]
},
{
"ecosystem_specific": {
"availability": "No subscription required",
"binaries": [
{
"binary_name": "libc-client2007e",
"binary_version": "8:2007f~dfsg-5ubuntu0.18.04.2"
},
{
"binary_name": "mlock",
"binary_version": "8:2007f~dfsg-5ubuntu0.18.04.2"
},
{
"binary_name": "uw-mailutils",
"binary_version": "8:2007f~dfsg-5ubuntu0.18.04.2"
}
]
},
"package": {
"ecosystem": "Ubuntu:18.04:LTS",
"name": "uw-imap",
"purl": "pkg:deb/ubuntu/uw-imap@8:2007f~dfsg-5ubuntu0.18.04.2?arch=source\u0026distro=bionic"
},
"ranges": [
{
"events": [
{
"introduced": "0"
},
{
"fixed": "8:2007f~dfsg-5ubuntu0.18.04.2"
}
],
"type": "ECOSYSTEM"
}
],
"versions": [
"8:2007f~dfsg-5",
"8:2007f~dfsg-5build1",
"8:2007f~dfsg-5ubuntu0.18.04.1"
]
}
],
"aliases": [],
"details": "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.",
"id": "UBUNTU-CVE-2018-19518",
"modified": "2026-04-22T07:38:46Z",
"published": "2018-11-25T10:29:00Z",
"references": [
{
"type": "REPORT",
"url": "https://ubuntu.com/security/CVE-2018-19518"
},
{
"type": "REPORT",
"url": "https://www.openwall.com/lists/oss-security/2018/11/22/3"
},
{
"type": "REPORT",
"url": "https://antichat.com/threads/463395/#post-4254681"
},
{
"type": "REPORT",
"url": "https://github.com/Bo0oM/PHP_imap_open_exploit/blob/master/exploit.php"
},
{
"type": "ADVISORY",
"url": "https://ubuntu.com/security/notices/USN-4160-1"
},
{
"type": "REPORT",
"url": "https://www.cve.org/CVERecord?id=CVE-2018-19518"
}
],
"related": [
"USN-4160-1"
],
"schema_version": "1.7.0",
"severity": [
{
"score": "CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H",
"type": "CVSS_V3"
},
{
"score": "CVSS:3.0/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H",
"type": "CVSS_V3"
},
{
"score": "medium",
"type": "Ubuntu"
}
],
"upstream": [
"CVE-2018-19518"
]
}
Loading…
Loading…
Experimental. This forecast is provided for visualization only and may change without notice. Do not use it for operational decisions.
Forecast uses a logistic model when the trend is rising, or an exponential decay model when the trend is falling. Fitted via linearized least squares.
Sightings
| Author | Source | Type | Date | Other |
|---|
Nomenclature
- Seen: The vulnerability was mentioned, discussed, or observed by the user.
- Confirmed: The vulnerability has been validated from an analyst's perspective.
- Published Proof of Concept: A public proof of concept is available for this vulnerability.
- Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
- Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
- Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
- Not confirmed: The user expressed doubt about the validity of the vulnerability.
- Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.
Loading…
Loading…