ClamAV < 0.94.1 get_unicode_name() Off-by-One Buffer Overflow

This script is Copyright (C) 2008-2014 Tenable Network Security, Inc.


Synopsis :

The remote antivirus service is affected by a buffer overflow
vulnerability.

Description :

According to its version, the clamd antivirus daemon on the remote
host is earlier than 0.94.1. Such versions have an off-by-one heap
overflow vulnerability in the code responsible for parsing VBA project
files, specifically in the 'get_unicode_name()' function of
'libclamav/vba_extract.c', when a specific 'name' buffer is passed to
it.

Using a specially crafted VBA project file embedded in an OLE2 Office
document, a remote attacker can trigger this vulnerability and execute
arbitrary code on the remote host with the privileges of the 'clamd'
process.

See also :

http://archives.neohapsis.com/archives/bugtraq/2008-11/0071.html
http://www.nessus.org/u?91209430

Solution :

Upgrade to ClamAV 0.94.1 or later.

Risk factor :

High / CVSS Base Score : 7.5
(CVSS2#AV:N/AC:L/Au:N/C:P/I:P/A:P)
CVSS Temporal Score : 5.5
(CVSS2#E:U/RL:OF/RC:C)
Public Exploit Available : false

Family: Gain a shell remotely

Nessus Plugin ID: 34729 (clamav_0_94_1.nasl)

Bugtraq ID: 32207

CVE ID: CVE-2008-5050