Clam AntiVirus clamav-milter for sendmail Unsafe popen() Call Lets Remote Users Execute Arbitrary Code
SecurityTracker Alert ID: 1018610|
SecurityTracker URL: http://securitytracker.com/id/1018610
(Links to External Site)
Updated: Mar 26 2008|
Original Entry Date: Aug 27 2007
Execution of arbitrary code via network, Root access via network|
Fix Available: Yes Vendor Confirmed: Yes |
Version(s): prior to 0.91.2|
A vulnerability was reported in Clam AntiVirus in clamav-milter when used with sendmail. A remote user can execute arbitrary code on the target system.|
clamav-milter makes an unsafe popen() function call. A remote user can create an e-mail message with a specially crafted recipient address. When the message is processed by the target system, arbitrary code will be executed with root privileges.
If clamav-milter was started with the black hole mode activated, the system is vulnerable.
The vendor was notified on August 10, 2007.
Nikolaos Rangos of n.runs AG discovered this vulnerability.
A remote user can execute arbitrary code on the target system with root privileges.|
The vendor has issued a fixed version (0.91.2).|
Vendor URL: www.clamav.net/ (Links to External Site)
Input validation error|
|Underlying OS: Linux (Any), UNIX (Any)|
Source Message Contents
Subject: [Full-disclosure] n.runs-SA-2007.025 - ClamAV Remote Code Execution|
Vendor: ClamAV, http://www.clamav.net
Affected Products: ClamAV,
Vulnerability : Remote Code Execution
2007/08/10 Initial notification to ClamAV
2007/08/10 ClamAV Responses
2007/08/10 PoC files sent to ClamAV
2007/08/21 ClamAV releases version 0.91.2
2007/08/24 n.runs AG releases a coordinated disclosure advisory
Clam AntiVirus is an open source (GPL) anti-virus toolkit for UNIX,
designed especially for e-mail scanning on mail gateways. It provides
a number of utilities including a flexible and scalable multi-threaded
daemon, a command line scanner and advanced tool for automatic database
updates. The core of the package is an anti-virus engine available in
a form of shared library.
A remotely exploitable vulnerability has been found in clamav-milter
when used with sendmail. In detail, the following flaw was determined:
- Arbitrary code execution due to insecure call to popen()
This vulnerability can lead to remote code execution with root privileges.
Leading to a complete compromise of the vulnerable system.
An attacker can inject shell commands into the recipient field of sendmail,
if clamav-milter was started with the black hole mode activated.
The vulnerability is present in at least clamav version 0.91.1, prior
versions may also be affected.
A new stable release (clamav 0.91.2) is available at the clamav website
fixes the vulnerability.
Bugs found by Nikolaos Rangos of n.runs AG.
This Advisory and Upcoming Advisories
Unaltered electronic reproduction of this advisory is permitted. For all
other reproduction or publication, in printing or otherwise, contact
securitynruns.com for permission. Use of the advisory constitutes
acceptance for use in an as is condition. All warranties are excluded. In
no event shall n.runs be liable for any damages whatsoever including direct,
indirect, incidental, consequential, loss of business profits or special
damages, even if n.runs has been advised of the possibility of such damages.
Full-Disclosure - We believe in it.
Hosted and sponsored by Secunia - http://secunia.com/