CVE catalog

CVE-2018-19518

uw-imap: CVE-2018-19518

[CVE catalog]

Severity
High · CVSS 8.1CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
Published
Source
[NVD] · [CVE record]
EPSS
96.11% · Oct 25, 2026

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.

Vulnerable and fixed packages

Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.

DistributionPackageReleaseVersionStatus
Debianuw-imapbookworm8:2007f~dfsg-7fixed
Ubuntuphp-imap14.045.4.6-0ubuntu3vulnerable
Ubuntuphp-imap14.045.4.6-0ubuntu5vulnerable
Ubuntuphp-imap14.045.4.6-0ubuntu5.1fixed
Ubuntuuw-imappro8:2007e~dfsg-3.2ubuntu2vulnerable
Ubuntuuw-imappro8:2007f~dfsg-2vulnerable
Ubuntuuw-imappro8:2007f~dfsg-2ubuntu0.1~esm1fixed
Ubuntuphp7.016.047.0.1-5vulnerable
Ubuntuphp7.016.047.0.1-6vulnerable
Ubuntuphp7.016.047.0.2-1vulnerable
Ubuntuphp7.016.047.0.2-3vulnerable
Ubuntuphp7.016.047.0.2-4vulnerable
Ubuntuphp7.016.047.0.2-5vulnerable
Ubuntuphp7.016.047.0.3-2vulnerable
Ubuntuphp7.016.047.0.3-3vulnerable
Ubuntuphp7.016.047.0.3-9ubuntu1vulnerable
Ubuntuphp7.016.047.0.4-5ubuntu1vulnerable
Ubuntuphp7.016.047.0.4-5ubuntu2vulnerable
Ubuntuphp7.016.047.0.4-7ubuntu1vulnerable
Ubuntuphp7.016.047.0.4-7ubuntu2vulnerable
Ubuntuphp7.016.047.0.4-7ubuntu2.1vulnerable
Ubuntuphp7.016.047.0.8-0ubuntu0.16.04.1vulnerable
Ubuntuphp7.016.047.0.8-0ubuntu0.16.04.2vulnerable
Ubuntuphp7.016.047.0.8-0ubuntu0.16.04.3vulnerable
Ubuntuphp7.016.047.0.13-0ubuntu0.16.04.1vulnerable
Ubuntuphp7.016.047.0.15-0ubuntu0.16.04.1vulnerable
Ubuntuphp7.016.047.0.15-0ubuntu0.16.04.2vulnerable
Ubuntuphp7.016.047.0.15-0ubuntu0.16.04.4vulnerable
Ubuntuphp7.016.047.0.18-0ubuntu0.16.04.1vulnerable
Ubuntuphp7.016.047.0.22-0ubuntu0.16.04.1vulnerable
Ubuntuphp7.016.047.0.25-0ubuntu0.16.04.1vulnerable
Ubuntuphp7.016.047.0.28-0ubuntu0.16.04.1vulnerable
Ubuntuphp7.016.047.0.30-0ubuntu0.16.04.1vulnerable
Ubuntuphp7.016.047.0.32-0ubuntu0.16.04.1vulnerable
Ubuntuphp7.016.047.0.33-0ubuntu0.16.04.1fixed
Ubuntuuw-imap16.048:2007f~dfsg-4vulnerable
Ubuntuuw-imap16.048:2007f~dfsg-4+deb8u1build0.16.04.1fixed
Ubuntuphp7.218.047.2.1-1ubuntu2vulnerable
Ubuntuphp7.218.047.2.2-1ubuntu1vulnerable
Ubuntuphp7.218.047.2.2-1ubuntu2vulnerable
Ubuntuphp7.218.047.2.3-1ubuntu1vulnerable
Ubuntuphp7.218.047.2.5-0ubuntu0.18.04.1vulnerable
Ubuntuphp7.218.047.2.7-0ubuntu0.18.04.1vulnerable
Ubuntuphp7.218.047.2.7-0ubuntu0.18.04.2vulnerable
Ubuntuphp7.218.047.2.10-0ubuntu0.18.04.1vulnerable
Ubuntuphp7.218.047.2.15-0ubuntu0.18.04.1fixed
Ubuntuuw-imap18.048:2007f~dfsg-5vulnerable
Ubuntuuw-imap18.048:2007f~dfsg-5build1vulnerable
Ubuntuuw-imap18.048:2007f~dfsg-5ubuntu0.18.04.1vulnerable
Ubuntuuw-imap18.048:2007f~dfsg-5ubuntu0.18.04.2fixed
Ubuntuuw-imap16.048:2007f~dfsg-4vulnerable
Ubuntuuw-imap16.048:2007f~dfsg-4+deb8u1build0.16.04.1fixed
Ubuntuuw-imap18.048:2007f~dfsg-5vulnerable
Ubuntuuw-imap18.048:2007f~dfsg-5build1vulnerable
Ubuntuuw-imap18.048:2007f~dfsg-5ubuntu0.18.04.1vulnerable
Ubuntuuw-imap18.048:2007f~dfsg-5ubuntu0.18.04.2fixed
Susephp53linux enterprise software development kit 11 sp45.3.17-112.45.1fixed
Susephp53linux enterprise server 11 sp45.3.17-112.45.1fixed
Susephp53linux enterprise server for sap applications 11 sp45.3.17-112.45.1fixed
Susephp5linux enterprise module for web and scripting 125.5.14-109.45.2fixed
Susephp5linux enterprise software development kit 12 sp35.5.14-109.45.2fixed
Susephp5linux enterprise software development kit 12 sp45.5.14-109.45.2fixed
Susephp7linux enterprise module for web and scripting 127.0.7-50.56.2fixed
Susephp7linux enterprise software development kit 12 sp37.0.7-50.56.2fixed
Susephp7linux enterprise software development kit 12 sp47.0.7-50.56.2fixed

