CVE-2011-3208: Buffer Overflow
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
Remediation
Patch Available
Event History
Frequently Asked Questions
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.
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.
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.
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.
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.