ClamAV clamav-milter black-hole-mode Sendmail Recipient Field Arbitrary Command Execution

High Nessus Plugin ID 29830


The remote mail server allows execution of arbitrary commands.


The remote host appears to be running a version of Clamav-milter, a filter for sendmail, configured with '--black-hole-mode' that fails to sanitize recipient addresses of shell metacharacters before using them in a call to 'popen()' to determine whether to discard incoming messages. An unauthenticated, remote attacker can leverage this issue to execute arbitrary code, typically as root.


Upgrade to ClamAV 0.91.2 or later.

See Also

Plugin Details

Severity: High

ID: 29830

File Name: clamav_milter_blackhole_cmd_exec.nasl

Version: $Revision: 1.26 $

Type: remote

Published: 2008/01/03

Modified: 2016/10/07

Dependencies: 11936, 10263

Risk Information

Risk Factor: High


Base Score: 7.6

Temporal Score: 6.6

Vector: CVSS2#AV:N/AC:H/Au:N/C:C/I:C/A:C

Temporal Vector: CVSS2#E:ND/RL:OF/RC:C

Vulnerability Information

CPE: cpe:/a:clamav:clamav

Required KB Items: Settings/ThoroughTests

Exploit Available: true

Exploit Ease: Exploits are available

Patch Publication Date: 2007/08/24

Vulnerability Publication Date: 2007/08/24

Exploitable With

CANVAS (D2ExploitPack)

Metasploit (ClamAV Milter Blackhole-Mode Remote Code Execution)

Reference Information

CVE: CVE-2007-4560

BID: 25439

OSVDB: 36909

CWE: 78