GLSA-200405-03 : ClamAV VirusEvent parameter vulnerability
Medium Nessus Plugin ID 14489
SynopsisThe remote Gentoo host is missing one or more security-related patches.
DescriptionThe 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.
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.
You should not use the '%f' parameter in your VirusEvent configuration.
SolutionAll 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'