Live threats

All CVEs / Phpmailer

CVE-2007-3215Phpmailer

Medium 6.8 No auth needed

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Phpmailer.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow 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)

VendorProductVersions
phpmailerphpmailer1.7
phpmailerphpmailer1.7.1
phpmailerphpmailer1.7.2
phpmailerphpmailer1.7.3
phpmailerphpmailer1.73

Official sources

References

Links published by the sources. Open them with care.