Mercury Mail Transport System AUTH CRAM-MD5 buffer overflow

mercury-authcrammd5-bo (36299) The risk level is classified as HighHigh Risk

Description:

Mercury Mail Transport System is vulnerable to a stack-based buffer overflow, caused by improper bounds checking by the Mercury/32 SMTP Server Module (mercurys.dll). By sending a specially-crafted AUTH CRAM-MD5 command with an overly long argument, a remote attacker could overflow a buffer and execute arbitrary code on the system with SYSTEM privileges.

Platforms Affected:

  • Pmail, Mercury Mail Transport System 4.51

Remedy:

Upgrade to the latest version of Mercury/32 (4.5.2 or later) or Mercury/NLM (1.49 or later), available from the Pegasus Mail Web site. See References.

Consequences:

Gain Access

References:

  • Full-Disclosure Mailing List, Sat Aug 18 2007 - 11:43:25 CDT, Mercury SMTPD Remote Preauth Stack Based Overrun at http://archives.neohapsis.com/archives/fulldisclosure/2007-08/0341.html.
  • Pegasus Mail Web site, Mercury/32 v4.52 Released at http://www.pmail.com/m32_451.htm.
  • BID-25357: Mercury Mail Transport System AUTH CRAM-MD5 Buffer Overflow Vulnerability
  • CVE-2007-4440: Stack-based buffer overflow in the MercuryS SMTP server in Mercury Mail Transport System, possibly 4.51 and earlier, allows remote attackers to execute arbitrary code via a long AUTH CRAM-MD5 string. NOTE: this might overlap CVE-2006-5961.
  • SA26519: Mercury Mail Transport System SMTP AUTH CRAM-MD5 Buffer Overflow
  • SECTRACK ID: 1018587: Mercury Mail Transport System AUTH CRAM-MD5 Buffer Overflow Lets Remote Users Execute Arbitrary Code
  • VUPEN/ADV-2007-2918: Mercury Mail Transport System SMTP AUTH CRAM-MD5 Buffer Overflow Issue

Reported:

Aug 18, 2007

The information within this database may change without notice. Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. In no event shall the author/distributor (IBM Internet Security Systems X-Force) be held liable for any damages whatsoever arising out of or in connection with the use or spread of this information.

For corrections or additions please email xforce@iss.net

Return to the main page