← Vulnerability feed

Vulnerability record · CVE-2007-4560 · published 28 August 2007

CVE-2007-4560: ClamAV clamav-milter black hole mode command injection

CClam Anti Virus · Clamav

clamav-milter in ClamAV before 0.91.2, when run in black hole mode, passes the sendmail recipient field into a popen call without sanitizing shell metacharacters. This allows OS command injection through crafted recipient data. The flaw matters because it turns a mail-handling component into a remote command execution vector.

7.6 CVSS 2.0 High EPSS 84% · top 0.3% CWE-78 · OS command injection
7.6CVSS 2.0 base score
84%EPSS exploitation probability, 30 days
NoNot in CISA KEV
1Affected product versions listed by NVD
42References
16 Jun 2026Last modified by NVD

Description

clamav-milter in ClamAV before 0.91.2, when run in black hole mode, allows remote attackers to execute arbitrary commands via shell metacharacters that are used in a certain popen call, involving the "recipient field of sendmail."

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

Automated analysis

Generated by VULONE's analysis model from the NVD record, CISA KEV and EPSS data on 18 September 2026. Confidence: high.

high priorityRemote command execution with no authentication required, though high attack complexity and an available patch reduce urgency below critical.

What it is

clamav-milter in ClamAV before 0.91.2, when run in black hole mode, passes the sendmail recipient field into a popen call without sanitizing shell metacharacters. This allows OS command injection through crafted recipient data. The flaw matters because it turns a mail-handling component into a remote command execution vector.

Impact

An attacker can execute arbitrary commands with the privileges of the clamav-milter process. This can lead to full compromise of the mail gateway host.

Attack surface

Reached remotely over the network via sendmail recipient data processed by clamav-milter in black hole mode. No authentication is required per the CVSS vector (Au:N), though the attack is rated high complexity (AC:H).

Exploitation

Not listed in CISA KEV and no ransomware associations are documented. EPSS is very high (0.83539, 99.668th percentile), and references include Patch-tagged advisories, indicating public technical detail and fixes exist.

What to do

  • Upgrade ClamAV to 0.91.2 or later, which fixes the popen command injection.
  • If black hole mode is not required, disable it in clamav-milter configuration.
  • Apply vendor security updates for ClamAV packages on affected distributions (Debian, Gentoo, Mandriva, Novell, Red Hat/Fedora, Trustix, Apple).
  • Restrict network exposure of the milter/sendmail interface to trusted mail relays only.
  • Run clamav-milter with least privilege so command execution does not yield root.

Detection

  • Monitor clamav-milter and sendmail logs for unusual recipient strings containing shell metacharacters such as ;, |, $(), backticks, or newlines.
  • Alert on child processes spawned by clamav-milter that are not expected scanner binaries.
  • Audit mail gateway hosts for unexpected outbound connections or command execution following milter activity.
  • Check for the presence of the vulnerable ClamAV version (<0.91.2) across mail infrastructure.

This assessment is produced automatically and is not human-reviewed. Verify against the vendor advisory before acting on it.

Affected products

1 vulnerable configurations from NVD's CPE data, grouped by vendor and product.

References

