CVE-2016-10045

Exp

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: 2016-12-30 Last update: 2026-05-06 Assigner: [email protected] Source: [email protected]

Conclusion & alert: CVE-2016-10045 is rated High Exploit Risk (88.8/100): CVSS Critical severity, with high exploitation likelihood (EPSS 93.11%, 100th percentile). Core evidence: 9 public exploit reference(s) are indexed (Exploit-DB). Mandatory action: Public exploits are available—assess exposure, apply mitigations, and prioritize patching.

Risk is dynamic; we continuously reassess and refresh what is shown on this page as upstream context changes.

Public exploit references (Exploit-DB) for CVE-2016-10045

EDB-ID Source Kind Published Link
42221 exploit_db edb 2017-06-21 Exploit-DB ↗
40986 exploit_db edb 2017-01-02 Exploit-DB ↗
40969 exploit_db edb 2016-12-27 Exploit-DB ↗
nvd_ref exploit_tag Exploit-DB ↗
nvd_ref exploit_tag Exploit-DB ↗
nvd_ref exploit_tag Exploit-DB ↗
nvd_ref exploit_tag Exploit-DB ↗
nvd_ref exploit_tag Exploit-DB ↗
nvd_ref exploit_tag Exploit-DB ↗

Exploit prediction scoring system (EPSS) score for CVE-2016-10045

EPSS lead: Daily EPSS estimates relative likelihood of exploitation; percentile ranks this CVE among scored vulnerabilities (higher = more severe relative rank).

# Date Old EPSS score New EPSS score Delta (New - Old)
1 2026-06-02 93.45% 93.11% -0.34%
2 2026-05-27 93.33% 93.45% +0.12%
3 2026-05-22 93.33%

Full EPSS history (42 records total)

Common vulnerability scoring system (CVSS) metrics for CVE-2016-10045

CVSS metrics for this CVE.

Base score Version Severity Vector Exploitability Impact Score source
9.8 3.1 CRITICAL
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H Click to expand
Attack vector (AV:N)
Could be attacked over the internet or any normal routed network—not just someone sitting at the machine.
Attack complexity (AC:L)
Once they can reach the bug, pulling it off is straightforward—no weird race conditions or rare setup.
Privileges required (PR:N)
No account or special rights needed—anonymous or random user is enough.
User interaction (UI:N)
Nobody has to click “OK” or open a trap file; it can work without a victim helping.
Scope (S:U)
Damage stays in the same “trust bubble” as the broken component—no big spill into unrelated systems.
Confidentiality (C:H)
Serious risk that confidential data gets exposed in a big way.
Integrity (I:H)
They could widely tamper with or forge data—trust in the data is badly hurt.
Availability (A:H)
Could take the service down hard or make it unusable for people who depend on it.
3.9 5.9 [email protected]
7.5 2.0 HIGH
AV:N/AC:L/Au:N/C:P/I:P/A:P Click to expand
Access vector (AV:N)
Can be exploited remotely over network reachability.
Access complexity (AC:L)
Exploitation conditions are straightforward and predictable.
Authentication (AU:N)
No authentication is required.
Confidentiality impact (C:P)
Partial confidentiality impact.
Integrity impact (I:P)
Partial integrity impact.
Availability impact (A:P)
Partial availability impact.
10.0 6.4 [email protected]

Weakness enumeration for CVE-2016-10045

GitHub Security Advisory for CVE-2016-10045

GHSA-4pc3-96mx-wwc8 · Severity: critical · Ecosystem: composer — Remote code execution in PHPMailer

OS Trackers for CVE-2016-10045

vendor priority summary link
debian unimportant CVE-2016-10045 unimportant priority: Debian including 1 source packages (libphp-phpmailer), 5 status rows across 5 suites (bookworm, bullseye, forky, sid, trixie): resolved 5. https://security-tracker.debian.org/tracker/CVE-2016-10045
ubuntu medium CVE-2016-10045 medium priority: Ubuntu including 1 source packages (libphp-phpmailer), 16 status rows across 16 suites (artful, bionic, cosmic, disco, eoan, focal, groovy, hirsute, impish, jammy, precise, trusty, upstream, xenial, yakkety, zesty): not-affected 11, ignored 2, released 2, DNE 1. https://ubuntu.com/security/CVE-2016-10045

Affected software / configurations for CVE-2016-10045

Vendor Product Version Raw CPE
phpmailer_project phpmailer < 5.2.20 cpe:2.3:a:phpmailer_project:phpmailer:*:*:*:*:*:*:*:*
wordpress wordpress <= 4.7 cpe:2.3:a:wordpress:wordpress:*:*:*:*:*:*:*:*
joomla joomla\! >= 1.5.0, <= 3.6.5 cpe:2.3:a:joomla:joomla\!:*:*:*:*:*:*:*:*

References for CVE-2016-10045

URL Tags
http://openwall.com/lists/oss-security/2016/12/28/1 Mailing List Patch
http://packetstormsecurity.com/files/140286/PHPMailer-Remote-Code-Execution.html Exploit Third Party Advisory VDB Entry
http://packetstormsecurity.com/files/140350/PHPMailer-Sendmail-Argument-Injection.html Exploit Third Party Advisory VDB Entry
http://seclists.org/fulldisclosure/2016/Dec/81 Mailing List Patch Third Party Advisory
http://www.rapid7.com/db/modules/exploit/multi/http/phpmailer_arg_injection Exploit Third Party Advisory
http://www.securityfocus.com/archive/1/539967/100/0/threaded Third Party Advisory VDB Entry
http://www.securityfocus.com/bid/95130 Exploit Third Party Advisory VDB Entry
http://www.securitytracker.com/id/1037533 Third Party Advisory VDB Entry
https://developer.joomla.org/security-centre/668-20161205-phpmailer-security-advisory.html Third Party Advisory
https://github.com/PHPMailer/PHPMailer/releases/tag/v5.2.20 Patch Vendor Advisory
https://github.com/PHPMailer/PHPMailer/wiki/About-the-CVE-2016-10033-and-CVE-2016-10045-vulnerabilities Patch Vendor Advisory
https://legalhackers.com/advisories/PHPMailer-Exploit-Remote-Code-Exec-CVE-2016-10045-Vuln-Patch-Bypass.html Exploit Patch Third Party Advisory
https://www.exploit-db.com/exploits/40969/ Exploit Third Party Advisory VDB Entry
https://www.exploit-db.com/exploits/40986/ Third Party Advisory VDB Entry
https://www.exploit-db.com/exploits/42221/ Third Party Advisory VDB Entry
cvelogic Threat Intelligence