SkipNavigation
US-CERT
American Flag
  Vulnerability
Notes
Database

Search Vulnerability Notes

Vulnerability Notes Help Information


 
 View Notes By
  Name

ID Number

CVE Name

Date Public

Date Published

Date Updated

Severity Metric



 Other Documents
  Technical Alerts

Technical Bulletins

Alerts

Security Tips

 

Vulnerability Note VU#398025

Remote Buffer Overflow in Sendmail

Overview

There is a vulnerability in sendmail that may allow remote attackers to gain the privileges of the sendmail daemon, typically root.

I. Description

Researchers at Internet Security Systems (ISS) have discovered a remotely exploitable vulnerability in sendmail. This vulnerability could allow an intruder to gain control of a vulnerable sendmail server.

Most organizations have a variety of mail transfer agents (MTAs) at various locations within their network, with at least one exposed to the Internet. Since sendmail is the most popular MTA, most medium-sized to large organizations are likely to have at least one vulnerable sendmail server. In addition, many UNIX and Linux workstations provide a sendmail implementation that is enabled and running by default.

This vulnerability is message-oriented as opposed to connection-oriented. That means that the vulnerability is triggered by the contents of a specially-crafted email message rather than by lower-level network traffic. This is important because an MTA that does not contain the vulnerability will pass the malicious message along to other MTAs that may be protected at the network level. In other words, vulnerable sendmail servers on the interior of a network are still at risk, even if the site's border MTA uses software other than sendmail. Also, messages capable of exploiting this vulnerability may pass undetected through many common packet filters or firewalls.

Sendmail has indicated to the CERT/CC that this vulnerability has been successfully exploited in a laboratory environment. We do not believe that this exploit is available to the public. However, this vulnerability is likely to draw significant attention from the intruder community, so the probability of a public exploit is high.

A successful attack against an unpatched sendmail system will not leave any messages in the system log. However, on a patched system, an attempt to exploit this vulnerability will leave the following log message:

    Dropped invalid comments from header address

Although this does not represent conclusive evidence of an attack, it may be useful as an indicator.

A patched sendmail server will drop invalid headers, thus preventing downstream servers from receiving them.

II. Impact

Successful exploitation of this vulnerability may allow an attacker to gain the privileges of the sendmail daemon, typically root. Even vulnerable sendmail servers on the interior of a given network may be at risk since the vulnerability is triggered from the contents of a malicious email message.

III. Solution

Apply a patch from Sendmail

Sendmail has produced patches for versions 8.9, 8.10, 8.11, and 8.12. However, the vulnerability also exists in earlier versions of the code; therefore, site administrators using an earlier version are encouraged to upgrade to 8.12.8. These patches are located at
Apply a patch from your vendor

Many vendors include vulnerable sendmail servers as part of their software distributions. We have notified vendors of this vulnerability and recorded their responses in the systems affected section of this document.

Enable the RunAsUser option

There is no known workaround for this vulnerability. Until a patch can be applied, you may wish to set the RunAsUser option to reduce the impact of this vulnerability. As a good general practice, the CERT/CC recommends limiting the privileges of an application or service whenever possible.

Systems Affected

VendorStatusDate Updated
AlcatelUnknown3-Mar-2003
Apple Computer Inc.Vulnerable3-Mar-2003
AT&TUnknown3-Mar-2003
AvayaUnknown3-Mar-2003
BSD/OSVulnerable3-Mar-2003
Check PointUnknown3-Mar-2003
Cisco Systems Inc.Unknown3-Mar-2003
Computer AssociatesUnknown3-Mar-2003
ConectivaVulnerable4-Mar-2003
Cray Inc.Unknown3-Mar-2003
DebianVulnerable4-Mar-2003
FreeBSDVulnerable3-Mar-2003
FujitsuUnknown3-Mar-2003
Gentoo LinuxVulnerable4-Mar-2003
Guardian Digital Inc. Unknown3-Mar-2003
Hewlett-Packard CompanyVulnerable15-Sep-2003
HitachiNot Vulnerable27-Mar-2003
IBMVulnerable13-Mar-2003
IBM-zSeriesUnknown3-Mar-2003
Juniper NetworksNot Vulnerable4-Mar-2003
Lotus SoftwareNot Vulnerable4-Mar-2003
Lucent TechnologiesUnknown3-Mar-2003
MandrakeSoftVulnerable4-Mar-2003
NEC CorporationUnknown3-Mar-2003
NetBSDVulnerable4-Mar-2003
NokiaUnknown3-Mar-2003
Nortel NetworksVulnerable22-Apr-2003
NovellUnknown3-Mar-2003
OpenBSDVulnerable3-Mar-2003
OpenPKGVulnerable4-Mar-2003
Openwall GNU/*/LinuxNot Vulnerable3-Mar-2003
Red Hat Inc.Vulnerable3-Mar-2003
Secure Computing CorporationUnknown3-Mar-2003
Sendmail Inc.Vulnerable3-Mar-2003
SequentUnknown9-Jun-2003
SGIVulnerable3-Mar-2003
SlackwareVulnerable4-Mar-2003
Sony CorporationUnknown3-Mar-2003
Sun Microsystems Inc.Vulnerable3-Mar-2003
SuSE Inc.Vulnerable3-Mar-2003
Symantec CorporationUnknown22-Apr-2003
SyntegraNot Vulnerable9-Jun-2003
The SCO Group (SCO Linux)Vulnerable10-Mar-2003
The SCO Group (SCO UnixWare)Vulnerable14-Mar-2003
The Sendmail ConsortiumVulnerable3-Mar-2003
Xerox CorporationVulnerable9-Jun-2003

References


http://www.sendmail.org
http://www.sendmail.org/8.12.8.html
http://www.sendmail.com/security/
http://www.iss.net/issEn/delivery/xforce/alertdetail.jsp?oid=21950
http://www.securityfocus.org/archive/1/313757/2003-03-01/2003-03-07/0
http://www.nipc.gov/warnings/advisories/2003/03-004.htm

Credit

Our thanks to Internet Security Systems, Inc. for discovering this problem, and to Eric Allman, Claus Assmann, and Greg Shapiro of Sendmail for notifying us of this problem. We thank both groups for their assistance in coordinating the response to this problem.

This document was written by Jeffrey P. Lanza and Shawn V. Hernan.

Other Information

Date Public03/03/2003
Date First Published03/03/2003 01:23:27 PM
Date Last Updated09/15/2003
CERT AdvisoryCA-2003-07
CVE NameCAN-2002-1337
US-CERT Technical Alerts 
Metric66.00
Document Revision24

If you have feedback, comments, or additional information about this vulnerability, please send us email.
 

 
Page Corner Image
Copyright 2003 Carnegie Mellon University
Disclaimers and copyright information
Get Adobe Reader Get Adobe Reader