18258 : Clam AntiVirus CHM File Processing Filename Overflow
Printer | http://osvdb.org/18258 | Email This | Edit Vulnerability

Views This Week Views All Time Added to OSVDB Last Modified Modified (since 2008) Percent Complete
3 421 over 6 years ago over 3 years ago 0 times 90%

Timeline

Disclosure Date
2005-07-24

Keywords

email

Description

A remote overflow exists in Clam AntiVirus. Clam AntiVirus fails to perform adequate boundary check in libclamav/chmunpack.c, resulting in a heap overflow. With a specially crafted request, an attacker can gain privileges equal to those of the Clam AntiVirus process, possibly allowing for a remote system compromise.

Classification

Location: Remote / Network Access
Attack Type: Input Manipulation
Impact: Loss of Integrity
Exploit: Exploit Unknown
Disclosure: OSVDB Verified, Vendor Verified

Technical

CHM processing contains an integer overflow that results in heap corruption. The following is vulnerable code from read_chunk_entries() in chmunpack.c. If length is -1, it will wrap and malloc() will return small heap buffer which is overflowed on the following strncpy().

name_len = read_enc_int(&current, end);
file_e->name = (unsigned char *) cli_malloc(name_len+1);
if (!file_e->name) {
free(file_e);
return FALSE;
}
strncpy(file_e->name, current, name_len);

Solution

Upgrade to version 0.86.2 or higher, as it has been reported to fix this vulnerability. An upgrade is required as there are no known workarounds.

Products

Clam AntiVirus
Watch-list
Clam AntiVirus
Watch-list
0.86.1
0.85.x
0.84.x
0.83.x
0.82.x
0.81.x
0.80.x
0.75.x
0.74.x
0.73.x
0.72.x
0.71.x
0.70.x

References

Tools & Filters

19432 19886
3108

Credit

  • Neel Mehta -   -
  • Alex Wheeler - advisorieshustlelabs.com - Hustle Labs

CVSSv2 Score

CVSSv2 Base Score = 7.5
Source: nvd.nist.gov | Generated: 2005-08-04 | Disagree?

Access_vector_2 Access_complexity_2 Authentication_2 Confidentiality_impact_1 Integrity_impact_1 Availability_impact_1

Blogs

This section lists the latest news and blogs found via the daylife API (and for older items, the technorati API), which mention or otherwise discuss this vulnerability.

None found at this time

Comments

No Comments.

The database information may change without any notice. Use of the information constitutes acceptance for use in an AS IS condition, and 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 copyright holder or distributor (OSVDB or OSF) be held liable for any damages whatsoever arising out of or in connection with the use or spread of this information.

© Copyright 2012 Open Source Vulnerability Database (OSVDB), All Rights Reserved.
Privacy Statement - Terms of Use