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."
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | clamav | 0.91.2-1~volatile1 | — |
| Debian 13 | clamav | 0.91.2-1~volatile1 | — |
| Debian 12 | clamav | 0.91.2-1~volatile1 | — |
| Debian 4.0 | clamav | 0.90.1-3etch7 | DSA-1366-1 |
Public exploits
Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.
Metasploit 1 module
-
ClamAV Milter Blackhole-Mode Remote Code Execution
exploit/unix/smtp/clamav_milter_blackhole
Exploit-DB 3
- ClamAV Milter - Blackhole-Mode Remote Code Execution (Metasploit) EDB-16924 · remote · Oct 9, 2010 · verified
- Sendmail with clamav-milter < 0.91.2 - Remote Command Execution EDB-4761 · remote · Dec 21, 2007 · verified
- ClamAV Milter 0.92.2 - Blackhole-Mode (Sendmail) Code Execution (Metasploit) EDB-9913 · remote · Aug 24, 2007 · verified
GitHub 2 repositories
-
Strikoder-Premium/sendmail-clamav-exploit-CVE-2007-4560 ★ 4 · Dec 7, 2025
Python RCE exploit for Sendmail with ClamAV-Milter <0.91.2 (CVE-2007-4560). Remote root command injection via SMTP RCPT TO headers.
-
0x1sac/ClamAV-Milter-Sendmail-0.91.2-Remote-Code-Execution ★ 0 · Dec 31, 2022
Exploit for CVE-2007-4560 (ClamAV Milter Sendmail 0.91.2 Remote Code Execution)
Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.
Advisories 1
- DSA-1366-1 clamav Debian Security (DSA / DLA) · Mar 9, 2026
References
- GLSA-200709-14 vendor-advisory
- 3063 third-party-advisory
- 26822 third-party-advisory
- 26916 third-party-advisory
- 20070824 n.runs-SA-2007.025 - ClamAV Remote Code Execution Advisory mailing-list
- 26683 third-party-advisory
- http://www.nruns.com/security_advisory_clamav_remote_code_exection.php
- FEDORA-2007-2050 vendor-advisory
- DSA-1366 vendor-advisory
- ADV-2008-0924 vdb-entry
- 2007-0026 vendor-advisory
- 29420 third-party-advisory
- SUSE-SR:2007:018 vendor-advisory
- APPLE-SA-2008-03-18 vendor-advisory
- 26751 third-party-advisory
- 1018610 vdb-entry
- 26654 third-party-advisory
- http://docs.info.apple.com/article.html?artnum=307562
- MDKSA-2007:172 vendor-advisory
- 26674 third-party-advisory
- 25439 vdb-entry