LinkTags
http://docs.info.apple.com/article.html?artnum=307562
http://lists.apple.com/archives/security-announce/2008/Mar/msg00001.html
http://secunia.com/advisories/26654 Vendor Advisory
http://secunia.com/advisories/26674 Vendor Advisory
http://secunia.com/advisories/26683 Vendor Advisory
http://secunia.com/advisories/26751 Vendor Advisory
http://secunia.com/advisories/26822 Vendor Advisory
http://secunia.com/advisories/26916 Vendor Advisory
http://secunia.com/advisories/29420
http://security.gentoo.org/glsa/glsa-200709-14.xml
http://securityreason.com/securityalert/3063
http://www.debian.org/security/2007/dsa-1366
http://www.mandriva.com/security/advisories?name=MDKSA-2007:172
http://www.novell.com/linux/security/advisories/2007_18_sr.html
http://www.nruns.com/security_advisory_clamav_remote_code_exection.php Patch
http://www.securityfocus.com/archive/1/477723/100/0/threaded
http://www.securityfocus.com/bid/25439 Patch
http://www.securitytracker.com/id?1018610
http://www.trustix.org/errata/2007/0026/
http://www.vupen.com/english/advisories/2008/0924/references
https://www.redhat.com/archives/fedora-package-announce/2007-September/msg00104.html
http://docs.info.apple.com/article.html?artnum=307562
http://lists.apple.com/archives/security-announce/2008/Mar/msg00001.html
http://secunia.com/advisories/26654 Vendor Advisory
http://secunia.com/advisories/26674 Vendor Advisory
http://secunia.com/advisories/26683 Vendor Advisory
http://secunia.com/advisories/26751 Vendor Advisory
http://secunia.com/advisories/26822 Vendor Advisory
http://secunia.com/advisories/26916 Vendor Advisory
http://secunia.com/advisories/29420
http://security.gentoo.org/glsa/glsa-200709-14.xml
http://securityreason.com/securityalert/3063
http://www.debian.org/security/2007/dsa-1366
http://www.mandriva.com/security/advisories?name=MDKSA-2007:172
http://www.novell.com/linux/security/advisories/2007_18_sr.html
http://www.nruns.com/security_advisory_clamav_remote_code_exection.php Patch
http://www.securityfocus.com/archive/1/477723/100/0/threaded
http://www.securityfocus.com/bid/25439 Patch
http://www.securitytracker.com/id?1018610
http://www.trustix.org/errata/2007/0026/

Track CVE-2007-4560 inside VULONE

Watch it alongside the ransomware crews, C2 infrastructure and forum chatter that reference it, query it through the API and pull it into your SIEM over TAXII.

Start free Open in platform

Related vulnerabilities

Same products first, then exploited flaws of the same weakness class.

10.0CVE-2008-1100Clam anti-virus clamav memory buffer overflow vulnerabilityBuffer overflow in the cli_scanpe function in libclamav (libclamav/pe.c) for ClamAV 0.92 and 0.92.1 allows remote attackers to execute arbitrary code…EPSS 11%10.0CVE-2008-0318Clam anti-virus clamav vulnerabilityInteger overflow in the cli_scanpe function in libclamav in ClamAV before 0.92.1, as used in clamd, allows remote attackers to cause a denial of serv…EPSS 7.9%10.0CVE-2007-6337Clam anti-virus clamav vulnerabilityUnspecified vulnerability in the bzip2 decompression algorithm in nsis/bzlib_private.h in ClamAV before 0.92 has unknown impact and remote attack vec…EPSS 2.8%10.0CVE-2007-3023Clam anti-virus clamav vulnerabilityunsp.c in ClamAV before 0.90.3 and 0.91 before 0.91rc1 does not properly calculate the end of a certain buffer, with unknown impact and remote attack…EPSS 2.2%10.0CVE-2005-3587Clam anti-virus clamav vulnerabilityImproper boundary checks in petite.c in Clam AntiVirus (ClamAV) before 0.87.1 allows attackers to perform unknown attacks via unknown vectors.EPSS 2.2%9.3CVE-2008-5050Clam anti-virus clamav memory buffer overflow vulnerabilityOff-by-one error in the get_unicode_name function (libclamav/vba_extract.c) in Clam Anti-Virus (ClamAV) before 0.94.1 allows remote attackers to caus…EPSS 8.3%7.8CVE-2007-2029Clam anti-virus clamav vulnerabilityFile descriptor leak in the PDF handler in Clam AntiVirus (ClamAV) allows remote attackers to cause a denial of service via a crafted PDF file.EPSS 3.0%7.8CVE-2005-3239Clam anti-virus clamav vulnerabilityThe OLE2 unpacker in clamd in Clam AntiVirus (ClamAV) 0.87-1 allows remote attackers to cause a denial of service (segmentation fault) via a DOC file…EPSS 4.5%

Source: NIST National Vulnerability Database (record CVE-2007-4560), CISA KEV, FIRST EPSS (scores of 2026-09-26). This page is refreshed as NVD updates the record.