Every CVE Search/ Get API key

CVE-2007-3215

PHPMailer Shell command injection

6.8 MediumFix available

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.

Exploit likelihood

2.41%Down 1.4 points since Feb 4, 2022
90%50%10%1%

What each source reports

NVD Score used 6.8

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.

Record
CVE-2007-3215
CVSS 2.0
6.8 MediumAV:N/AC:M/Au:N/C:P/I:P/A:P
Updated
2026-11-02
CVE List No score

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.

Record
CVE-2007-3215
Updated
2026-11-02
EUVDEUVD-2024-0536 No score

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.

Record
EUVD-2024-0536
Updated
2026-11-03
GitHub AdvisoriesGHSA-6h78-85v2-mmch No score

PHPMailer Shell command injection

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

Impact

Shell command injection, remotely exploitable if host application does not filter user data appropriately.

Patches

Fixed in 1.7.4

Workarounds

Filter and validate user-supplied data before putting in the into the Sender property.

References

https://nvd.nist.gov/vuln/detail/CVE-2007-3215

For more information

If you have any questions or comments about this advisory:

Record
GHSA-6h78-85v2-mmch
Updated
2026-11-02
OSV No score

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.

Record
CVE-2007-3215
Updated
2026-11-02
OSVDEBIAN-CVE-2007-3215 No score

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.

Record
DEBIAN-CVE-2007-3215
Updated
2026-11-02
OSVGHSA-6h78-85v2-mmch No score

PHPMailer Shell command injection

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

Impact

Shell command injection, remotely exploitable if host application does not filter user data appropriately.

Patches

Fixed in 1.7.4

Workarounds

Filter and validate user-supplied data before putting in the into the Sender property.

References

https://nvd.nist.gov/vuln/detail/CVE-2007-3215

For more information

If you have any questions or comments about this advisory:

Record
GHSA-6h78-85v2-mmch
Updated
2026-11-02

Affected products

Affected packages

Affected packages
PackageAffectedFixed
phpmailer/phpmailer
Packagist
before 1.7.4
1.7.4
libphp-phpmailer
Debian:12
before 1.73-4
1.73-4
libphp-phpmailer
Debian:13
before 1.73-4
1.73-4
libphp-phpmailer
Debian:14
before 1.73-4
1.73-4
wordpress
Debian:12
before 2.2.1-1
2.2.1-1
wordpress
Debian:13
before 2.2.1-1
2.2.1-1
wordpress
Debian:14
before 2.2.1-1
2.2.1-1
libphp-phpmailer
Debian:4.0
before 1.73-2etch1, plus listed versions
1.73-2
1.73-2etch1

History

History
RecordedChangedSources
aliasesEUVD
affected, aliases, facts, references, titleGitHub Advisories, OSV
first indexedCVE List, NVD

Dates are when Every CVE recorded each change. Upstream dates may differ.

In short

CVE-2007-3215 is a medium vulnerability (CVSS 6.8) in Phpmailer, published June 14, 2007. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 2.41%, the 84th percentile. Fixed in phpmailer/phpmailer 1.7.4.

References

Show 18 moreShow less
MoveEnter Open