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

high Nessus Plugin ID 29830
New! Plugin Severity Now Using CVSS v3

The calculated severity for Plugins has been updated to use CVSS v3 by default. Plugins that do not have a CVSS v3 score will fall back to CVSS v2 for calculating severity. Severity display preferences can be toggled in the settings dropdown.


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: 1.28

Type: remote

Published: 1/3/2008

Updated: 11/15/2018

Dependencies: smtpserver_detect.nasl, os_fingerprint.nasl

Risk Information


Risk Factor: High

Score: 7.4


Risk Factor: High

Base Score: 7.6

Temporal Score: 6.3

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

Temporal Vector: E:F/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: 8/24/2007

Vulnerability Publication Date: 8/24/2007

Exploitable With

CANVAS (D2ExploitPack)

Metasploit (ClamAV Milter Blackhole-Mode Remote Code Execution)

Reference Information

CVE: CVE-2007-4560

BID: 25439

CWE: 78