CVSS2
Attack Vector
NETWORK
Attack Complexity
LOW
Authentication
NONE
Confidentiality Impact
PARTIAL
Integrity Impact
PARTIAL
Availability Impact
PARTIAL
AV:N/AC:L/Au:N/C:P/I:P/A:P
CVSS3
Attack Vector
NETWORK
Attack Complexity
LOW
Privileges Required
NONE
User Interaction
NONE
Scope
UNCHANGED
Confidentiality Impact
HIGH
Integrity Impact
HIGH
Availability Impact
HIGH
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
EPSS
Percentile
99.8%
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.
This issue really emphasises that it's worth avoiding the built-in PHP mail()
function entirely.
Fixed in 5.2.20
Send via SMTP to localhost instead of calling the mail()
function.
https://nvd.nist.gov/vuln/detail/CVE-2016-10045
See also https://nvd.nist.gov/vuln/detail/CVE-2016-10033
If you have any questions or comments about this advisory:
openwall.com/lists/oss-security/2016/12/28/1
packetstormsecurity.com/files/140286/PHPMailer-Remote-Code-Execution.html
packetstormsecurity.com/files/140350/PHPMailer-Sendmail-Argument-Injection.html
seclists.org/fulldisclosure/2016/Dec/81
www.rapid7.com/db/modules/exploit/multi/http/phpmailer_arg_injection
www.securityfocus.com/archive/1/539967/100/0/threaded
www.securityfocus.com/bid/95130
www.securitytracker.com/id/1037533
developer.joomla.org/security-centre/668-20161205-phpmailer-security-advisory.html
github.com/advisories/GHSA-4pc3-96mx-wwc8
github.com/FriendsOfPHP/security-advisories/blob/master/phpmailer/phpmailer/CVE-2016-10045.yaml
github.com/PHPMailer/PHPMailer/releases/tag/v5.2.20
github.com/PHPMailer/PHPMailer/security/advisories/GHSA-4pc3-96mx-wwc8
github.com/PHPMailer/PHPMailer/wiki/About-the-CVE-2016-10033-and-CVE-2016-10045-vulnerabilities
legalhackers.com/advisories/PHPMailer-Exploit-Remote-Code-Exec-CVE-2016-10045-Vuln-Patch-Bypass.html
nvd.nist.gov/vuln/detail/CVE-2016-10045
www.exploit-db.com/exploits/40969/
www.exploit-db.com/exploits/40986/
www.exploit-db.com/exploits/42221/
CVSS2
Attack Vector
NETWORK
Attack Complexity
LOW
Authentication
NONE
Confidentiality Impact
PARTIAL
Integrity Impact
PARTIAL
Availability Impact
PARTIAL
AV:N/AC:L/Au:N/C:P/I:P/A:P
CVSS3
Attack Vector
NETWORK
Attack Complexity
LOW
Privileges Required
NONE
User Interaction
NONE
Scope
UNCHANGED
Confidentiality Impact
HIGH
Integrity Impact
HIGH
Availability Impact
HIGH
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
EPSS
Percentile
99.8%