portage-ng / portage / net-mail / courier-imap / 5.3.2
portage-ng glsa
3 advisories reference net-mail/courier-imap · none place version 5.3.2 in a vulnerable range
▸ GLSA 200704-18 Courier-IMAP: Remote execution of arbitrary code this version unaffected high remote 2007-04-22

A vulnerability has been discovered in Courier-IMAP allowing for remote code execution with root privileges.

Announced
2007-04-22
Revised
2007-04-23 (revision 2)
Access
remote
Bugs
#168196
Advisory
https://security.gentoo.org/glsa/200704-18

Affected packages

PackageArchVulnerableUnaffected
net-mail/courier-imap*< 4.0.6-r2>= 4.0.6-r2, < 4.0.0

Background

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

Description

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.

Resolution

All Courier-IMAP users should upgrade to the latest version:

# emerge --sync
# emerge --ask --oneshot --verbose ">=net-mail/courier-imap-4.0.6-r2"
▸ GLSA 200408-19 courier-imap: Remote Format String Vulnerability this version unaffected high remote 2004-08-19

There is a format string vulnerability in non-standard configurations of courier-imapd which may be exploited remotely. An attacker may be able to execute arbitrary code as the user running courier-imapd (oftentimes root).

Announced
2004-08-19
Revised
2006-05-22 (revision 2)
Access
remote
Bugs
#60865
Advisory
https://security.gentoo.org/glsa/200408-19

Affected packages

PackageArchVulnerableUnaffected
net-mail/courier-imap*<= 3.0.2-r1>= 3.0.5

Background

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

Description

There is a format string vulnerability in the auth_debug() function which can be exploited remotely, potentially leading to arbitrary code execution as the user running the IMAP daemon (oftentimes root). A remote attacker may send username or password information containing printf() format tokens (such as "%s"), which will crash the server or cause it to execute arbitrary code.

This vulnerability can only be exploited if DEBUG_LOGIN is set to something other than 0 in the imapd config file.

Impact

If DEBUG_LOGIN is enabled in the imapd configuration, a remote attacker may execute arbitrary code as the root user.

Workaround

Set the DEBUG_LOGIN option in /etc/courier-imap/imapd to 0. (This is the default value.)

Resolution

All courier-imap users should upgrade to the latest version:

# emerge sync

# emerge -pv ">=net-mail/courier-imap-3.0.5"
# emerge ">=net-mail/courier-imap-3.0.5"

References

▸ GLSA 200403-06 Multiple remote buffer overflow vulnerabilities in Courier this version unaffected normal remote 2004-03-26

Remote buffer overflow vulnerabilities have been found in Courier-IMAP and Courier MTA. These exploits may allow the execution of abritrary code, allowing unauthorized access to a vulnerable system.

Announced
2004-03-26
Revised
2004-03-26
Access
remote
Bugs
#45584
Advisory
https://security.gentoo.org/glsa/200403-06

Affected packages

PackageArchVulnerableUnaffected
mail-mta/courier*< 0.45>= 0.45
net-mail/courier-imap*< 3.0.0>= 3.0.0

Background

Courier MTA is a multiprotocol mail server suite that provides webmail, mailing lists, IMAP, and POP3 services. Courier-IMAP is a standalone server that gives IMAP access to local mailboxes.

Description

The vulnerabilities have been found in the 'SHIFT_JIS' converter in 'shiftjis.c' and 'ISO2022JP' converter in 'so2022jp.c'. An attacker may supply Unicode characters that exceed BMP (Basic Multilingual Plane) range, causing an overflow.

Impact

An attacker without privileges may exploit this vulnerability remotely, allowing arbitrary code to be executed in order to gain unauthorized access.

Workaround

While a workaround is not currently known for this issue, all users are advised to upgrade to the latest version of the affected packages.

Resolution

All users should upgrade to current versions of the affected packages:

# emerge sync

# emerge -pv ">=net-mail/courier-imap-3.0.0"
# emerge ">=net-mail/courier-imap-3.0.0"

# ** Or; depending on your installation... **

# emerge -pv ">=mail-mta/courier-0.45"
# emerge ">=mail-mta/courier-0.45"

References