SpamAssassin spamc BSMTP -B off-by-one buffer overflow
| spamassassin-spamc-offbyone-bo (11154) |
Description:
SpamAssassin is vulnerable to buffer overflow, caused by an off-by-one that can occur when "dot" characters (.) are improperly filtered from SMTP lines. If a user is using the SpamAssassin spamc program in BSMTP mode and calls the program with the -B option, a remote attacker could send a specially-crafted email to the user to overflow a buffer and execute arbitrary code on the system with privileges of the spamc user.
Consequences:
Gain Access
Remedy:
As a workaround, apply the 3rd party patch for this vulnerability, as listed in the BugTraq Mailing List posting dated 2003-01-23 22:21:32. See References.
For Gentoo Linux:
Upgrade to the latest version of Mail-SpamAssasin (2.44 or later), as listed in Gentoo Linux Security Announcement 200302-01. See References.
References:
- BugTraq Mailing List, 2003-01-23 22:21:32: SpamAssassin / spamc+BSMTP remote buffer overflow.
- Gentoo Linux Security Announcement 200302-01: Mail-SpamAssasin -- arbitrary code execution.
- SpamAssassin Web site: SpamAssassin: Welcome to SpamAssassin.
- BID-6679: SpamAssassin BSMTP Mode Buffer Overflow Vulnerability
- CVE-2003-1557: Off-by-one buffer overflow in spamc of SpamAssassin 2.40 through 2.43, when using BSMTP mode (-B), allows remote attackers to execute arbitrary code via email containing headers with leading . characters.
- SA7983: Gentoo updates to Mail-SpamAssasin
Platforms Affected:
- Apache SpamAssassin 2.40
- Apache SpamAssassin 2.41
- Apache SpamAssassin 2.42
- Apache SpamAssassin 2.43
- Gentoo Linux
Reported:
Jan 23, 2003
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
