GLSA-200408-19 : courier-imap: Remote Format String Vulnerability

high Nessus Plugin ID 14575

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-200408-19 (courier-imap: Remote Format String Vulnerability)

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.)

Solution

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'

See Also

http://www.nessus.org/u?efccf26a

https://security.gentoo.org/glsa/200408-19

Plugin Details

Severity: High

ID: 14575

File Name: gentoo_GLSA-200408-19.nasl

Version: 1.18

Type: local

Published: 8/30/2004

Updated: 1/6/2021

Supported Sensors: Nessus

Risk Information

VPR

Risk Factor: Medium

Score: 6.6

CVSS v2

Risk Factor: High

Base Score: 7.5

Vector: CVSS2#AV:N/AC:L/Au:N/C:P/I:P/A:P

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: 8/19/2004

Vulnerability Publication Date: 8/18/2004

Reference Information

CVE: CVE-2004-0777

GLSA: 200408-19