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

This script is Copyright (C) 2008-2014 Tenable Network Security, Inc.


Synopsis :

The remote mail server allows execution of arbitrary commands.

Description :

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.

See also :

http://www.nruns.com/security_advisory_clamav_remote_code_exection.php
http://www.securityfocus.com/archive/1/477723/100/0/threaded
http://archives.neohapsis.com/archives/fulldisclosure/2007-12/0519.html

Solution :

Upgrade to ClamAV 0.91.2 or later.

Risk factor :

High / CVSS Base Score : 7.6
(CVSS2#AV:N/AC:H/Au:N/C:C/I:C/A:C)
CVSS Temporal Score : 6.3
(CVSS2#E:F/RL:OF/RC:C)
Public Exploit Available : true

Family: SMTP problems

Nessus Plugin ID: 29830 (clamav_milter_blackhole_cmd_exec.nasl)

Bugtraq ID: 25439

CVE ID: CVE-2007-4560