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
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
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.
| Vendor | Product | Versions | Status |
|---|---|---|---|
| Unknown | Unknown | n/a | Vulnerable |
| Composer | phpmailer/phpmailer | >= 5.0.0, < 5.2.20 | Vulnerable |
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.
| Score | Version | Severity | Expl. | Impact | Source |
|---|---|---|---|---|---|
| 9.8 | CVSS 3.1 | critical | 3.9 | 5.9 | NVD, GHSA |
| 7.5 | CVSS 2.0 | high | 10 | 6.4 | NVD |
| 9.8 | CVSS 3.1 | critical | n/a | n/a | Red 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.
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.
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.
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
5 more indicators on this CVEShowing 5 of 10 · Hashes, addresses and domains from a live threat exchangeUnlock freeTimeline
What happened to this CVE, newest first — with the readings a source repeats on a schedule counted underneath rather than listed.
- 2026
Added · CVSS 3.1 9.8 (AV:N)
Jun 17, 2026 · NVD
- 2023
CVE is exploited. "ARPSyndicate/cvemon"
Dec 15, 2023 · SOCRadar CTI
CVE is exploited. "aklmtst/PHPMailer-Remote-Code-Execution-Exploit"
Dec 15, 2023 · SOCRadar CTI
CVE is exploited. "pedro823/cve-2016-10033-45"
Dec 15, 2023 · SOCRadar CTI
- 2020
Bulletin released on MITRE_REFERENCES.
Sep 16, 2020 · SOCRadar CTI
Added · GHSA-4pc3-96mx-wwc8 published (critical)
Mar 5, 2020 · GitHub Security Advisory
- 2017
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
- 2016
Initial · CVE published
Dec 30, 2016 · NVD
Added · webapps entry: PHPMailer < 5.2.20 - Remote Code Execution (RCE)
Dec 27, 2016 · Exploit-DB
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
- openwall.com/lists/oss-security/2016/12/28/1
Mailing List, Patch, Mitre, NIST
- packetstormsecurity.com/files/140286/PHPMailer-Remote-Code-Execution.html
Exploit, Third Party Advisory, VDB Entry, MITRE_REFERENCES, GITHUB, NIST
- packetstormsecurity.com/files/140350/PHPMailer-Sendmail-Argument-Injection.html
Exploit, Third Party Advisory, VDB Entry, MITRE_REFERENCES, GITHUB, NIST
- seclists.org/fulldisclosure/2016/Dec/81
Mailing List, Patch, Third Party Advisory, GITHUB, Mitre, NIST
- www.rapid7.com/db/modules/exploit/multi/http/phpmailer_arg_injection
Exploit, Third Party Advisory, MITRE_REFERENCES, NIST
- www.securityfocus.com/archive/1/539967/100/0/threaded
Third Party Advisory, VDB Entry, NIST
- www.securityfocus.com/bid/95130
Exploit, Third Party Advisory, VDB Entry, NIST
- www.securitytracker.com/id/1037533
Third Party Advisory, VDB Entry, NIST
Coverage
1 story from the feeds we poll
Related CVEs
Same product first, then the same weakness or threat actor.
- CVE-2016-10033 PHPMailer Command Injection VulnerabilityCVSS 9.8 · CISA KEV
- CVE-2020-24186 A Remote Code Execution vulnerability exists in the gVectors wpDiscuz plugin 7.0 through 7.0.4 for WordPress, which allows unauthenticated…CVSS 10.0
- CVE-2015-1538 Integer overflow in the SampleTable::setSampleToChunkParams function in SampleTable.cpp in libstagefright in Android before 5.1.1 LMY48I…CVSS 10.0
- CVE-2015-0235 Heap-based buffer overflow in the __nss_hostname_digits_dots function in glibc 2.2, and other 2.x versions before 2.18, allows…CVSS 10.0
- CVE-2014-0515 Buffer overflow in Adobe Flash Player before 11.7.700.279 and 11.8.x through 13.0.x before 13.0.0.206 on Windows and OS X, and before…CVSS 10.0
- CVE-2011-4862 Buffer overflow in libtelnet/encrypt.c in telnetd in FreeBSD 7.3 through 9.0, MIT Kerberos Version 5 Applications (aka krb5-appl) 1.0.2 and…CVSS 10.0
Elsewhere on this site
- Unknownevery CVE for this vendor
- Composerevery CVE for this vendor
- Unknownevery page on this product
- Remote Code Execsame class
- CWE-77other pages naming this weakness
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.