Free and open · new CVEs checked every 20 minutesStatusRSSOpen dataContact

CVE-2007-3215: PHPMailer 1.7, when configured to use sendmail, allows remote attackers to execute arbitrary shell commands vi

45
This month
MEDIUM 6.8DOWNGRADE

CVE-2007-3215 is a medium-severity flaw (CVSS 6.8) affecting phpmailer. Below: why it ranks where it does, which versions are affected, what to do, and the exact commands.

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.

Why this priority

  • No elevated risk signals yet

No fix is published yet: follow the downgrade or mitigation steps.

Risk facts

CVSS score6.8 (Medium)
EPSS exploit chance2.4% (top 16%)
CISA exploited listNo
Published2007-06-14
Last modified2026-06-16
Publisher (CNA): MITRE · Vendor: phpmailer

Share: LinkedIn · X · Reddit

Last updated 2026-06-16 · Sources: CVE Program, NVD, CISA KEV, EPSS and vendor advisories · How we score

Am I affected?

Timeline

phpmailer phpmailer DOWNGRADE
Affected: 1.7 · 1.7.1 · 1.7.2 · 1.7.3 · 1.73
Fixed in: no fixed release known
Safe to downgrade to: a release before 1.7
1. Check installed version
apt-cache policy phpmailer || rpm -q phpmailer || phpmailer --version
2. No fixed release: DOWNGRADE to a release before 1.7 (Debian / Ubuntu)
apt-cache madison phpmailer sudo apt install phpmailer=<VERSION_BEFORE_1.7> sudo apt-mark hold phpmailer
2. No fixed release: DOWNGRADE (RHEL / Amazon Linux / Fedora)
dnf --showduplicates list phpmailer sudo dnf downgrade phpmailer-<VERSION_BEFORE_1.7> sudo dnf versionlock add phpmailer
Downgrade risk
Downgrading can break dependent software and may reopen older bugs. Read the distro advisory first and test on a non-production host.
After downgrade
Restart the service, and keep the package held until a fixed release ships.
Verify at the official source NVD · CVE Program · Report a problem with this page
Scores and fixes here are computed automatically from those and other public sources. Confirm with the vendor advisory before changing production systems.

Quick answers

How do I fix CVE-2007-3215?

phpmailer: downgrade or apply the listed mitigation. Exact commands for each OS are on this page.

Is CVE-2007-3215 being exploited?

CVE-2007-3215 is not on the CISA Known Exploited Vulnerabilities list at the time of the last update. Check again, as this can change.

What does CVE-2007-3215 affect?

CVE-2007-3215 affects phpmailer. Severity is medium (CVSS 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.

How urgent is CVE-2007-3215?

Priority 45/100. No elevated risk signals yet.

Software pages

PHP vulnerabilities

Related CVEs

References

← Back to latest CVEs

Get the weekly exploited-CVE digest by emailThe CVEs being attacked this week and how to fix them. No spam, unsubscribe any time.