18259 : Clam AntiVirus FSG File Processing Overflow
Printer | http://osvdb.org/18259 | Email This | Edit Vulnerability

Views This Week

1

Views All Time

606

Info

Last Modified

about 1 year ago

Percent Complete

100%

Disclosure

Jul 24, 2005

Discovery

Unknown

Dates

Exploit

Unknown

Solution

Unknown

Keywords

email

Description

A remote overflow exists in Clam AntiVirus. Clam AntiVirus fails to perform adequate boundary check in libclamav/fsg.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

Technical

FSG processing contains a faulty boundary check that results in a buffer overflow. The following is vulnerable code from unfsg() in fsg.c. Specifically, backbytes and backsize are essentially encoded arbitrary 32-bit unsigned integers; and, if both are slightly negative values an attacker can trigger a
heap overflow because of the integer wraps in the boundary check.

if (cdst-backbytes < dest | cdst+backsize >= dest+dsize)
return -1;
while(backsize--) {
*cdst=*(cdst-backbytes);
cdst++;
}

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.86.0
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 - IBM ISS X-Force

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 2010 Open Source Vulnerability Database (OSVDB), All Rights Reserved.
Privacy Statement - Terms of Use