Gentoo Logo

fetchmail: Buffer Overflow


1.  Gentoo Linux Security Advisory

Version Information

Advisory Reference GLSA 200507-21 / fetchmail
Release Date July 25, 2005
Latest Revision July 25, 2005: 01
Impact normal
Exploitable remote
Package Vulnerable versions Unaffected versions Architecture(s)
net-mail/fetchmail < >= All supported architectures

Related bugreports: #99865


fetchmail is susceptible to a buffer overflow resulting in a Denial of Service or arbitrary code execution.

2.  Impact Information


fetchmail is a utility that retrieves and forwards mail from remote systems using IMAP, POP, and other protocols.


fetchmail does not properly validate UIDs coming from a POP3 mail server. The UID is placed in a fixed length buffer on the stack, which can be overflown.


Very long UIDs returned from a malicious or compromised POP3 server can cause fetchmail to crash, resulting in a Denial of Service, or allow arbitrary code to be placed on the stack.

3.  Resolution Information


There are no known workarounds at this time.


All fetchmail users should upgrade to the latest version:

Code Listing 3.1: Resolution

# emerge --sync
# emerge --ask --oneshot --verbose ">=net-mail/fetchmail-"

4.  References


Page updated July 25, 2005

Summary: This is a Gentoo Linux Security Advisory

Security Team
Contact Address

Donate to support our development efforts.

Copyright 2001-2015 Gentoo Foundation, Inc. Questions, Comments? Contact us.