Clam AntiVirus cab_unstore() and cab_extract() buffer overflow
| clamav-cabunstore-cabextract-bo (33637) |
Description:
Clam AntiVirus (ClavAV) is vulnerable to a buffer overflow, caused by improper bounds checking by the cab_unstore() and cab_extract() functions. By sending a specially-crafted CAB file, a remote attacker could overflow a buffer and possibly execute arbitrary code on the system or cause the application to crash.
Platforms Affected:
- Apple, Mac OS X Server 10.4.11
- Clam Anti-Virus, ClamAV 0.90.1 and prior
- Debian, Debian Linux 3.1
- Debian, Debian Linux 4.0
- Gentoo, Linux
- Mandriva, Corporate Server 3.0
- Mandriva, Corporate Server 3.0 X86_64
- Mandriva, Corporate Server 4.0
- Mandriva, Corporate Server 4.0 X86_64
- Mandriva, Linux 2007
- Mandriva, Linux 2007 X86_64
- Mandriva, Linux 2007.1
- Mandriva, Linux 2007.1 X86_64
- Mandriva, Linux 2008.0 X86_64
- Novell, Linux POS 9
- Novell, Open Enterprise Server
- Novell, Open Enterprise Server
- Novell, OpenSUSE 10.2
- SuSE, SuSE Linux 9.3
- SuSE, SuSE SLES 10
- SuSE, SuSE SLES 9
Remedy:
Upgrade to the latest version of Clam AntiVirus (0.90.2 or later), available from SourceForge.net: Files. See References.
For Debian GNU/Linux:
Refer to DSA-629-1 for patch, upgrade, or suggested workaround information. See References.
For Gentoo Linux:
Refer to GLSA 200704-21 for patch, upgrade, or suggested workaround information. See References.
For Debian Linux (clamav):
Refer to DSA-1281-1 for patch, upgrade, or suggested workaround information. See References.
For Mandriva Linux (clamav):
Refer to MDKSA-2007:098 for patch, upgrade, or suggested workaround information. See References.
For Mac OS X:
Apply Security Update 2008-002, available from the Apple Web site. See References.
For other distributions:
Contact your vendor for upgrade or patch information.
Consequences:
Gain Access
References:
- Apple Web site, About Security Update 2008-002 at http://docs.info.apple.com/article.html?artnum=307562.
- iDefense Security Advisory 04.16.07, ClamAV CAB File Unstore Buffer Overflow Vulnerability at http://labs.idefense.com/intelligence/vulnerabilities/display.php?id=513.
- SourceForge.net: Files, Clam AntiVirus - File Release Notes and Changelog - Release Name: 0.90.2 at http://sourceforge.net/project/shownotes.php?release_id=500765&group_id=86638.
- BID-23473: ClamAV Multiple Remote Vulnerabilities
- CVE-2007-1997: Integer signedness error in the (1) cab_unstore and (2) cab_extract functions in libclamav/cab.c in Clam AntiVirus (ClamAV) before 0.90.2 allow remote attackers to execute arbitrary code via a crafted CHM file that contains a negative integer, which passes a signed comparison and leads to a stack-based buffer overflow.
- DSA-1281: clamav -- several vulnerabilities
- FrSIRT/ADV-2007-1378: Clam AntiVirus (ClamAV) cab_unstore() and chm_decompress_stream() Vulnerabilities
- FrSIRT/ADV-2008-0924: Apple Mac OS X Command Execution and Security Bypass Issues
- GLSA-200704-21: ClamAV: Multiple vulnerabilities
- MDKSA-2007:098: Updated clamav packages fix vulnerabilities
- SA24891: Clam AntiVirus Multiple Vulnerabilities
- SA29420: Mac OS X Security Update Fixes Multiple Vulnerabilities
- SECTRACK ID: 1017921: Clam AntiVirus Buffer Overflow in cab_unstore() Lets Remote Users Execute Arbitrary Code
- SUSE-SA:2007:026: clamav 0.90.2 security update
Reported:
Apr 12, 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 (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.
Copyright (c) 1994-2008 Internet Security Systems, Inc. All rights reserved worldwide.
For corrections or additions please email xforce@iss.net
