7.5
CWE
119
Advisory Published
CVE Published
CVE Published
Updated

CVE-2011-3208: Buffer Overflow

First published: Wed 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 FORTIFY_SOURCE (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 *split_wildmats(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;

Credit: secalert@redhat.com

Affected SoftwareAffected VersionHow to fix
redhat/cyrus-imapd<2.4.11
2.4.11
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
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

Never miss a vulnerability like this again

Sign up to SecAlerts for real-time vulnerability data matched to your software, aggregated from hundreds of sources.

Parent vulnerabilities

(Appears in the following advisories)

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.
© 2024 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203