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

high Nessus Plugin ID 25106

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.

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'

See Also

https://security.gentoo.org/glsa/200704-18

Plugin Details

Severity: High

ID: 25106

File Name: gentoo_GLSA-200704-18.nasl

Version: 1.14

Type: local

Published: 4/30/2007

Updated: 1/6/2021

Supported Sensors: Nessus

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: 4/22/2007

Vulnerability Publication Date: 2/23/2007

Reference Information

GLSA: 200704-18