Gentoo Logo

ClamAV: Denial of Service


1.  Gentoo Linux Security Advisory

Version Information

Advisory Reference GLSA 200703-03 / clamav
Release Date March 02, 2007
Latest Revision March 02, 2007: 01
Impact normal
Exploitable remote
Package Vulnerable versions Unaffected versions Architecture(s)
app-antivirus/clamav < 0.90 >= 0.90 All supported architectures

Related bugreports: #167201


ClamAV contains two vulnerabilities allowing a Denial of Service.

2.  Impact Information


ClamAV is a GPL virus scanner.


An anonymous researcher discovered a file descriptor leak error in the processing of CAB archives and a lack of validation of the "id" parameter string used to create local files when parsing MIME headers.


A remote attacker can send several crafted CAB archives with a zero-length record header that will fill the available file descriptors until no other is available, which will prevent ClamAV from scanning most archives. An attacker can also send an email with specially crafted MIME headers to overwrite local files with the permissions of the user running ClamAV, such as the virus database file, which could prevent ClamAV from detecting any virus.

3.  Resolution Information


The first vulnerability can be prevented by refusing any file of type CAB, but there is no known workaround for the second issue.


All ClamAV users should upgrade to the latest version:

Code Listing 3.1: Resolution

# emerge --sync
# emerge --ask --oneshot --verbose ">=app-antivirus/clamav-0.90"

4.  References


Page updated March 02, 2007

Summary: This is a Gentoo Linux Security Advisory

Security Team
Contact Address

Donate to support our development efforts.

Copyright 2001-2015 Gentoo Foundation, Inc. Questions, Comments? Contact us.