GLSA-200704-18 : Courier-IMAP: Remote execution of arbitrary code

High Nessus Plugin ID 25106


The remote Gentoo host is missing one or more security-related patches.


The remote host is affected by the vulnerability described in GLSA-200704-18 (Courier-IMAP: Remote execution of arbitrary code)

CJ Kucera has discovered that some Courier-IMAP scripts don't properly handle the XMAILDIR variable, allowing for shell command injection.
Impact :

A remote attacker could send specially crafted login credentials to a Courier-IMAP server instance, possibly leading to remote code execution with root privileges.
Workaround :

There is no known workaround at this time.


All Courier-IMAP users should upgrade to the latest version:
# emerge --sync # emerge --ask --oneshot --verbose '>=net-mail/courier-imap-4.0.6-r2'

See Also

Plugin Details

Severity: High

ID: 25106

File Name: gentoo_GLSA-200704-18.nasl

Version: $Revision: 1.11 $

Type: local

Published: 2007/04/30

Modified: 2015/04/13

Dependencies: 12634

Risk Information

Risk Factor: High

Vulnerability Information

CPE: p-cpe:/a:gentoo:linux:courier-imap, cpe:/o:gentoo:linux

Required KB Items: Host/local_checks_enabled, Host/Gentoo/release, Host/Gentoo/qpkg-list

Patch Publication Date: 2007/04/22

Vulnerability Publication Date: 2007/02/23

Reference Information

OSVDB: 35274

GLSA: 200704-18