CVE-2011-3208: Buffer Overflow

Published Aug 31, 2011
·
Updated

A remotely exploitable buffer overflow flaw was found in Cyrus' nntpd. A malicious NNTP client would be able to exploit this to execute arbitrary code on a vulnerable nntpd server. If the 'allowanonymouslogin' option was set in imapd.conf, it could be done without authentication.

When compiled with FORTIFYSOURCE (the default on Red Hat Enterprise Linux 5 and 6, as well as Fedora), this flaw is not exploitable and will result in a crash of the nntpd service.

The following patch will correct the flaw:

diff --git a/imap/nntpd.c b/imap/nntpd.c index 56405d3..6b30174 100644 --- a/imap/nntpd.c +++ b/imap/nntpd.c @@ -4131,7 +4131,8 @@ static struct wildmat splitwildmats(char str) else if (c == '@') wild[n].not = -1; / absolute not (feeding) / else wild[n].not = 0;

- strcpy(p, wild[n].not ? c + 1 : c); + strncpy(p, wild[n].not ? c + 1 : c, pattern+sizeof(pattern) - p); + pattern[sizeof(pattern)-1] = '\0'; wild[n++].pat = xstrdup(pattern); } while (c != str); wild[n].pat = NULL;

Other sources

Stack-based buffer overflow in the splitwildmats function in nntpd.c in nntpd in Cyrus IMAP Server before 2.3.17 and 2.4.x before 2.4.11 allows remote attackers to execute arbitrary code via a crafted NNTP command.

Affected Software

44 affected componentsFixes available
redhat/cyrus-imapd<0:2.2.12-16.el4
0:2.2.12-16.el4
redhat/cyrus-imapd<0:2.3.7-12.el5_7.1
0:2.3.7-12.el5_7.1
redhat/cyrus-imapd<0:2.3.16-6.el6_1.3
0:2.3.16-6.el6_1.3
redhat/cyrus-imapd<2.4.11
2.4.11
cmu Cyrus Imap Server=2.2.12
cmu Cyrus Imap Server=2.2.14
cmu Cyrus Imap Server=2.3.13
cmu Cyrus Imap Server<=2.3.16
cmu Cyrus Imap Server=2.2.13p1
cmu Cyrus Imap Server=2.3.12
cmu Cyrus Imap Server=2.1.17
cmu Cyrus Imap Server=2.3.6
cmu Cyrus Imap Server=2.3.0
cmu Cyrus Imap Server=2.2.11
cmu Cyrus Imap Server=2.3.14
cmu Cyrus Imap Server=2.3.2
cmu Cyrus Imap Server=2.3.11
cmu Cyrus Imap Server=2.3.8
cmu Cyrus Imap Server=2.3.5
cmu Cyrus Imap Server=2.2.9
cmu Cyrus Imap Server=2.3.9
cmu Cyrus Imap Server=2.3.10
cmu Cyrus Imap Server=2.2.13
cmu Cyrus Imap Server=2.1.16
cmu Cyrus Imap Server=2.3.7
cmu Cyrus Imap Server=2.2.8
cmu Cyrus Imap Server=2.0.17
cmu Cyrus Imap Server=2.3.1
cmu Cyrus Imap Server=2.3.4
cmu Cyrus Imap Server=2.2.10
cmu Cyrus Imap Server=2.1.18
cmu Cyrus Imap Server=2.3.3
cmu Cyrus Imap Server=2.3.15
cmu Cyrus Imap Server=2.4.1
cmu Cyrus Imap Server=2.4.5
cmu Cyrus Imap Server=2.4.0
cmu Cyrus Imap Server=2.4.10
cmu Cyrus Imap Server=2.4.8
cmu Cyrus Imap Server=2.4.7
cmu Cyrus Imap Server=2.4.6
cmu Cyrus Imap Server=2.4.3
cmu Cyrus Imap Server=2.4.4
cmu Cyrus Imap Server=2.4.2
cmu Cyrus Imap Server=2.4.9

Event History

Sep 8, 2011
CVE Published
12:00 AM
Sep 14, 2011
CVE Published
via MITRE·05:00 PM
Data Sourced
via MITRE·05:00 PM
Description

Parent advisories

This vulnerability appears in the following advisories.

Frequently Asked Questions

1

What is the severity of CVE-2011-3208?

CVE-2011-3208 is considered a high severity vulnerability due to its potential for remote exploitation and arbitrary code execution.

2

How do I fix CVE-2011-3208?

To fix CVE-2011-3208, update your Cyrus IMAP server to version 2.4.11 or apply the appropriate patch for affected versions.

3

Which versions of Cyrus IMAP are affected by CVE-2011-3208?

CVE-2011-3208 affects Cyrus IMAP versions up to and including 2.3.16, with specific older versions being particularly vulnerable.

4

Can CVE-2011-3208 be exploited without authentication?

Yes, if the 'allowanonymouslogin' option is enabled, a malicious client can exploit CVE-2011-3208 without authentication.

5

What types of systems are vulnerable to CVE-2011-3208?

Systems running vulnerable versions of the Cyrus IMAP server, particularly those configured to allow anonymous logins, are at risk for CVE-2011-3208.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203