Fixed-version evidence

DistributionPackageTypeReleaseFixed versionUrgencyOriginBugs
Debianuw-imapsourcebookworm8:2007f~dfsg-6not yet assignedNot reported[914632]
Ubuntuphp-imapdeb14.045.4.6-0ubuntu5.1Not reportedUBUNTU-CVE-2018-19518Not reported
Ubuntuuw-imapdebpro8:2007f~dfsg-2ubuntu0.1~esm1Not reportedUBUNTU-CVE-2018-19518Not reported
Ubuntuphp7.0deb16.047.0.33-0ubuntu0.16.04.1Not reportedUBUNTU-CVE-2018-19518Not reported
Ubuntuuw-imapdeb16.048:2007f~dfsg-4+deb8u1build0.16.04.1Not reportedUBUNTU-CVE-2018-19518Not reported
Ubuntuphp7.2deb18.047.2.15-0ubuntu0.18.04.1Not reportedUBUNTU-CVE-2018-19518Not reported
Ubuntuuw-imapdeb18.048:2007f~dfsg-5ubuntu0.18.04.2Not reportedUBUNTU-CVE-2018-19518Not reported
Ubuntuuw-imapdeb16.048:2007f~dfsg-4+deb8u1build0.16.04.1Not reportedUSN-4160-1Not reported
Ubuntuuw-imapdeb18.048:2007f~dfsg-5ubuntu0.18.04.2Not reportedUSN-4160-1Not reported
Susephp53rpmlinux enterprise software development kit 11 sp45.3.17-112.45.1Not reportedSUSE-SU-2018:3986-1Not reported
Susephp53rpmlinux enterprise server 11 sp45.3.17-112.45.1Not reportedSUSE-SU-2018:3986-1Not reported
Susephp53rpmlinux enterprise server for sap applications 11 sp45.3.17-112.45.1Not reportedSUSE-SU-2018:3986-1Not reported
Susephp5rpmlinux enterprise module for web and scripting 125.5.14-109.45.2Not reportedSUSE-SU-2018:3995-1Not reported
Susephp5rpmlinux enterprise software development kit 12 sp35.5.14-109.45.2Not reportedSUSE-SU-2018:3995-1Not reported
Susephp5rpmlinux enterprise software development kit 12 sp45.5.14-109.45.2Not reportedSUSE-SU-2018:3995-1Not reported
Susephp7rpmlinux enterprise module for web and scripting 127.0.7-50.56.2Not reportedSUSE-SU-2018:3988-1Not reported
Susephp7rpmlinux enterprise software development kit 12 sp37.0.7-50.56.2Not reportedSUSE-SU-2018:3988-1Not reported
Susephp7rpmlinux enterprise software development kit 12 sp47.0.7-50.56.2Not reportedSUSE-SU-2018:3988-1Not reported

[Debian bug #914632]

OpenFactory catalog packages

[Debian 12 (Bookworm)]

  • Source package: [uw-imap]

    Details (2)
    • 8:2007f~dfsg-7+b1 · arm64 · bookworm

      Fixed · Fixed: 8:2007f~dfsg-6

      dsa · uw-imap · debian · bookworm; dsa · uw-imap · debian · 12

    • 8:2007f~dfsg-7+b2 · amd64 · bookworm

      Fixed · Fixed: 8:2007f~dfsg-6

      dsa · uw-imap · debian · bookworm; dsa · uw-imap · debian · 12

  • Source package: [uw-imap]

    Details (2)
    • 8:2007f~dfsg-7+b1 · arm64 · bookworm

      Fixed · Fixed: 8:2007f~dfsg-6

      dsa · uw-imap · debian · bookworm; dsa · uw-imap · debian · 12

    • 8:2007f~dfsg-7+b2 · amd64 · bookworm

      Fixed · Fixed: 8:2007f~dfsg-6

      dsa · uw-imap · debian · bookworm; dsa · uw-imap · debian · 12

  • [mlock]Fixed

    Source package: [uw-imap]

    Details (2)
    • 8:2007f~dfsg-7+b1 · arm64 · bookworm

      Fixed · Fixed: 8:2007f~dfsg-6

      dsa · uw-imap · debian · bookworm; dsa · uw-imap · debian · 12

    • 8:2007f~dfsg-7+b2 · amd64 · bookworm

      Fixed · Fixed: 8:2007f~dfsg-6

      dsa · uw-imap · debian · bookworm; dsa · uw-imap · debian · 12

  • Source package: [uw-imap]

    Details (2)
    • 8:2007f~dfsg-7+b1 · arm64 · bookworm

      Fixed · Fixed: 8:2007f~dfsg-6

      dsa · uw-imap · debian · bookworm; dsa · uw-imap · debian · 12

    • 8:2007f~dfsg-7+b2 · amd64 · bookworm

      Fixed · Fixed: 8:2007f~dfsg-6

      dsa · uw-imap · debian · bookworm; dsa · uw-imap · debian · 12

Observed:

References