ClamAV: Remote execution of arbitrary code — GLSA 200601-07

ClamAV is vulnerable to a buffer overflow which may lead to remote execution of arbitrary code.

Affected Packages

app-antivirus/clamav on all architectures
Affected versions < 0.88
Unaffected versions >= 0.88

Background

ClamAV is a GPL virus scanner.

Description

Zero Day Initiative (ZDI) reported a heap buffer overflow vulnerability. The vulnerability is due to an incorrect boundary check of the user-supplied data prior to copying it to an insufficiently sized memory buffer. The flaw occurs when the application attempts to handle compressed UPX files.

Impact

For example by sending a maliciously crafted UPX file into a mail server that is integrated with ClamAV, a remote attacker's supplied code could be executed with escalated privileges.

Workaround

There is no known workaround at this time.

Resolution

All ClamAV users should upgrade to the latest version:

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

References

Release Date
January 13, 2006

Latest Revision
January 13, 2006: 01

Severity
high

Exploitable
remote

Bugzilla entries