Description: Some vulnerabilities have been reported in ClamAV, where one vulnerability has an unknown impact and others can be exploited by malicious people to cause a DoS (Denial of Service) or compromise a vulnerable system.
1) An integer overflow error exists within the "cli_scanpe()" function when handling MEW packed executables. This can be exploited to cause a heap-based buffer overflow via specially crafted "ssize" and "dsize" values.
Successful exploitation allows execution of arbitrary code.
2) An off-by-one error exists within libclamav/mspack.c when handling MSZIP compressed files. This can be exploited to e.g. crash the scanner or potentially execute arbitrary code via a specially crafted MSZIP compressed file.
3) An boundary error exists within the bzip2 "BZ_GET_FAST()" and "BZ_GET_FAST_C()" decompression macros in libclamav/nsis/bzlib_private.h.
The vulnerabilities are reported in versions prior to 0.92.
Solution: Update to version 0.92.
Provided and/or discovered by: 1) Discovered by an anonymous researcher and reported via iDefense Labs.
2) Reported in a bug by Török Edwin.
3) Reported via a Gentoo security advisory.
Changelog: 2007-12-20: Updated advisory to include vulnerability #2. Updated CVE references.
2008-01-02: Updated advisory to include vulnerability #3. Updated CVE references.
If you have new information regarding this Secunia advisory or a product in our database, please send it to us using either our web form or email us at vuln@secunia.com.
Ideas, suggestions, and other feedback are most welcome.