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

high Nessus Plugin ID 34729

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.

Solution

Upgrade to ClamAV 0.94.1 or later.

See Also

https://seclists.org/bugtraq/2008/Nov/70

http://www.nessus.org/u?91209430

Plugin Details

Severity: High

ID: 34729

File Name: clamav_0_94_1.nasl

Version: 1.20

Type: remote

Published: 11/10/2008

Updated: 11/15/2018

Configuration: Enable paranoid mode

Supported Sensors: Nessus

Risk Information

VPR

Risk Factor: Medium

Score: 6.7

CVSS v2

Risk Factor: High

Base Score: 7.5

Temporal Score: 5.5

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

Vulnerability Information

CPE: cpe:/a:clamav:clamav

Required KB Items: Settings/ParanoidReport

Exploit Ease: No known exploits are available

Reference Information

CVE: CVE-2008-5050

BID: 32207

CWE: 119