CVE-2016-10045

9.8 CRITICAL
Published: December 30, 2016 Modified: May 06, 2026
View on NVD

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.

AI Explanation

Get an AI-powered plain-language explanation of this vulnerability and remediation steps.

Login to generate AI explanation

CVSS v3.x Details

0.0 Low Medium High Critical 10.0
Vector String
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

References to Advisories, Solutions, and Tools

Patch Vendor Advisory Exploit Third Party Advisory
http://openwall.com/lists/oss-security/2016/12/28/1
Source: cve@mitre.org
Mailing List Patch
http://packetstormsecurity.com/files/140286/PHPMailer-Remote-Code-Execution.html
Source: cve@mitre.org
Exploit Third Party Advisory VDB Entry
http://packetstormsecurity.com/files/140350/PHPMailer-Sendmail-Argument-Injection.html
Source: cve@mitre.org
Exploit Third Party Advisory VDB Entry
http://seclists.org/fulldisclosure/2016/Dec/81
Source: cve@mitre.org
Mailing List Patch Third Party Advisory
http://www.securityfocus.com/archive/1/539967/100/0/threaded
Source: cve@mitre.org
Third Party Advisory VDB Entry
http://www.securityfocus.com/bid/95130
Source: cve@mitre.org
Exploit Third Party Advisory VDB Entry
http://www.securitytracker.com/id/1037533
Source: cve@mitre.org
Third Party Advisory VDB Entry
https://github.com/PHPMailer/PHPMailer/releases/tag/v5.2.20
Source: cve@mitre.org
Patch Vendor Advisory
https://www.exploit-db.com/exploits/40969/
Source: cve@mitre.org
Exploit Third Party Advisory VDB Entry
https://www.exploit-db.com/exploits/40986/
Source: cve@mitre.org
Third Party Advisory VDB Entry
https://www.exploit-db.com/exploits/42221/
Source: cve@mitre.org
Third Party Advisory VDB Entry
http://openwall.com/lists/oss-security/2016/12/28/1
Source: af854a3a-2127-422b-91ae-364da2661108
Mailing List Patch
http://packetstormsecurity.com/files/140286/PHPMailer-Remote-Code-Execution.html
Source: af854a3a-2127-422b-91ae-364da2661108
Exploit Third Party Advisory VDB Entry
http://packetstormsecurity.com/files/140350/PHPMailer-Sendmail-Argument-Injection.html
Source: af854a3a-2127-422b-91ae-364da2661108
Exploit Third Party Advisory VDB Entry
http://seclists.org/fulldisclosure/2016/Dec/81
Source: af854a3a-2127-422b-91ae-364da2661108
Mailing List Patch Third Party Advisory
http://www.rapid7.com/db/modules/exploit/multi/http/phpmailer_arg_injection
Source: af854a3a-2127-422b-91ae-364da2661108
Exploit Third Party Advisory
http://www.securityfocus.com/archive/1/539967/100/0/threaded
Source: af854a3a-2127-422b-91ae-364da2661108
Third Party Advisory VDB Entry
http://www.securityfocus.com/bid/95130
Source: af854a3a-2127-422b-91ae-364da2661108
Exploit Third Party Advisory VDB Entry
http://www.securitytracker.com/id/1037533
Source: af854a3a-2127-422b-91ae-364da2661108
Third Party Advisory VDB Entry
https://developer.joomla.org/security-centre/668-20161205-phpmailer-security-advisory.html
Source: af854a3a-2127-422b-91ae-364da2661108
Third Party Advisory
https://github.com/PHPMailer/PHPMailer/releases/tag/v5.2.20
Source: af854a3a-2127-422b-91ae-364da2661108
Patch Vendor Advisory
https://legalhackers.com/advisories/PHPMailer-Exploit-Remote-Code-Exec-CVE-2016-10045-Vuln-Patch-Bypass.html
Source: af854a3a-2127-422b-91ae-364da2661108
Exploit Patch Third Party Advisory
https://www.exploit-db.com/exploits/40969/
Source: af854a3a-2127-422b-91ae-364da2661108
Exploit Third Party Advisory VDB Entry
https://www.exploit-db.com/exploits/40986/
Source: af854a3a-2127-422b-91ae-364da2661108
Third Party Advisory VDB Entry
https://www.exploit-db.com/exploits/42221/
Source: af854a3a-2127-422b-91ae-364da2661108
Third Party Advisory VDB Entry

30 reference(s) from NVD

Quick Stats

CVSS v3 Score
9.8 / 10.0
EPSS (Exploit Probability)
98.0%
100th percentile
Exploitation Status
Not in CISA KEV

Weaknesses (CWE)

Affected Vendors

joomla phpmailer_project wordpress