FreeBSD : clamav -- heap overflow vulnerability (342d2e48-26db-11db-9275-000475abc56f)

High Nessus Plugin ID 22198


The remote FreeBSD host is missing one or more security-related updates.


Clamav team reports :

A heap overflow vulnerability was discovered in libclamav which could cause a denial of service or allow the execution of arbitrary code.

The problem is specifically located in the PE file rebuild function used by the UPX unpacker.

Relevant code from libclamav/upx.c :

memcpy(dst, newbuf, foffset); *dsize = foffset; free(newbuf);

cli_dbgmsg('UPX: PE structure rebuilt from compressed file\n'); return 1;

Due to improper validation it is possible to overflow the above memcpy() beyond the allocated memory block.


Update the affected packages.

See Also

Plugin Details

Severity: High

ID: 22198

File Name: freebsd_pkg_342d2e4826db11db9275000475abc56f.nasl

Version: $Revision: 1.9 $

Type: local

Published: 2006/08/10

Modified: 2013/06/21

Dependencies: 12634

Risk Information

Risk Factor: High


Base Score: 7.5

Vector: CVSS2#AV:N/AC:L/Au:N/C:P/I:P/A:P

Vulnerability Information

CPE: p-cpe:/a:freebsd:freebsd:clamav, p-cpe:/a:freebsd:freebsd:clamav-devel, cpe:/o:freebsd:freebsd

Required KB Items: Host/local_checks_enabled, Host/FreeBSD/release, Host/FreeBSD/pkg_info

Patch Publication Date: 2006/08/08

Vulnerability Publication Date: 2006/08/07

Reference Information

CVE: CVE-2006-4018