(Red Hat Issues Fix for RH Enterprise Linux) Metamail Overflows Let Remote Users Execute Arbitrary Code
|
|
SecurityTracker Alert ID: 1009108 |
|
SecurityTracker URL: http://securitytracker.com/id/1009108
|
|
CVE Reference:
CAN-2004-0104, CAN-2004-0105
(Links to External Site)
|
Updated: Feb 18 2004
|
Original Entry Date: Feb 18 2004
|
Impact:
Execution of arbitrary code via network, User access via network
|
Fix Available: Yes Vendor Confirmed: Yes
|
Version(s): 2.7 and prior versions
|
Description:
Some vulnerabilities were reported in Metamail in the decoding of MIME messages. A remote user can execute arbitrary code on the target system.
It is reported that Ulf Harnhammar discovered several vulnerabilities in Metamail versions 2.7 and prior versions. A remote user can reportedly send a specially crafted message so that when the target user views the message and Metamail parses the message, arbitrary code will be executed on the target user's system.
Two of the bugs are format string vulnerabilities [CVE: CAN-2004-0104] and two of the bugs are buffer overflows [CVE: CAN-2004-0105].
A format string flaw can reportedly be triggered by a message with a "multipart/alternative" media type and with a body part with a MIME "Content-Type" header that has parameter names or values containing formatting characters. The flaw reportedly resides in the SaveSquirrelFile() function in 'metamail.c'.
Another format string flaw can reportedly be triggered when an e-mail message contains encoded non-ASCII characters in the mail headers with an unknown encoding and with encoded text that contains formatting characters. The flaw reportedly resides in the PrintHeader() function, also in 'metamail.c'.
The report indicates that a buffer overflow in the PrintHeader() function in 'metamail.c' can be triggered by an e-mail message with encoded non-ASCII characters in the mail header where the section that specifies a character set is overly long.
Another buffer overflow exists in the 'splitmail' application, the report said. An overly long Subject header line can reportedly trigger the overflow in the ShareThisHeader() function in 'splitmail.c'.
Some demonstration exploit examples are available at:
http://labben.abm.uu.se/~ulha9485/metamail.advisory-data.tar.gz
|
Impact:
A remote user can cause arbitrary code to be executed on the target system when the target user views a malicious e-mail message.
|
Solution:
Red Hat has released a fix.
Red Hat Enterprise Linux AS (Advanced Server) version 2.1:
SRPMS:
ftp://updates.redhat.com/enterprise/2.1AS/en/os/SRPMS/metamail-2.7-29.src.rpm
i386:
Available from Red Hat Network: metamail-2.7-29.i386.rpm
ia64:
Available from Red Hat Network: metamail-2.7-29.ia64.rpm
Red Hat Linux Advanced Workstation 2.1:
SRPMS:
ftp://updates.redhat.com/enterprise/2.1AW/en/os/SRPMS/metamail-2.7-29.src.rpm
ia64:
Available from Red Hat Network: metamail-2.7-29.ia64.rpm
Red Hat Enterprise Linux ES version 2.1:
SRPMS:
ftp://updates.redhat.com/enterprise/2.1ES/en/os/SRPMS/metamail-2.7-29.src.rpm
i386:
Available from Red Hat Network: metamail-2.7-29.i386.rpm
Red Hat Enterprise Linux WS version 2.1:
SRPMS:
ftp://updates.redhat.com/enterprise/2.1WS/en/os/SRPMS/metamail-2.7-29.src.rpm
i386:
Available from Red Hat Network: metamail-2.7-29.i386.rpm
The verification checksums are:
MD5 sum Package Name
388b3a4bf5f803f0820c71509b8982e4 2.1AS/en/os/SRPMS/metamail-2.7-29.src.rpm
f556e3b720166ff08b8822ebbd0d563d 2.1AS/en/os/i386/metamail-2.7-29.i386.rpm
53eaa8eb8ef21233ba4124d095ce37c5 2.1AS/en/os/ia64/metamail-2.7-29.ia64.rpm
388b3a4bf5f803f0820c71509b8982e4 2.1AW/en/os/SRPMS/metamail-2.7-29.src.rpm
53eaa8eb8ef21233ba4124d095ce37c5 2.1AW/en/os/ia64/metamail-2.7-29.ia64.rpm
388b3a4bf5f803f0820c71509b8982e4 2.1ES/en/os/SRPMS/metamail-2.7-29.src.rpm
f556e3b720166ff08b8822ebbd0d563d 2.1ES/en/os/i386/metamail-2.7-29.i386.rpm
388b3a4bf5f803f0820c71509b8982e4 2.1WS/en/os/SRPMS/metamail-2.7-29.src.rpm
f556e3b720166ff08b8822ebbd0d563d 2.1WS/en/os/i386/metamail-2.7-29.i386.rpm
|
Vendor URL: bmrc.berkeley.edu/~trey/emacs/metamail.html (Links to External Site)
|
Cause:
Boundary error
|
Underlying OS:
Linux (Red Hat Enterprise)
|
|
Message History:
This archive entry is a follow-up to the message listed below.
|
Source Message Contents
|
Date: Wed, 18 Feb 2004 07:05 -0500
Subject: [RHSA-2004:073-01] Updated metamail packages fix vulnerabilities
|
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
- ---------------------------------------------------------------------
Red Hat Security Advisory
Synopsis: Updated metamail packages fix vulnerabilities
Advisory ID: RHSA-2004:073-01
Issue date: 2004-02-18
Updated on: 2004-02-18
Product: Red Hat Enterprise Linux
Keywords:
Cross references:
Obsoletes:
CVE Names: CAN-2004-0104 CAN-2004-0105
- ---------------------------------------------------------------------
1. Topic:
Updated metamail packages that fix a number of vulnerabilities are now
available.
2. Relevant releases/architectures:
Red Hat Enterprise Linux AS (Advanced Server) version 2.1 - i386, ia64
Red Hat Linux Advanced Workstation 2.1 - ia64
Red Hat Enterprise Linux ES version 2.1 - i386
Red Hat Enterprise Linux WS version 2.1 - i386
3. Problem description:
Metamail is a system for handling multimedia mail.
Ulf Harnhammar discovered two integer overflow bugs and two buffer overflow
bugs in versions of Metamail up to and including 2.7. An attacker could
create a carefully-crafted message such that when it is opened by a victim
and parsed through Metamail, it runs arbitrary code as the victim. The
Common Vulnerabilities and Exposures project (cve.mitre.org) has assigned
the names CAN-2004-0104 and CAN-2004-0105 to these issues.
Users of Red Hat Enterprise Linux 2.1 are advised to upgrade to these
erratum packages, which contain a backported security patch and are not
vulnerable to these issues. Please note that Red Hat Enterprise Linux 3
does not contain Metamail and is therefore not vulnerable to these issues.
Red Hat would like to thank Ulf Harnhammar for the notification and patch
for these issues.
4. Solution:
Before applying this update, make sure all previously released errata
relevant to your system have been applied.
To update all RPMs for your particular architecture, run:
rpm -Fvh [filenames]
where [filenames] is a list of the RPMs you wish to upgrade. Only those
RPMs which are currently installed will be updated. Those RPMs which are
not installed but included in the list will not be updated. Note that you
can also use wildcards (*.rpm) if your current directory *only* contains the
desired RPMs.
Please note that this update is also available via Red Hat Network. Many
people find this an easier way to apply updates. To use Red Hat Network,
launch the Red Hat Update Agent with the following command:
up2date
This will start an interactive process that will result in the appropriate
RPMs being upgraded on your system.
If up2date fails to connect to Red Hat Network due to SSL
Certificate Errors, you need to install a version of the
up2date client with an updated certificate. The latest version of
up2date is available from the Red Hat FTP site and may also be
downloaded directly from the RHN website:
https://rhn.redhat.com/help/latest-up2date.pxt
5. Bug IDs fixed (http://bugzilla.redhat.com/bugzilla for more info):
115804 - CAN-2004-0104/0105 Metamail vulnerabilities
6. RPMs required:
Red Hat Enterprise Linux AS (Advanced Server) version 2.1:
SRPMS:
ftp://updates.redhat.com/enterprise/2.1AS/en/os/SRPMS/metamail-2.7-29.src.rpm
i386:
Available from Red Hat Network: metamail-2.7-29.i386.rpm
ia64:
Available from Red Hat Network: metamail-2.7-29.ia64.rpm
Red Hat Linux Advanced Workstation 2.1:
SRPMS:
ftp://updates.redhat.com/enterprise/2.1AW/en/os/SRPMS/metamail-2.7-29.src.rpm
ia64:
Available from Red Hat Network: metamail-2.7-29.ia64.rpm
Red Hat Enterprise Linux ES version 2.1:
SRPMS:
ftp://updates.redhat.com/enterprise/2.1ES/en/os/SRPMS/metamail-2.7-29.src.rpm
i386:
Available from Red Hat Network: metamail-2.7-29.i386.rpm
Red Hat Enterprise Linux WS version 2.1:
SRPMS:
ftp://updates.redhat.com/enterprise/2.1WS/en/os/SRPMS/metamail-2.7-29.src.rpm
i386:
Available from Red Hat Network: metamail-2.7-29.i386.rpm
7. Verification:
MD5 sum Package Name
- --------------------------------------------------------------------------
388b3a4bf5f803f0820c71509b8982e4 2.1AS/en/os/SRPMS/metamail-2.7-29.src.rpm
f556e3b720166ff08b8822ebbd0d563d 2.1AS/en/os/i386/metamail-2.7-29.i386.rpm
53eaa8eb8ef21233ba4124d095ce37c5 2.1AS/en/os/ia64/metamail-2.7-29.ia64.rpm
388b3a4bf5f803f0820c71509b8982e4 2.1AW/en/os/SRPMS/metamail-2.7-29.src.rpm
53eaa8eb8ef21233ba4124d095ce37c5 2.1AW/en/os/ia64/metamail-2.7-29.ia64.rpm
388b3a4bf5f803f0820c71509b8982e4 2.1ES/en/os/SRPMS/metamail-2.7-29.src.rpm
f556e3b720166ff08b8822ebbd0d563d 2.1ES/en/os/i386/metamail-2.7-29.i386.rpm
388b3a4bf5f803f0820c71509b8982e4 2.1WS/en/os/SRPMS/metamail-2.7-29.src.rpm
f556e3b720166ff08b8822ebbd0d563d 2.1WS/en/os/i386/metamail-2.7-29.i386.rpm
These packages are GPG signed by Red Hat for security. Our key is
available from https://www.redhat.com/security/keys.html
You can verify each package with the following command:
rpm --checksig -v <filename>
If you only wish to verify that each package has not been corrupted or
tampered with, examine only the md5sum with the following command:
md5sum <filename>
8. References:
http://cve.mitre.org/cgi-bin/cvename.cgi?name=CAN-2004-0104
http://cve.mitre.org/cgi-bin/cvename.cgi?name=CAN-2004-0105
9. Contact:
The Red Hat security contact is <secalert@redhat.com>. More contact
details at https://www.redhat.com/solutions/security/news/contact.html
Copyright 2003 Red Hat, Inc.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (GNU/Linux)
iD8DBQFAM1TXXlSAg2UNWIIRAqZxAJ9p7pk6rzOBIyS7q7hT0rxRn9UZtwCfe2A3
k1ojTr65IOZK2tCBoftre10=
=FE3i
-----END PGP SIGNATURE-----
--
Enterprise-watch-list mailing list
Enterprise-watch-list@redhat.com
https://www.redhat.com/mailman/listinfo/enterprise-watch-list
|
|