Skip to main content
CVE Radar
criticalRemote Code Execpublic exploit

CVE-2016-10045

CVE-2016-10045 — The isMail transport in PHPMailer before 5.2.20 might allow remote attackers to pass extra parameters to the mail command and consequently…

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 escapeshellarg function and internal escaping performed in the mail function in PHP. NOTE: this vulnerability exists because of an incorrect fix for CVE-2016-10033.

Published Updated Sources: NVD, Unknown (CNA), GitHub, GitHub Security Advisory, Exploit-DB, Red Hat (VEX), SOCRadar CTI

Triage

Is it exploited, how likely is exploitation, what does it touch, and how severe do the scoring sources call it.

Exploitation

Reported

not confirmed by CISA

EPSS

98%

top of FIRST's scoreset

Affects

Unknown

2 products listed

CVSS base

9.8

critical · 3 sources

Remediation

The vendor's own words where we have them.

Upgrade phpmailer/phpmailer to 5.2.20 or later (composer advisory GHSA-4pc3-96mx-wwc8).

Red Hat VEX · CVE-2016-10045

fixed0affected0not affected1

First 24 hours

Ordered from the record's own fields — exposure first, because you cannot patch what you have not found.

  • Identify exposed assets running affected vendor/product/version combinations.
  • Prioritize based on EPSS, PoC availability, and external exposure.
  • Search available logs for exploit probes, errors, authentication anomalies, or suspicious child processes matching the vulnerability class.

Affected scope

Vendor, product and version as the advisories word them.

Affected vendors, products and versions
VendorProductVersionsStatus
UnknownUnknownn/aVulnerable
Composerphpmailer/phpmailer>= 5.0.0, < 5.2.20Vulnerable

Attack characteristics

The CVSS vector, decoded. It describes the attack, not your exposure to it.

Availability

High

Confidentiality

High

Integrity

High

Scope

Unchanged

Attack Complexity

Low

Attack Vector

Network

Privileges Req

None

User Interaction

None

Every base score collected

Sources score independently and disagree; each row says who scored it and under which version.

Every CVSS base score collected, by source and version
ScoreVersionSeverityExpl.ImpactSource
9.8CVSS 3.1critical3.95.9NVD, GHSA
7.5CVSS 2.0high106.4NVD
9.8CVSS 3.1criticaln/an/aRed Hat (VEX)

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

What this weakness leads to

MITRE's own consequences and mitigations for the weakness class — the authority's wording, not guidance derived from the CVSS vector.

MITRE

CWE-77 · Improper Neutralization of Special Elements used in a Command ('Command Injection')

  • Execute Unauthorized Code or Commands

Mitigation: If at all possible, use library calls rather than external processes to recreate the desired functionality.

Weakness & attack patterns

  • CWE-77Command Injection

Attack patterns reported against this CVE. The ATT&CK techniques below are inferred from its weakness class.

CAPEC-40 · Manipulating Writeable Terminal DevicesCAPEC-75 · Manipulating Writeable Configuration FilesCAPEC-15 · Command DelimitersCAPEC-136 · LDAP InjectionCAPEC-248 · Command InjectionCAPEC-76 · Manipulating Web Input to File System CallsCAPEC-43 · Exploiting Multiple Input Interpretation LayersCAPEC-183 · IMAP/SMTP Command Injection

Public exploit

Capability, not use: code existing is a different claim from anyone running it.

PoC repos

150

1 of the 5 sampled are weaponized

Exploit entries

10

Exploit-DB and CTI exploit indexes

Detection

Read off the CVSS vector and the weakness class. Starting points, not rules we have tested.

  • Prioritize edge telemetry for network-reachable Unknown, Phpmailer/phpmailer.
  • Monitor for scanner or exploit-pattern traffic after 160 public PoC repositories were reported.
web/proxy/WAF logsapplication logsnetwork IDS/IPSEDR process telemetryhost service logs

Groups associated with this CVE

