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

This script is Copyright (C) 2007-2014 Tenable Network Security, Inc.


Synopsis :

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

Description :

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.

See also :

http://www.gentoo.org/security/en/glsa/glsa-200704-18.xml

Solution :

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

Risk factor :

High

Family: Gentoo Local Security Checks

Nessus Plugin ID: 25106 (gentoo_GLSA-200704-18.nasl)

Bugtraq ID:

CVE ID: