Phpmailer vulnerabilitiesAnd the versions its exploited flaws hit.

Product1 known exploited51 versions
The short answer

Phpmailer is made by Phpmailer Project. We track 10 published vulnerabilities in it, across 51 versions. 1 of them is on the list of flaws known to be exploited, the newest added on 7 July 2025. If you run Phpmailer, check your version against the exploited flaws below and patch those first.

Check your version

The most recent Phpmailer flaw added to the known-exploited list is CVE-2016-10033, on 7 July 2025. We keep watching the known-exploited list.

Versions

Which versions of Phpmailer do the exploited flaws hit?

Each exploited flaw lists the versions it affects, usually as ranges. "before 5.2.18" means every version up to, but not including, 5.2.18. Find your version, then patch.

  • CVE-2016-10033Exploited list, 7 Jul 2025

    PHPMailer Command Injection Vulnerability

    before 5.2.18
Known exploited

Which Phpmailer vulnerabilities are being exploited?

1 flaw is on the government list of vulnerabilities known to be exploited. These are the ones criminals are using now, so they go first, whatever their severity score says.

  1. 9.8
    CVE-2016-10033CriticalKnown exploited
    PHPMailer Command Injection Vulnerability

    PHPMailer contains a command injection vulnerability because it fails to sanitize user-supplied input.

    Chance of use>99%Known exploited since7 Jul 2025
Exploit likelihood

Which Phpmailer flaws are most likely to be used?

Ranked by the latest exploit-likelihood forecast: the chance each flaw is used in an attack in the next 30 days. A high severity score on its own doesn't tell you that. Flaws shared by many other makers' products are left out.

50% or more10% to 49%Under 10%
  1. >99%
    CVE-2016-10033CriticalKnown exploited

    The mailSend function in the isMail transport in PHPMailer before 5.2.18 might allow remote attackers to pass extra parameters to the mail command and consequently execute arbitrary code via a \" (backslash double...

    CVSS9.8Published30 Dec 2016
  2. 98%

    The isMail transport in PHPMailer before 5.2.20 might allow remote attackers to pass extra parameters to the mail command and consequently execute arbitrary code by leveraging improper interaction between the...

    CVSS9.8Published30 Dec 2016
  3. 3.8%

    PHPMailer before 6.1.6 contains an output escaping bug when the name of a file attachment contains a double quote character.

    CVSS7.5Published8 Jun 2020
  4. 3.1%

    PHPMailer 6.1.8 through 6.4.0 allows object injection through Phar Deserialization via addAttachment with a UNC pathname.

    CVSS9.8Published28 Apr 2021
  5. 2.8%

    PHPMailer before 6.5.0 on Windows allows remote code execution if lang_path is untrusted data and has a UNC pathname.

    CVSS8.1Published16 Jun 2021
  6. 2.4%

    PHPMailer 5.2.23 has XSS in the "From Email Address" and "To Email Address" fields of code_generator.php.

    CVSS6.1Published20 Jul 2017
  7. 2.3%

    PHPMailer 6.4.1 and earlier contain a vulnerability that can result in untrusted code being called (if such code is injected into the host project's scope by other means).

    CVSS8.1Published17 Jun 2021
  8. 2.2%

    PHPMailer before 5.2.27 and 6.x before 6.0.6 is vulnerable to an object injection attack.

    CVSS8.8Published16 Nov 2018
  9. 2.1%

    An issue was discovered in PHPMailer before 5.2.22.

    CVSS5.5Published16 Jan 2017
  10. 2.0%

    Multiple CRLF injection vulnerabilities in PHPMailer before 5.2.14 allow attackers to inject arbitrary SMTP commands via CRLF sequences in an (1) email address to the validateAddress function in class.phpmailer.php...

    CVSS5.0Published16 Dec 2015
Precursor Intelligence

Running Phpmailer? We'll keep checking.

Looking flaws up one at a time doesn't scale. Tell us what you run once, and we tell you which flaws matter to you, in what order, and keep watching for new ones.

  1. Tell us what you runPick your software from a list, or let us work it out from your website.
  2. We match it to every flawOver 400,000 published flaws, checked against your list.
  3. Ranked by real-world riskA 0 to 100 score, led by evidence criminals are using it.
  4. Told as soon as we knowAn alert by email, in the app or by webhook to your own tools.

Free plan, no card needed. Nothing to install.

FAQ

Common questions, answered plainly.

Something else? Talk to the team →

We track 10 published vulnerabilities listed under the name Phpmailer, across 51 versions. The most recent Phpmailer flaw added to the known-exploited list is CVE-2016-10033, on 7 July 2025.

1 is on the list of flaws known to be exploited. The most recently added is CVE-2016-10033.

Each flaw names its own versions, usually as ranges. The newest, CVE-2016-10033, affects before 5.2.18. The versions for every exploited flaw are listed on this page.

Create a Precursor Intelligence account and track Phpmailer. We match it against every published flaw, give each one a risk score from 0 to 100 and keep watching, so you hear about new ones as soon as we know, by email, in the app or by webhook.