GLSA-200405-03 : ClamAV VirusEvent parameter vulnerability

medium Nessus Plugin ID 14489

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.

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'

See Also

http://www.clamav.net/

https://security.gentoo.org/glsa/200405-03

Plugin Details

Severity: Medium

ID: 14489

File Name: gentoo_GLSA-200405-03.nasl

Version: 1.17

Type: local

Published: 8/30/2004

Updated: 1/6/2021

Supported Sensors: Nessus

Risk Information

VPR

Risk Factor: Medium

Score: 6.3

CVSS v2

Risk Factor: Medium

Base Score: 4.6

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

Vulnerability Information

CPE: p-cpe:/a:gentoo:linux:clamav, cpe:/o:gentoo:linux

Required KB Items: Host/local_checks_enabled, Host/Gentoo/release, Host/Gentoo/qpkg-list

Patch Publication Date: 5/11/2004

Vulnerability Publication Date: 3/31/2004

Reference Information

CVE: CVE-2004-1876

GLSA: 200405-03