Critical severity · published Dec 30, 2016
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 execute arbitrary code by leveraging…
9.8
CVSS
97.7%
EPSS
No
On KEV
Description
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.
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Attack vector
Network
Complexity
Low
Privileges
None
User interaction
None
Confidentiality
High
Integrity
High
Availability
High
Scope
Unchanged
Exploitation
Is it being used?
Exploit prediction (EPSS)97.7% · higher than 100% of CVEs
Exploited in the wildNo evidence yet
CISA KEVNot listed
Ransomware campaign useNot known
Affected products
Which versions
JO
Joomla · Joomla
1.5.0 through 3.6.5 · source: NVD
WO
WordPress · WordPress
through 4.7 · source: NVD
PH
Phpmailer · Phpmailer Project
before 5.2.20 · source: NVD
References
NVD
https://nvd.nist.gov/vuln/detail/CVE-2016-10045
CVE.org
https://www.cve.org/CVERecord?id=CVE-2016-10045
Mailing List
http://openwall.com/lists/oss-security/2016/12/28/1
Exploit
http://packetstormsecurity.com/files/140286/PHPMailer-Remote-Code-Execution.html
Exploit
http://packetstormsecurity.com/files/140350/PHPMailer-Sendmail-Argument-Injection.html
Mailing List
http://seclists.org/fulldisclosure/2016/Dec/81
Exploit
http://www.rapid7.com/db/modules/exploit/multi/http/phpmailer_arg_injection
Third Party Advisory
http://www.securityfocus.com/archive/1/539967/100/0/threaded
More from Joomla
9.8
CVE-2016-10033
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…
5.3
CVE-2023-23752
[20230201] - Core - Improper access check in webservice endpoints
9.8
CVE-2026-73373
Joomla! Core - [20260810] - Unrestricted uploads of SHTML files in Joomla 1.0.0-5.4.7, 6.0.0-6.1.2
9.8
CVE-2026-35221
Joomla! Core - [20260506] - Authenticated blind SQLi in com_finder
9.8
CVE-2026-40383
Joomla! Core - [20260509] - LFI in HTMLView layout parameter
