CVE-2007-3215Phpmailer
Medium 6.8 No auth needed
Follow: this CVE · Phpmailer · Phpmailer We alert you by email or Slack (account required).
- Priority
- 56
- CVSS 2.0
- 6.8
- EPSS
- 2.4% probability of exploitation in 30 days · percentile 85
- Auth required
- No
- Published
- Jun 14, 2007
- Updated
- Jun 16, 2026
- Category
- Application · Cross-platform
- Vector
AV:N/AC:M/Au:N/C:P/I:P/A:P
What happens
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
- Apply the vendor's security update for Phpmailer.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| Packagist | phpmailer/phpmailer |
< 1.7.4 |
1.7.4 |
composer require "phpmailer/phpmailer:^1.7.4" |
Per OSV / GitHub Advisories (GHSA-6h78-85v2-mmch). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| phpmailer | phpmailer | 1.7 |
| phpmailer | phpmailer | 1.7.1 |
| phpmailer | phpmailer | 1.7.2 |
| phpmailer | phpmailer | 1.7.3 |
| phpmailer | phpmailer | 1.73 |
Official sources
References
Links published by the sources. Open them with care.