Executive Summary

Summary
Title Cyrus IMAPd buffer overflow vulnerability
Informations
NameVU#336053First vendor Publication2009-09-09
VendorVU-CERTLast vendor Modification2009-09-11
Severity (Vendor) N/ARevisionM

Security-Database Scoring CVSS v2

Cvss vector : (AV:L/AC:M/Au:N/C:P/I:P/A:P)
Cvss Base Score4.4Attack RangeLocal
Cvss Impact Score6.4Attack ComplexityMedium
Cvss Expoit Score3.4AuthentificationNone Required
Calculate full CVSS 2.0 Vectors scores

Detail

Vulnerability Note VU#336053

Cyrus IMAPd buffer overflow vulnerability

Overview

The Cyrus IMAP server contains a vulnerability that may allow an authenticated attacker to execute code.

I. Description

The Cyrus IMAP mail server supports the SIEVE mail filtering language. Cyrus IMAP versions 2.2 through 2.3.14 contain a buffer overflow vulnerability that may be triggered by a specially crafted SIEVE script. To install this type of script, the attacker would need to have direct access to a mail account on the server.

II. Impact

An attacker with the ability to install SIEVE scripts may be able to gain elevated privileges and use the new permissions to execute code, read other user's mail, or send spoofed email messages.

III. Solution

Update

The Cyrus IMAP team has released an update to address this issue. See http//lists.andrew.cmu.edu/pipermail/cyrus-announce/2009-September/000068.ht... for more information.

Disable SIEVE


Administrators who compile Cyrus IMAP from source can use the --disable-sieve option to mitigate this issue.

Systems Affected

VendorStatusDate NotifiedDate Updated
Apple Inc.Unknown2009-09-042009-09-05
Conectiva Inc.Unknown2009-09-042009-09-05
Cray Inc.Unknown2009-09-042009-09-05
Debian GNU/LinuxVulnerable2009-09-042009-09-10
DragonFly BSD ProjectUnknown2009-09-042009-09-05
EMC CorporationUnknown2009-09-042009-09-05
Engarde Secure LinuxUnknown2009-09-042009-09-05
F5 Networks, Inc.Unknown2009-09-042009-09-05
Fedora ProjectUnknown2009-09-042009-09-05
FreeBSD, Inc.Unknown2009-09-042009-09-05
FujitsuUnknown2009-09-042009-09-05
Gentoo LinuxUnknown2009-09-042009-09-05
Hewlett-Packard CompanyUnknown2009-09-042009-09-05
HitachiUnknown2009-09-042009-09-05
IBM CorporationUnknown2009-09-042009-09-05
IBM eServerUnknown2009-09-042009-09-05
InfobloxUnknown2009-09-042009-09-05
Juniper Networks, Inc.Unknown2009-09-042009-09-05
Mandriva S. A.Unknown2009-09-042009-09-05
Microsoft CorporationUnknown2009-09-042009-09-05
MontaVista Software, Inc.Unknown2009-09-042009-09-05
NEC CorporationUnknown2009-09-042009-09-05
NetBSDUnknown2009-09-042009-09-05
NokiaUnknown2009-09-042009-09-05
Novell, Inc.Unknown2009-09-042009-09-05
OpenBSDUnknown2009-09-042009-09-05
Openwall GNU/*/LinuxUnknown2009-09-042009-09-10
QNX Software Systems Inc.Unknown2009-09-042009-09-05
Red Hat, Inc.Unknown2009-09-042009-09-05
SafeNetUnknown2009-09-042009-09-05
Silicon Graphics, Inc.Unknown2009-09-042009-09-05
Slackware Linux Inc.Not Vulnerable2009-09-042009-09-11
Sony CorporationUnknown2009-09-042009-09-05
Sun Microsystems, Inc.Not Vulnerable2009-09-042009-09-10
SUSE LinuxVulnerable2009-09-042009-09-10
The SCO GroupVulnerable2009-09-042009-09-08
TurbolinuxUnknown2009-09-042009-09-05
UbuntuUnknown2009-09-042009-09-05
UnisysUnknown2009-09-042009-09-05
Wind River Systems, Inc.Unknown2009-09-042009-09-05

References


http//lists.andrew.cmu.edu/pipermail/cyrus-announce/2009-September/000068.ht...
http://cyrusimap.web.cmu.edu/imapd/install-compile.html
http://en.wikipedia.org/wiki/Sieve_(mail_filtering_language)

Credit

Thanks to the Cyrus IMAP development team and Bron Gondwana for information that was used in this report.

This document was written by Ryan Giobbi.

Other Information

Date Public:2009-09-07
Date First Published:2009-09-09
Date Last Updated:2009-09-11
CERT Advisory:
CVE-ID(s):CVE-2009-2632
NVD-ID(s):CVE-2009-2632
US-CERT Technical Alerts:
Metric:0.56
Document Revision:18

Original Source

Url : http://www.kb.cert.org/vuls/id/336053

CWE : Common Weakness Enumeration

idName
CWE-119Failure to Constrain Operations within the Bounds of a Memory Buffer

OVAL Definitions

Definition Id: oval:org.mitre.oval:def:10082
 
Oval ID: oval:org.mitre.oval:def:10082
Title: Buffer overflow in the SIEVE script component (sieve/script.c), as used in cyrus-imapd in Cyrus IMAP Server 2.2.13 and 2.3.14, and Dovecot 1.0 before 1.0.4 and 1.1 before 1.1.7, allows local users to execute arbitrary code and read or modify arbitrary messages via a crafted SIEVE script, related to the incorrect use of the sizeof operator for determining buffer length, combined with an integer signedness error.
Description: Buffer overflow in the SIEVE script component (sieve/script.c), as used in cyrus-imapd in Cyrus IMAP Server 2.2.13 and 2.3.14, and Dovecot 1.0 before 1.0.4 and 1.1 before 1.1.7, allows local users to execute arbitrary code and read or modify arbitrary messages via a crafted SIEVE script, related to the incorrect use of the sizeof operator for determining buffer length, combined with an integer signedness error.
Family: unix Class: vulnerability
Reference(s): CVE-2009-2632
Version: 5
Platform(s): Red Hat Enterprise Linux 4
CentOS Linux 4
Oracle Linux 4
Red Hat Enterprise Linux 5
CentOS Linux 5
Oracle Linux 5
Product(s):
Definition Synopsis:

CPE : Common Platform Enumeration

TypeDescriptionCount
Application2

Open Source Vulnerability Database (OSVDB)

idDescription
57843Cyrus IMAP Server (cyrus-imapd) SIEVE Script Component (sieve/script.c) Craft...