Groups reported in connection with this vulnerability. A reported association, not a confirmed observation of that group using it — and not scoped to any sector or campaign.

  • hostnameweisvermthal.shop64

    Hole Cert · Jul 21, 2026

  • ip188.143.232.129

    Zonefiles · Aug 26, 2020

  • hostnamerodriguezhenry.shop62

    Hole Cert · May 31, 2026

  • hostnamesourballsimplausibilirrty.info64

    Hole Cert · Jun 2, 2026

  • hostnamefonmolanf.cyou67

    Hole Cert · Jun 11, 2026

SOCRadar5 more indicators on this CVEShowing 5 of 10 · Hashes, addresses and domains from a live threat exchangeUnlock free

Timeline

What happened to this CVE, newest first — with the readings a source repeats on a schedule counted underneath rather than listed.

  1. 2026
  2. Added · CVSS 3.1 9.8 (AV:N)

    Jun 17, 2026 · NVD

  3. 2023
  4. CVE is exploited. "ARPSyndicate/cvemon"

    Dec 15, 2023 · SOCRadar CTI

  5. CVE is exploited. "aklmtst/PHPMailer-Remote-Code-Execution-Exploit"

    Dec 15, 2023 · SOCRadar CTI

  6. CVE is exploited. "pedro823/cve-2016-10033-45"

    Dec 15, 2023 · SOCRadar CTI

  7. 2020
  8. Bulletin released on MITRE_REFERENCES.

    Sep 16, 2020 · SOCRadar CTI

  9. Added · GHSA-4pc3-96mx-wwc8 published (critical)

    Mar 5, 2020 · GitHub Security Advisory

  10. 2017
  11. Added · webapps entry: PHPMailer < 5.2.20 / SwiftMailer < 5.4.5-DEV/Zend Framework/zend-mail < 2.4.11 - 'AIO' 'P…

    Jan 2, 2017 · Exploit-DB

  12. 2016
  13. Initial · CVE published

    Dec 30, 2016 · NVD

  14. Added · webapps entry: PHPMailer < 5.2.20 - Remote Code Execution (RCE)

    Dec 27, 2016 · Exploit-DB

  15. Added · Verified webapps entry: PHPMailer < 5.2.19 - Sendmail Argument Injection (Metasploit)

    Dec 26, 2016 · Exploit-DB

Source activity

Readings a source repeats on a schedule, counted rather than listed.

  • 33×Github ReposJun 9, 2020 – Apr 6, 2023 · SOCRadar CTI
  • 2×Tweets · 1 time tweeted.Jul 9, 2025 – Jul 10, 2025 · SOCRadar CTI
  • 1×CVE modified by NIST.Sep 30, 2021 · SOCRadar CTI

References

22 on the record

Coverage

1 story from the feeds we poll

Related CVEs

Same product first, then the same weakness or threat actor.

Elsewhere on this site

Not in any source we poll

Listed rather than left blank: an empty field and an unmeasured one look identical on screen, and only one is a reason to look elsewhere.

  • Only the 5 indicator(s) reported for this CVE are available; no packet-level or host-forensic artifacts supplied.
  • No organization-specific asset inventory, compensating-control status, or patch deployment evidence supplied.
  • No exploit packet captures, log samples, or incident case IDs supplied.
Answered from this record1

What should defenders know first?

CVE-2016-10045 is The isMail transport in PHPMailer before 5.2.20 might allow remote attackers to pass extra parameters to the mail command and consequently…, a critical vulnerability affecting Unknown, Phpmailer/phpmailer from Unknown, Composer. The current evidence does not list it in CISA KEV, and the exploit status is: Exploitation is reported, but no independent confirmation is available in the sources we have. Public exploit evidence is: 160 public PoC repositories reported; 1 marked weaponized in current dataset. The affected-version evidence is listed in the key facts and affected products tables. Defenders should first verify whether exposed or business-critical assets run those versions, then apply vendor patches or mitigations, restrict reachable attack surface, and preserve logs for detection review. CVSS 9.8 describes technical severity, while EPSS 98% helps estimate near-term exploit likelihood; neither replaces asset context. Unknown fields should remain explicit in tickets, and threat actor, IOC, victimology, or payload claims should not be added unless a cited source supports them. Monitor CISA KEV, vendor advisories, NVD changes, public PoC repositories, and internal telemetry for update triggers.