Courier-IMAP: Remote execution of arbitrary code A vulnerability has been discovered in Courier-IMAP allowing for remote code execution with root privileges. courier-imap 2007-04-22 2007-04-23 168196 remote 4.0.6-r2 4.0.0 4.0.6-r2

Courier-IMAP is an IMAP server which is part of the Courier mail system. It provides access only to maildirs.

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

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

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"
jaervosz jaervosz p-y