NetBSD Problem Report #13269
Received: (qmail 19106 invoked from network); 21 Jun 2001 07:38:47 -0000
Message-Id: <20010621074111.843441110F@www.netbsd.org>
Date: Thu, 21 Jun 2001 00:41:11 -0700 (PDT)
From: manu@netbsd.org
Sender: nobody@netbsd.org
Reply-To: manu@netbsd.org
To: gnats-bugs@gnats.netbsd.org
Subject: buffer overflow in fetchmail
X-Send-Pr-Version: www-1.0
>Number: 13269
>Category: security
>Synopsis: buffer overflow in fetchmail
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: security-officer
>State: closed
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Thu Jun 21 07:39:00 +0000 2001
>Closed-Date: Tue Jul 24 23:59:53 +0000 2001
>Last-Modified: Tue Jul 24 23:59:53 +0000 2001
>Originator: Emmanuel Dreyfus
>Release: NetBSD-current
>Organization:
>Environment:
>Description:
www.securityfocus.com released a security advisory on fetchmail buffer overflow. A malicious cracker could build an e-mail that would cause fetchmail to execute arbitrary code. This is a problem since fetchmail is sometime run as root to fetch mail for several users. Moreover, fetchmail does not open any port, hence people may not realize that there could be a remote vulnerability there.
>How-To-Repeat:
Fetchmail crashes when receiving e-mails with too long headers
>Fix:
Upgrade fetchmail in pkgsrc (what version? I did not found that information, but it seems that 5.8.8 would do it), and release a security advisory.
>Release-Note:
>Audit-Trail:
From: Emmanuel Dreyfus <p99dreyf@criens.u-psud.fr>
To: gnats-bugs@netbsd.org
Cc:
Subject: Re: security/13269: buffer overflow in fetchmail
Date: Thu, 21 Jun 2001 17:46:59 +0200
--wRRV7LY7NUeQGEoC
Content-Type: text/plain; charset=us-ascii
Here is a patch to upgrade the fetchmail package to 5.8.8 (can't commit it now, I don't have my keys on this machine)
--
Emmanuel Dreyfus
manu@netbsd.org
--wRRV7LY7NUeQGEoC
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename="fetchmail.patch"
? README.html
? fetchmail.patch
Index: Makefile
===================================================================
RCS file: /cvsroot/pkgsrc/mail/fetchmail/Makefile,v
retrieving revision 1.94
diff -U4 -r1.94 Makefile
--- Makefile 2001/05/14 12:12:47 1.94
+++ Makefile 2001/06/21 15:32:57
@@ -1,8 +1,8 @@
# $NetBSD: Makefile,v 1.94 2001/05/14 12:12:47 tron Exp $
#
-DISTNAME= fetchmail-5.8.3
+DISTNAME= fetchmail-5.8.8
CATEGORIES= mail
MASTER_SITES= ftp://ftp.ccil.org/pub/esr/fetchmail/ \
http://www.tuxedo.org/~esr/fetchmail/ \
http://sunsite.unc.edu/pub/Linux/system/mail/pop/
Index: distinfo
===================================================================
RCS file: /cvsroot/pkgsrc/mail/fetchmail/distinfo,v
retrieving revision 1.4
diff -U4 -r1.4 distinfo
--- distinfo 2001/05/14 12:12:47 1.4
+++ distinfo 2001/06/21 15:32:57
@@ -1,8 +1,8 @@
$NetBSD: distinfo,v 1.4 2001/05/14 12:12:47 tron Exp $
-SHA1 (fetchmail-5.8.3.tar.gz) = 111777a3ed38f9f000fadd0ea505fe8dead46dc4
-Size (fetchmail-5.8.3.tar.gz) = 830441 bytes
+SHA1 (fetchmail-5.8.8.tar.gz) = ab4b87a7bbb17a5ea638f589b8c4873c8cbcc08f
+Size (fetchmail-5.8.8.tar.gz) = 843249 bytes
SHA1 (patch-aa) = 3c8aaac5d53c1069995ab74ad99bc5e64843a507
-SHA1 (patch-ab) = 4b9d66cff6ecb565f0aa15243f3fe4aad2c3f2fe
+SHA1 (patch-ab) = b653b80286d022ff5e1618ffc6bae6294e0b5c42
SHA1 (patch-ac) = ef0e651807bb0942ca79ed3b10ffc000f71bd330
SHA1 (patch-ad) = b6bffc59f28992fa0d3de0f9dad250c73bbeffc6
Index: patches/patch-ab
===================================================================
RCS file: /cvsroot/pkgsrc/mail/fetchmail/patches/patch-ab,v
retrieving revision 1.14
diff -U4 -r1.14 patch-ab
--- patch-ab 2001/03/30 15:08:43 1.14
+++ patch-ab 2001/06/21 15:32:57
@@ -1,9 +1,8 @@
-$NetBSD: patch-ab,v 1.14 2001/03/30 15:08:43 mycroft Exp $
-
---- Makefile.in.orig Thu Mar 29 03:10:31 2001
-+++ Makefile.in Fri Mar 30 14:50:50 2001
-@@ -166,12 +166,12 @@
+--- Makefile.in.orig Thu Jun 21 17:15:12 2001
++++ Makefile.in Thu Jun 21 17:15:48 2001
+@@ -165,14 +165,14 @@
+ @echo "Creating installation directories..."
$(SHELL) ${srcdir}/mkinstalldirs $(DESTDIR)$(bindir) $(DESTDIR)$(mandir)
@echo "Installing fetchmail binary..."
$(INSTALL_PROGRAM) ./fetchmail $(DESTDIR)$(bindir)/fetchmail
- @echo "Installing fetchmail configurator..."
@@ -16,6 +15,7 @@
- cd $(DESTDIR)$(mandir) && ln -s fetchmail.$(manext) fetchmailconf.$(manext)
+# rm -f $(DESTDIR)$(mandir)/fetchmailconf.$(manext)
+# cd $(DESTDIR)$(mandir) && ln -s fetchmail.$(manext) fetchmailconf.$(manext)
@echo "Installing language catalogs..."
- -$(MAKE) -C intl install
- $(MAKE) -C po install
+ -cd intl; $(MAKE) install
+ cd po; $(MAKE) install
+
--wRRV7LY7NUeQGEoC--
State-Changed-From-To: open->closed
State-Changed-By: lukem
State-Changed-When: Tue Jul 24 16:59:33 PDT 2001
State-Changed-Why:
fixed with an updated entry in the pkg-vulnerabilities file
>Unformatted:
(Contact us)
$NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.