Vulnerability Note VU#858595

ClamAV upack heap buffer overflow vulnerability

Original Release date: 21 Apr 2008 | Last revised: 29 Apr 2008


The ClamAV anti-virus scanner contains a vulnerability that may allow an attacker to execute code or cause ClamAV to crash.


The Portable Executable (PE) file format is a file format for executable files that is used in Microsoft Windows. PE files can be packed with executable packers, such as upack. The ClamAV anti-virus scanner can unpack and scan PE files that are packed with upack.

From ClamAV bug ID 878:

    Secunia Research has discovered a vulnerability in ClamAV, which can be exploited by malicious people to compromise a vulnerable system.

    The vulnerability is caused due to a boundary error within the "cli_scanpe()" function in libclamav/pe.c. This can be exploited to cause a heap-based buffer overflow via a specially crafted "Upack" executable.

Note that the ClamAV team has disabled the scanning of PE files that were packed with upack in older versions of ClamAV to prevent this vulnerability from being exploited.


A remote, unauthenticated attacker may be able to execute arbitrary code or cause ClamAV to crash.


Users are encouraged to upgrade to ClamAV .93, which was released to address this issue. Note that because of a workaround applied by the ClamAV team, ClamAV versions prior to .93 may not be able to scan PE files that were packed with the upack packer.

Do not run clamscan as root

To limit the impact of vulnerabilities in ClamAV, users and administrators should run clamscan with a limited user account.

Systems Affected (Learn More)

VendorStatusDate NotifiedDate Updated
Clam AntiVirusAffected15 Apr 200818 Apr 2008
If you are a vendor and your product is affected, let us know.

CVSS Metrics (Learn More)

Group Score Vector
Base N/A N/A
Temporal N/A N/A
Environmental N/A N/A



Thanks to Secunia Research and the ClamAV team for information that was used in this report.

This document was written by Ryan Giobbi.

Other Information

  • CVE IDs: CVE-2008-1100 CVE-2008-0314
  • Date Public: 14 Apr 2008
  • Date First Published: 21 Apr 2008
  • Date Last Updated: 29 Apr 2008
  • Severity Metric: 3.94
  • Document Revision: 31


If you have feedback, comments, or additional information about this vulnerability, please send us email.