GLSA-200405-03 : ClamAV VirusEvent parameter vulnerability

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


Synopsis :

The remote Gentoo host is missing one or more security-related
patches.

Description :

The remote host is affected by the vulnerability described in GLSA-200405-03
(ClamAV VirusEvent parameter vulnerability)

The VirusEvent parameter in the clamav.conf configuration file allows
to specify a system command to run whenever a virus is found. This
system command can make use of the '%f' parameter which is replaced by
the name of the file infected. The name of the file scanned is under
control of the attacker and is not sufficiently checked. Version 0.70
of clamav disables the use of the '%f' parameter.

Impact :

Sending a virus with a malicious file name can result in execution of
arbitrary system commands with the rights of the antivirus process.
Since clamav is often associated to mail servers for email scanning,
this attack can be used remotely.

Workaround :

You should not use the '%f' parameter in your VirusEvent configuration.

See also :

http://www.clamav.net/
http://www.gentoo.org/security/en/glsa/glsa-200405-03.xml

Solution :

All users of Clam AntiVirus should upgrade to the latest stable
version:
# emerge sync
# emerge -pv '>=app-antivirus/clamav-0.70'
# emerge '>=app-antivirus/clamav-0.70'

Risk factor :

Medium / CVSS Base Score : 4.6
(CVSS2#AV:L/AC:L/Au:N/C:P/I:P/A:P)

Family: Gentoo Local Security Checks

Nessus Plugin ID: 14489 (gentoo_GLSA-200405-03.nasl)

Bugtraq ID:

CVE ID: CVE-2004-1876